/* Al-Falah — Light theme overrides (data-theme="light" on <html>) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(19, 23, 31, 0.9);
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle-btn:hover {
  color: #55D799;
  border-color: rgba(13, 147, 115, 0.4);
}

html[data-theme="light"] .theme-toggle-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}
html[data-theme="light"] .theme-toggle-btn:hover {
  color: #0D9373;
  border-color: #0D9373;
}

html[data-theme="light"] body {
  background-color: #f8fafc !important;
  color: #0f172a !important;
}

html[data-theme="light"] .bg-dark-950,
html[data-theme="light"] .bg-dark-900,
html[data-theme="light"] .bg-dark-900\/50 {
  background-color: #f1f5f9 !important;
}
html[data-theme="light"] .bg-dark-800,
html[data-theme="light"] .bg-dark-700 {
  background-color: #ffffff !important;
}
html[data-theme="light"] .bg-dark-800\/95 {
  background-color: rgba(255, 255, 255, 0.95) !important;
}

html[data-theme="light"] .border-dark-600,
html[data-theme="light"] .border-dark-500 {
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .text-white {
  color: #0f172a !important;
}
html[data-theme="light"] .text-slate-300,
html[data-theme="light"] .text-slate-400 {
  color: #475569 !important;
}
html[data-theme="light"] .text-slate-500 {
  color: #64748b !important;
}

html[data-theme="light"] .glass {
  background: rgba(255, 255, 255, 0.85) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(12px);
}

html[data-theme="light"] header,
html[data-theme="light"] .sticky {
  background-color: rgba(248, 250, 252, 0.92) !important;
}

html[data-theme="light"] footer,
html[data-theme="light"] footer.bg-dark-950 {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .footer-social {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder {
  color: #94a3b8 !important;
}

html[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0D9373, #059669);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
}

html[data-theme="light"] .hero-glow {
  background: radial-gradient(ellipse at 50% 0%, rgba(13, 147, 115, 0.08), transparent 55%);
}

html[data-theme="light"] #cookie-banner {
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: #e2e8f0 !important;
}

html[data-theme="light"] .lang-switch button {
  color: #475569;
}
html[data-theme="light"] .lang-switch button.active,
html[data-theme="light"] .lang-switch button[aria-pressed="true"] {
  color: #0D9373;
}

/* Mobile sticky bar */
html[data-theme="light"] .mobile-cta-bar,
html[data-theme="light"] [class*="fixed bottom-0"] {
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: #e2e8f0 !important;
}

/* AI assistant stays dark for contrast in both modes — optional light panel */
html[data-theme="light"] #alfalah-ai-panel {
  background: #ffffff;
  border-color: #e2e8f0;
}
html[data-theme="light"] #alfalah-ai-head,
html[data-theme="light"] #alfalah-ai-form {
  background: #f8fafc;
  border-color: #e2e8f0;
}
html[data-theme="light"] #alfalah-ai-head h3 {
  color: #0f172a;
}
html[data-theme="light"] .alfalah-msg.bot {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #0f172a;
}
html[data-theme="light"] #alfalah-ai-form input {
  background: #ffffff !important;
  color: #0f172a !important;
}
