/* Theme Toggle Switch Styles */
.theme-toggle-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  position: relative;
  width: 60px;
  height: 30px;
  background-color: #ccc;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  padding: 0;
  display: flex;
  align-items: center;
}

.theme-toggle.dark-mode {
  background-color: #4fc3f7;
}

.theme-toggle-slider {
  position: absolute;
  width: 26px;
  height: 26px;
  background-color: white;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.theme-toggle.dark-mode .theme-toggle-slider {
  transform: translateX(30px);
}

.theme-toggle-icon {
  position: absolute;
  font-size: 12px;
  transition: opacity 0.3s ease;
}

.theme-toggle-icon.moon {
  left: 8px;
  color: #fff;
}

.theme-toggle-icon.bulb {
  right: 8px;
  color: #fff;
}

/* Dark Mode Styles - Matching Flutter App */
body.dark-mode {
  background: #212121 !important; /* Colors.grey[900] from Flutter */
  color: #e0e0e0 !important;
}

body.dark-mode .top-nav {
  background-color: #212121 !important; /* Match scaffold background */
  border-bottom-color: #616161 !important; /* Colors.grey[700] */
}

body.dark-mode .nav-logo {
  color: #e0e0e0 !important;
}

body.dark-mode .nav-link {
  color: #b0b0b0 !important;
}

body.dark-mode .nav-link:hover {
  color: #039be5 !important;
}

body.dark-mode .hero {
  background: linear-gradient(135deg, #0277bd, #5e35b1) !important;
}

body.dark-mode .hero::after {
  background: linear-gradient(to bottom, rgba(26, 26, 26, 0), #1a1a1a) !important;
}

body.dark-mode .providers-section {
  background-color: #2d2d2d !important;
}

body.dark-mode .providers-title {
  color: #9e9e9e !important;
}

body.dark-mode .badge {
  color: #b0b0b0 !important;
}

body.dark-mode .badge:hover {
  color: #039be5 !important;
}

body.dark-mode .section-title {
  color: #4fc3f7 !important;
}

body.dark-mode .section-subtitle {
  color: #b0b0b0 !important;
}

body.dark-mode .feature-card {
  background: #303030 !important; /* Colors.grey[850] from Flutter */
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .feature-card h3 {
  color: #4fc3f7 !important;
}

body.dark-mode .feature-card p {
  color: #b0b0b0 !important;
}

body.dark-mode .device-showcase {
  background: linear-gradient(135deg, #5e35b1, #0277bd) !important;
}

body.dark-mode .testimonial-card {
  background: #2d2d2d !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .testimonial-text {
  color: #b0b0b0 !important;
}

body.dark-mode .testimonial-author-info h4 {
  color: #4fc3f7 !important;
}

body.dark-mode .testimonial-author-info p {
  color: #888 !important;
}

body.dark-mode .gallery-item {
  background-color: #2d2d2d !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .dot {
  background-color: #555 !important;
}

body.dark-mode .dot.active,
body.dark-mode .dot:hover {
  background-color: #039be5 !important;
}

body.dark-mode .cta-section {
  background: linear-gradient(135deg, #0277bd, #5e35b1) !important;
}

body.dark-mode .footer {
  background: #1a1a1a !important;
  border-top: 1px solid #404040;
}

body.dark-mode .footer-links a:hover {
  color: #ffa100 !important;
}

body.dark-mode .copyright {
  color: rgba(224, 224, 224, 0.7) !important;
}

/* Pricing page specific */
body.dark-mode .pricing-cards {
  background: transparent !important;
}

body.dark-mode .pricing-card {
  background: #303030 !important; /* Grey 850 */
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
  border-color: #555 !important;
}

body.dark-mode .pricing-card.featured {
  border-color: #4fc3f7 !important;
  background: #353535 !important;
  box-shadow: 0 15px 40px rgba(79, 195, 247, 0.2) !important;
}

body.dark-mode .pricing-card h3 {
  color: #e0e0e0 !important;
}

body.dark-mode .pricing-card h4 {
  color: #b0b0b0 !important;
}

body.dark-mode .price {
  color: #4fc3f7 !important;
}

body.dark-mode .price-note,
body.dark-mode .billing-note {
  color: #999 !important;
}

body.dark-mode .pricing-card ul li {
  color: #b0b0b0 !important;
}

body.dark-mode .pricing-card p {
  color: #b0b0b0 !important;
}

body.dark-mode .pricing-button {
  background-color: #4fc3f7 !important;
  color: #212121 !important;
}

body.dark-mode .pricing-button:hover {
  background-color: #039be5 !important;
}

body.dark-mode .toggle-container {
  background: #303030 !important;
}

body.dark-mode .toggle-option {
  color: #b0b0b0 !important;
}

body.dark-mode .toggle-option.active {
  background: #4fc3f7 !important;
  color: #212121 !important;
}

body.dark-mode .popular-badge {
  background: linear-gradient(135deg, #4fc3f7, #039be5) !important;
  color: #212121 !important;
}

body.dark-mode .note {
  color: #999 !important;
}

/* FAQ section */
body.dark-mode .faq-section {
  background: transparent !important;
}

body.dark-mode .faq-item {
  background: #303030 !important;
  border: 1px solid #555 !important;
}

body.dark-mode .faq-question {
  color: #e0e0e0 !important;
}

body.dark-mode .faq-answer {
  color: #b0b0b0 !important;
}

body.dark-mode .faq-toggle {
  color: #4fc3f7 !important;
}

/* About page specific */
body.dark-mode .header {
  background: linear-gradient(135deg, #0277bd, #5e35b1) !important;
}

body.dark-mode .header::after {
  background: linear-gradient(to bottom, rgba(33, 33, 33, 0), #212121) !important;
}

body.dark-mode .header h1,
body.dark-mode .header h2 {
  color: #ffffff !important;
}

body.dark-mode .header p {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.dark-mode .about-section {
  background: transparent !important;
}

body.dark-mode .about-content h2 {
  color: #4fc3f7 !important;
}

body.dark-mode .about-content p {
  color: #b0b0b0 !important;
}

body.dark-mode .team-grid {
  background: transparent !important;
}

body.dark-mode .team-member {
  background: #2d2d2d !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .team-member h3 {
  color: #4fc3f7 !important;
}

body.dark-mode .team-member .role {
  color: #888 !important;
}

body.dark-mode .team-member p {
  color: #b0b0b0 !important;
}

body.dark-mode .values-grid {
  background: transparent !important;
}

body.dark-mode .value-card {
  background: #2d2d2d !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .value-card h3 {
  color: #4fc3f7 !important;
}

body.dark-mode .value-card p {
  color: #b0b0b0 !important;
}

/* Beta card styles */
body.dark-mode .beta-card {
  background: #2d2d2d !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .beta-card h3 {
  color: #b39ddb !important;
}

body.dark-mode .beta-card ul li {
  color: #b0b0b0 !important;
}

body.dark-mode .platform-card {
  background: #1a1a1a !important;
}

body.dark-mode .platform-card h4 {
  color: #4fc3f7 !important;
}

body.dark-mode .platform-card p {
  color: #b0b0b0 !important;
}

body.dark-mode .platform-card .note {
  color: #888 !important;
}

/* Support/Contact page */
body.dark-mode .contact-options {
  background: transparent !important;
}

body.dark-mode .contact-card {
  background: #2d2d2d !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .contact-card h3 {
  color: #4fc3f7 !important;
}

body.dark-mode .contact-card p {
  color: #b0b0b0 !important;
}

body.dark-mode .contact-card a {
  color: #4fc3f7 !important;
}

/* Forms */
body.dark-mode input[type="text"],
body.dark-mode input[type="email"],
body.dark-mode textarea {
  background: #2d2d2d !important;
  border-color: #404040 !important;
  color: #e0e0e0 !important;
}

body.dark-mode input[type="text"]:focus,
body.dark-mode input[type="email"]:focus,
body.dark-mode textarea:focus {
  border-color: #039be5 !important;
}

/* Delete account page */
body.dark-mode .delete-account-container {
  background: #2d2d2d !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .warning-box {
  background: rgba(244, 67, 54, 0.2) !important;
  border-color: #f44336 !important;
}

body.dark-mode .info-box {
  background: rgba(3, 155, 229, 0.2) !important;
  border-color: #039be5 !important;
}

/* Get started page */
body.dark-mode .get-started-container {
  background: #2d2d2d !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .platform-grid {
  background: transparent !important;
}

body.dark-mode .platform-option {
  background: #1a1a1a !important;
  border-color: #404040 !important;
}

body.dark-mode .platform-option:hover {
  border-color: #039be5 !important;
  background: #2d2d2d !important;
}

body.dark-mode .platform-option h3 {
  color: #4fc3f7 !important;
}

body.dark-mode .platform-option p {
  color: #b0b0b0 !important;
}

/* Login/Register pages */
body.dark-mode .form-container {
  background: #2d2d2d !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .form-container h2 {
  color: #4fc3f7 !important;
}

body.dark-mode .form-container label {
  color: #b0b0b0 !important;
}

body.dark-mode .form-divider {
  color: #888 !important;
}

body.dark-mode .form-divider::before,
body.dark-mode .form-divider::after {
  background-color: #404040 !important;
}

body.dark-mode .helper-text {
  color: #888 !important;
}

/* Terms and Privacy pages */
body.dark-mode .content-container {
  background: #2d2d2d !important;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

body.dark-mode .content-container h1 {
  color: #4fc3f7 !important;
}

body.dark-mode .content-container h2 {
  color: #4fc3f7 !important;
}

body.dark-mode .content-container h3 {
  color: #4fc3f7 !important;
}

body.dark-mode .content-container p,
body.dark-mode .content-container li {
  color: #b0b0b0 !important;
}

body.dark-mode .content-container a {
  color: #4fc3f7 !important;
}

/* Android beta page */
body.dark-mode .form-group label {
  color: #b0b0b0 !important;
}

body.dark-mode .submit-button {
  background-color: #039be5 !important;
}

body.dark-mode .submit-button:hover {
  background-color: #0277bd !important;
}

body.dark-mode .submit-button:disabled {
  background-color: #555 !important;
}

body.dark-mode #message {
  color: #b0b0b0 !important;
}

/* Paywall pages (paywall.html, app_paywall.html, app_paywall_v3.html) */
body.dark-mode {
  --background-gradient: linear-gradient(to bottom, #1a1a1a 0%, #0d0d0d 100%) !important;
}

body.dark-mode .header-container,
body.dark-mode .paywall-header {
  background: rgba(45, 45, 45, 0.95) !important;
}

body.dark-mode .paywall-container {
  background: #1a1a1a !important;
}

body.dark-mode .plan-card,
body.dark-mode .subscription-plan {
  background: #2d2d2d !important;
  border-color: #404040 !important;
}

body.dark-mode .plan-card.featured,
body.dark-mode .plan-card.recommended,
body.dark-mode .subscription-plan.most-popular {
  border-color: #8b5cf6 !important;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%) !important;
}

body.dark-mode .popular-badge,
body.dark-mode .most-popular-badge {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
}

body.dark-mode .plan-title,
body.dark-mode .plan-name,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
  color: #e0e0e0 !important;
}

body.dark-mode .plan-price,
body.dark-mode .price {
  color: #4fc3f7 !important;
}

body.dark-mode .plan-feature,
body.dark-mode .feature-item,
body.dark-mode .feature-list li {
  color: #b0b0b0 !important;
}

body.dark-mode .plan-feature.not-included {
  color: #666 !important;
}

body.dark-mode .subscribe-button,
body.dark-mode .btn-subscribe,
body.dark-mode button[type="submit"] {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9) !important;
}

body.dark-mode .subscribe-button:hover,
body.dark-mode .btn-subscribe:hover {
  background: linear-gradient(135deg, #a78bfa, #8b5cf6) !important;
}

body.dark-mode .info-section,
body.dark-mode .faq-section {
  background: #2d2d2d !important;
}

body.dark-mode .faq-item {
  background: #1a1a1a !important;
  border-color: #404040 !important;
}

body.dark-mode .testimonial {
  background: #2d2d2d !important;
  border-color: #404040 !important;
}

body.dark-mode .compare-table {
  background: #2d2d2d !important;
}

body.dark-mode .compare-table th {
  background: #1a1a1a !important;
  color: #e0e0e0 !important;
}

body.dark-mode .compare-table td {
  color: #b0b0b0 !important;
  border-color: #404040 !important;
}

/* Memorial page (deb.html) */
body.dark-mode .memorial-container,
body.dark-mode .memorial-content {
  background: #2d2d2d !important;
}

body.dark-mode .memorial-title {
  color: #e0e0e0 !important;
}

body.dark-mode .memorial-subtitle,
body.dark-mode .memorial-text {
  color: #b0b0b0 !important;
}

body.dark-mode .quote-box,
body.dark-mode blockquote {
  background: #1a1a1a !important;
  border-left-color: #8b5cf6 !important;
  color: #b0b0b0 !important;
}

/* Redirect page */
body.dark-mode #debug-log {
  background: #2d2d2d !important;
  border-color: #404040 !important;
  color: #b0b0b0 !important;
}

/* Language Switcher Styles */
.language-switcher {
  position: relative;
  display: inline-block;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: transparent;
  border: 2px solid #ccc;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: #555;
}

.language-toggle:hover {
  border-color: #039be5;
  background-color: rgba(3, 155, 229, 0.05);
}

.language-toggle i.fa-globe {
  font-size: 16px;
  color: #039be5;
}

.language-toggle i.fa-chevron-down {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.language-dropdown.show + .language-toggle i.fa-chevron-down,
.language-toggle:hover i.fa-chevron-down {
  transform: rotate(180deg);
}

.current-lang {
  font-weight: 500;
  min-width: 50px;
  text-align: left;
}

.language-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.language-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 16px;
  background: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
  color: #555;
  position: relative;
}

.language-option:hover {
  background-color: #f5f5f5;
}

.language-option.active {
  background-color: rgba(3, 155, 229, 0.1);
  color: #039be5;
}

.lang-code {
  font-weight: bold;
  font-size: 12px;
  text-transform: uppercase;
  color: #039be5;
  min-width: 28px;
}

.lang-name {
  flex: 1;
  font-size: 14px;
}

.language-option .fa-check {
  color: #039be5;
  font-size: 14px;
  margin-left: auto;
}

.language-option.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.language-option.disabled:hover {
  background-color: transparent;
}

.language-separator {
  height: 1px;
  background-color: #e0e0e0;
  margin: 8px 0;
}

.coming-soon-label {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Dark mode for language switcher */
body.dark-mode .language-toggle {
  border-color: #555;
  color: #b0b0b0;
}

body.dark-mode .language-toggle:hover {
  border-color: #039be5;
  background-color: rgba(3, 155, 229, 0.1);
}

body.dark-mode .language-toggle i.fa-globe {
  color: #4fc3f7;
}

body.dark-mode .language-dropdown {
  background: #2d2d2d;
  border-color: #404040;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

body.dark-mode .language-option {
  color: #b0b0b0;
}

body.dark-mode .language-option:hover {
  background-color: #1a1a1a;
}

body.dark-mode .language-option.active {
  background-color: rgba(79, 195, 247, 0.15);
  color: #4fc3f7;
}

body.dark-mode .lang-code {
  color: #4fc3f7;
}

body.dark-mode .language-option .fa-check {
  color: #4fc3f7;
}

body.dark-mode .language-option.disabled {
  opacity: 0.4;
}

body.dark-mode .language-separator {
  background-color: #404040;
}

body.dark-mode .coming-soon-label {
  color: #666;
}

/* Navigation Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
  transition: color 0.3s ease;
}

.nav-dropdown-toggle i.fa-chevron-down {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.nav-dropdown-toggle.active i.fa-chevron-down {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
}

.nav-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #555;
  text-decoration: none;
  transition: background-color 0.2s ease;
  font-size: 15px;
}

.nav-dropdown-item:hover {
  background-color: #f5f5f5;
  color: #039be5;
}

.nav-dropdown-item i {
  font-size: 14px;
  width: 16px;
  text-align: center;
  color: #039be5;
}

/* Dark mode for navigation dropdown */
body.dark-mode .nav-dropdown-menu {
  background: #2d2d2d;
  border-color: #404040;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

body.dark-mode .nav-dropdown-item {
  color: #b0b0b0;
}

body.dark-mode .nav-dropdown-item:hover {
  background-color: #1a1a1a;
  color: #4fc3f7;
}

body.dark-mode .nav-dropdown-item i {
  color: #4fc3f7;
}

/* Responsive design for language switcher */
@media (max-width: 768px) {
  .language-toggle {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  .current-lang {
    min-width: 40px;
  }
  
  .language-dropdown {
    min-width: 160px;
  }
  
  .language-option {
    padding: 10px 12px;
  }
  
  .nav-dropdown-menu {
    left: auto;
    right: 0;
    min-width: 180px;
  }
}

