/* Apilogy - Custom CSS */

/* Apilogy Color Scheme */
:root {
  --purple-primary: #8b5cf6;
  --purple-secondary: #a78bfa;
  --purple-light: #c4b5fd;
  --indigo-dark: #4f46e5;
  --indigo-light: #818cf8;
  --hero-gradient-start: #1e1b4b;
  --hero-gradient-end: #312e81;
}

.text-purple {
  color: var(--purple-primary) !important;
}

.bg-purple {
  background-color: var(--purple-primary) !important;
}

.btn-purple {
  background-color: var(--purple-primary) !important;
  border-color: var(--purple-primary) !important;
  color: white !important;
}

.btn-purple:hover {
  background-color: var(--purple-secondary) !important;
  border-color: var(--purple-secondary) !important;
  color: white !important;
}

.btn-outline-purple {
  color: var(--purple-primary) !important;
  border-color: var(--purple-primary) !important;
  background-color: transparent !important;
}

.btn-outline-purple:hover {
  background-color: var(--purple-primary) !important;
  color: white !important;
}

/* Override primary buttons with purple styling */
.btn-primary, .btn-outline-primary {
  background-color: var(--purple-primary) !important;
  border-color: var(--purple-primary) !important;
  color: white !important;
}

.btn-primary:hover, .btn-outline-primary:hover {
  background-color: var(--purple-secondary) !important;
  border-color: var(--purple-secondary) !important;
  color: white !important;
}

/* P.I.E. Cards and Containers */
.pie-card {
  border-radius: 12px;
  border: 1px solid var(--purple-primary);
  overflow: hidden;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--bs-dark) 0%, var(--bs-dark) 100%);
}

.pie-card:hover {
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.pie-card-header {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--indigo-dark) 100%);
  color: white;
  font-weight: 500;
  border-bottom: none;
  padding: 1rem;
}

.pie-section {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
}

/* Content Type Grid */
.content-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.content-type-item {
  border-radius: 10px;
  border: 1px solid var(--purple-light);
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(79, 70, 229, 0.1) 100%);
}

.content-type-item:hover, .content-type-item.selected {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(79, 70, 229, 0.2) 100%);
  border-color: var(--purple-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.content-type-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

/* Toggle Switch for P.I.E. */
.pie-toggle {
  display: inline-block;
  position: relative;
  width: 50px;
  height: 24px;
}

.pie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--bs-secondary);
  transition: .4s;
  border-radius: 24px;
}

.pie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .pie-toggle-slider {
  background-color: var(--purple-primary);
}

input:checked + .pie-toggle-slider:before {
  transform: translateX(26px);
}

/* Statistics Dashboard */
.stats-card {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--purple-light);
}

.stats-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--purple-primary);
}

.stats-label {
  font-size: 0.9rem;
  color: var(--bs-secondary);
  margin-top: 0.25rem;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
}

.toast-pie {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--indigo-dark) 100%);
  color: white;
  border-radius: 8px;
  overflow: hidden;
}

.toast-header-pie {
  background: rgba(0, 0, 0, 0.2);
  color: white;
}

/* Mobile Responsiveness Fixes */

/* Ensure containers don't overflow on mobile */
@media (max-width: 768px) {
  .container, .container-fluid {
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
  }
  
  .card {
    margin-bottom: 1rem;
  }
  
  .card-body {
    padding: 0.75rem;
  }
}

/* Platform Selection Mobile Fix */
.platform-selection-container {
  max-width: 100%;
}

@media (max-width: 576px) {
  .platform-selection-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  
  .form-check {
    margin-bottom: 0.5rem;
  }
  
  .form-check-label {
    font-size: 0.9rem;
    word-wrap: break-word;
  }
}

/* Button Group Mobile Fixes */
@media (max-width: 768px) {
  .btn-group,
  .btn-toolbar {
    flex-wrap: wrap;
  }
  
  .btn {
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Picture Options Mobile Fix */
@media (max-width: 576px) {
  .picture-option-btn {
    padding: 0.75rem 0.5rem !important;
    font-size: 0.8rem;
  }
  
  .picture-option-btn .fas {
    font-size: 1.2rem !important;
    margin-bottom: 0.25rem;
  }
  
  .picture-option-btn small {
    font-size: 0.7rem;
  }
}

/* Form Controls Mobile */
@media (max-width: 768px) {
  .form-select,
  .form-control {
    font-size: 0.9rem;
  }
  
  .input-group {
    flex-wrap: wrap;
  }
  
  .input-group .form-control,
  .input-group .form-select {
    min-width: 0;
    flex: 1 1 auto;
  }
}

/* Card Layout Mobile */
@media (max-width: 992px) {
  .col-lg-3,
  .col-lg-9,
  .col-lg-4,
  .col-lg-8 {
    margin-bottom: 1rem;
  }
}

/* Horizontal Scrolling Prevention */
body {
  overflow-x: hidden;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

.col, .col-*, [class*="col-"] {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

@media (max-width: 576px) {
  .col, .col-*, [class*="col-"] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Transcript Container Mobile */
@media (max-width: 768px) {
  #original-transcript-container {
    max-height: 200px;
  }
  
  .transcript-segment {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

/* Text Wrapping for Long Content */
.form-text,
.text-muted,
.small {
  word-wrap: break-word;
  hyphens: auto;
}

/* Badge Mobile Fixes */
@media (max-width: 576px) {
  .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.4rem;
  }
}

/* Dropdown Mobile Fixes */
@media (max-width: 768px) {
  .dropdown-menu {
    max-width: calc(100vw - 20px);
    left: 10px !important;
    right: 10px !important;
    transform: none !important;
  }
  
  .dropdown-item {
    white-space: normal;
    word-wrap: break-word;
  }
}

/* Additional Mobile Fixes for YouTube Designer */
@media (max-width: 576px) {
  /* Prevent horizontal scrolling */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }
  
  /* Make sure all containers fit */
  .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Fix card headers */
  .card-header h5,
  .card-header h6 {
    font-size: 1rem;
  }
  
  /* Responsive buttons */
  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
  }
  
  .btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }
  
  /* Form elements */
  .form-control,
  .form-select {
    font-size: 16px; /* Prevents zoom on iOS */
  }
  
  /* Badges and labels */
  .badge {
    font-size: 0.7rem;
    word-break: break-word;
  }
}

/* Ensure proper touch targets */
@media (max-width: 768px) {
  .btn,
  .form-check-input,
  .dropdown-toggle {
    min-height: 44px;
  }
  
  .form-check-label {
    padding-left: 0.5rem;
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  .form-check {
    margin-bottom: 0.75rem;
  }
}

/* Desktop Navigation Fix - Prevent overflow on full-screen displays */
@media (min-width: 992px) {
  .navbar-nav {
    flex-wrap: wrap;
  }
  
  .navbar-collapse {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
  }
  
  .navbar-nav .nav-item {
    flex-shrink: 0;
  }
  
  /* Ensure dropdown menus display properly */
  .navbar-nav .dropdown-menu {
    position: absolute;
    max-height: 70vh;
    overflow-y: auto;
    z-index: 1050;
  }
}

/* Responsive navigation adjustments */
@media (min-width: 1200px) {
  .navbar-nav {
    gap: 0.2rem;
  }
  
  .nav-link {
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
    font-size: 0.95rem;
  }
}

/* Ultra-wide desktop optimization */
@media (min-width: 1400px) {
  .nav-link {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
    font-size: 1rem;
  }
}

/* Fix specific mobile overflow issues */
@media (max-width: 576px) {
  .card-body {
    padding: 0.5rem;
  }
  
  .mb-3 {
    margin-bottom: 0.75rem !important;
  }
  
  .form-text {
    font-size: 0.8rem;
  }
  
  /* Improve platform selection on mobile */
  .platform-selection-container .col-6 {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
  
  .platform-selection-container .form-check-label {
    font-size: 0.85rem;
  }
}
}

/* Loading Indicator */
.loading-indicator {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.loading-indicator div {
  position: absolute;
  border: 4px solid var(--purple-primary);
  opacity: 1;
  border-radius: 50%;
  animation: loading-indicator 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loading-indicator div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes loading-indicator {
  0% {
    top: 36px;
    left: 36px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: 0px;
    left: 0px;
    width: 72px;
    height: 72px;
    opacity: 0;
  }
}

/* Enhanced content display */
.enhanced-content {
  background-color: rgba(139, 92, 246, 0.05);
  border-left: 4px solid var(--purple-primary);
  padding: 1rem;
  border-radius: 4px;
  margin: 1.5rem 0;
}

/* Sparkle icon animation */
.sparkle-icon {
  display: inline-block;
  animation: sparkle 1.5s infinite alternate;
}

@keyframes sparkle {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.2) rotate(15deg);
    opacity: 1;
  }
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
  border-radius: 0.5rem;
  padding: 4rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
  margin-bottom: 3rem;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.1) 0%, transparent 70%);
  z-index: 0;
}

.hero-section h1, 
.hero-section h2, 
.hero-section p, 
.hero-section .btn {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  background: linear-gradient(135deg, var(--purple-primary) 0%, var(--indigo-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

/* Logos Scroller */
.logos-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  height: 60px;
  width: 100%;
  max-width: 1000px;
  background: rgba(30, 27, 75, 0.05);
  border-radius: 0.5rem;
  margin: 0 auto;
}

.logos-slide {
  display: inline-block;
  animation: slide 60s linear infinite; /* Slower animation */
  position: absolute;
  top: 0;
  left: 0; /* Start immediately visible */
}

.logos-slide span {
  display: inline-block;
  padding: 0 30px;
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 60px;
  color: var(--bs-light);
  position: relative;
}

.logos-slide span:before {
  content: '•';
  position: absolute;
  left: 0.5rem;
  color: var(--purple-primary);
  font-size: 1.5rem;
  line-height: 0;
  top: 50%;
}

@keyframes slide {
  0% {
    transform: translateX(10%); /* Start slightly to the right */
  }
  100% {
    transform: translateX(-150%);
  }
}

/* Custom font styles for each company in marquee */
.font-robot {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
}

.font-playfair {
  font-family: 'Playfair Display', serif;
  font-style: italic;
}

.font-poppins {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  letter-spacing: 1px;
}

.font-oswald {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.font-montserrat {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
}

.font-merriweather {
  font-family: 'Merriweather', serif;
  font-style: italic;
  font-weight: 300;
}

.font-lato {
  font-family: 'Lato', sans-serif;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.font-raleway {
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  letter-spacing: 3px;
}

.font-tech {
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 1px;
}

.font-quicksand {
  font-family: 'Quicksand', sans-serif;
  font-weight: 500;
}

.font-nunito {
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Horizontal Scrolling Testimonials */
.testimonials-section {
  padding: 2rem 0;
}

.testimonial-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  gap: 20px;
  padding: 20px 0;
}

.testimonial-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.testimonial-card {
  scroll-snap-align: start;
  flex: 0 0 auto;
  width: 320px;
  background: linear-gradient(135deg, rgba(49, 46, 129, 0.05) 0%, rgba(79, 70, 229, 0.1) 100%);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--purple-primary);
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.6;
}

.testimonial-rating {
  margin-bottom: 1rem;
}

/* Style for solid star icons */
[data-feather="star"].text-warning {
  fill: var(--bs-warning);
  stroke-width: 1.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(139, 92, 246, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.testimonial-info h5 {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.testimonial-info p {
  font-size: 0.875rem;
  margin-bottom: 0;
  opacity: 0.8;
}

/* Pricing Section */
.pricing-section {
  padding: 3rem 0;
}

.pricing-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  height: 100%;
  background: linear-gradient(135deg, rgba(30, 27, 75, 0.02) 0%, rgba(79, 70, 229, 0.05) 100%);
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--purple-primary);
}

.pricing-header {
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
  color: white;
  text-align: center;
}

.pricing-body {
  padding: 1.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--purple-primary);
  margin-bottom: 1rem;
}

.pricing-per-gb {
  font-size: 1rem;
  color: var(--bs-secondary);
}

.pricing-features {
  margin-bottom: 1.5rem;
}

.pricing-feature-item {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
}

.pricing-feature-icon {
  color: var(--purple-primary);
  margin-right: 0.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.pricing-cta {
  margin-top: auto;
}

/* Card with white background in dark mode */
.card.bg-white {
  color: var(--bs-dark) !important;
}

.card.bg-white h5,
.card.bg-white h6,
.card.bg-white p,
.card.bg-white ul,
.card.bg-white li {
  color: var(--bs-dark) !important;
}

/* Horizontal Features Scroll */
.features-scroll-container {
  overflow: hidden;
  position: relative;
  padding: 2rem 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(79, 70, 229, 0.05) 100%);
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.features-scroll {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0;
  gap: 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.features-scroll::-webkit-scrollbar {
  height: 6px;
}

.features-scroll::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.1);
  border-radius: 10px;
}

.features-scroll::-webkit-scrollbar-thumb {
  background: var(--purple-primary);
  border-radius: 10px;
}

.feature-card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  background: rgba(30, 27, 75, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid rgba(139, 92, 246, 0.2);
  transition: all 0.3s ease;
  height: 200px;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--purple-primary);
  background: rgba(30, 27, 75, 0.15);
}

.feature-icon {
  color: var(--purple-primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-description {
  font-size: 0.9rem;
  color: var(--bs-secondary);
  flex-grow: 1;
}

/* Trust Indicators Section */
.trust-indicators {
  border-radius: 0.5rem;
  background: linear-gradient(135deg, #1c1c2e 0%, #2a2a40 100%);
}

.review-platform {
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.review-platform:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--purple-primary);
}

.review-quote {
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

/* Reviews Modal Styling */
.review-card {
  background-color: rgba(30, 27, 75, 0.03);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.review-card:hover {
  background-color: rgba(30, 27, 75, 0.08);
  transform: translateY(-2px);
}

.review-text {
  font-size: 0.95rem;
  line-height: 1.6;
}

.reviewer-info {
  font-size: 0.9rem;
}

.review-date {
  font-size: 0.85rem;
}

/* Universal UI improvements */
.text-primary {
  color: var(--purple-primary) !important;
}

/* Improved form field contrast */
.form-control {
  background-color: rgba(0, 0, 0, 0.2) !important;
  color: #e9ecef !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25) !important;
  border-color: var(--purple-primary) !important;
}

/* Improved list group items */
.list-group-item-action:hover {
  background-color: rgba(139, 92, 246, 0.1) !important;
}

.list-group-item-action:active {
  background-color: rgba(139, 92, 246, 0.2) !important;
}

.list-group-item small.text-primary {
  color: var(--purple-primary) !important;
}

/* YouTube integration section */
.integration-card {
  transition: all 0.2s ease-in-out;
}

.integration-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border-color: var(--purple-primary);
}

/* Fix for dark text on dark backgrounds */
.text-dark {
  color: #e9ecef !important;
}

.bg-dark .text-dark,
.bg-dark-subtle .text-dark,
.bg-primary .text-dark {
  color: #e9ecef !important;
}

/* Improved alert contrast */
.alert {
  border-width: 2px;
}

.alert-primary {
  background-color: rgba(139, 92, 246, 0.1) !important;
  border-color: var(--purple-primary) !important;
  color: #e9ecef !important;
}

/* Tab styling improvements */
.nav-tabs .nav-link.active {
  background-color: rgba(139, 92, 246, 0.1) !important;
  color: var(--purple-primary) !important;
  border-color: var(--purple-primary) !important;
}

.nav-tabs .nav-link:hover {
  border-color: var(--purple-secondary) !important;
  color: var(--purple-secondary) !important;
}

/* FAQ Accordion Text Color Fix */
.accordion-button {
  color: #e9ecef !important;
  background-color: #2d3339 !important;
  border: none !important;
}

.accordion-button:not(.collapsed) {
  color: #e9ecef !important;
  background-color: #2d3339 !important;
  box-shadow: none !important;
}

.accordion-button:focus {
  color: #e9ecef !important;
  background-color: #2d3339 !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

.accordion-button:hover {
  color: #e9ecef !important;
  background-color: #3d4349 !important;
}

.accordion-button::after {
  filter: brightness(0) invert(1);
}

.accordion-item {
  background-color: #2d3339 !important;
  border: 1px solid rgba(139, 92, 246, 0.2) !important;
}

.accordion-body {
  background-color: #2d3339 !important;
  color: #e9ecef !important;
}

/* Footer styling and link protection - FIXES PRIVACY POLICY DISAPPEARING */
.footer {
  background: var(--dark-bg) !important;
  border-top: 1px solid var(--border-color);
}

.footer h5 {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.footer a {
  color: var(--text-muted) !important;
  text-decoration: none;
  transition: color 0.3s ease;
  pointer-events: auto !important;
  display: inline-block;
}

.footer a:hover {
  color: var(--purple-primary) !important;
}

/* Ensure footer links are clickable and work properly */
.footer-link {
  position: relative;
  z-index: 10;
  pointer-events: auto !important;
  transform: none !important;
}

.footer-link:hover {
  transform: none !important;
  scale: none !important;
}

/* ============================================
   ENHANCED BUTTON STYLES & VISUAL HIGHLIGHTS
   ============================================ */

/* All buttons get smooth transitions */
.btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

/* Hover effects with highlights */
.btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 15px currentColor;
  filter: brightness(1.1);
}

/* Active/clicked state */
.btn:active:not(:disabled) {
  transform: translateY(0px) scale(0.98);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Focus state for accessibility */
.btn:focus:not(:disabled) {
  outline: 2px solid var(--purple-primary);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.3);
}

/* Shimmer effect on hover */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* Primary buttons enhanced */
.btn-primary:hover:not(:disabled),
.btn-purple:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4), 0 0 20px rgba(139, 92, 246, 0.3);
}

/* Success buttons enhanced */
.btn-success:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4), 0 0 20px rgba(25, 135, 84, 0.3);
}

/* Warning buttons enhanced */
.btn-warning:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(255, 193, 7, 0.4), 0 0 20px rgba(255, 193, 7, 0.3);
}

/* Info buttons enhanced */
.btn-info:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(13, 202, 240, 0.4), 0 0 20px rgba(13, 202, 240, 0.3);
}

/* Danger buttons enhanced */
.btn-danger:hover:not(:disabled) {
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4), 0 0 20px rgba(220, 53, 69, 0.3);
}

/* Outline buttons enhanced */
.btn-outline-primary:hover:not(:disabled),
.btn-outline-purple:hover:not(:disabled),
.btn-outline-success:hover:not(:disabled),
.btn-outline-warning:hover:not(:disabled),
.btn-outline-info:hover:not(:disabled),
.btn-outline-danger:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Disabled state clearly visible */
.btn:disabled,
.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Large buttons get extra emphasis */
.btn-lg:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), 0 0 20px currentColor;
}

/* Small buttons subtle effect */
.btn-sm:hover:not(:disabled) {
  transform: translateY(-1px);
}

/* ============================================
   ENHANCED CHECKBOX & LANGUAGE SELECTION
   ============================================ */

/* Language checkboxes visual enhancement */
.language-checkbox {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.language-checkbox:hover {
  transform: scale(1.1);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}

.language-checkbox:checked {
  background-color: var(--purple-primary) !important;
  border-color: var(--purple-primary) !important;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

/* Enhanced label for checked items */
.language-checkbox:checked + label {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(79, 70, 229, 0.2)) !important;
  border-radius: 6px !important;
  padding: 4px 10px !important;
  border-left: 3px solid var(--purple-primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

/* Hover state for checkbox labels */
.form-check-label:hover {
  background-color: rgba(139, 92, 246, 0.1);
  border-radius: 4px;
  padding: 2px 6px;
  transition: all 0.2s ease;
}

/* Form select enhanced */
.form-select {
  transition: all 0.3s ease;
  border: 2px solid rgba(139, 92, 246, 0.3);
}

.form-select:hover {
  border-color: var(--purple-primary);
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.form-select:focus {
  border-color: var(--purple-primary);
  box-shadow: 0 0 0 0.25rem rgba(139, 92, 246, 0.25);
}

/* Visual checkmark for selected items */
.language-checkbox:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}