/* ========================================================
   SEDEKAH SUBUH BERKAH - UNIVERSAL LIGHT THEME STYLESHEET
   Clean, Modern, Islamic-Inspired High Contrast Design
   ======================================================== */

html.theme-light {
    color-scheme: light;
}

/* Base Body & Layout */
html.theme-light body {
    background-color: #f8fafc !important; /* Soft warm slate-50 */
    color: #1e293b !important; /* Slate 800 */
}

/* Background Replacements for Main Cards & Surfaces */
html.theme-light .bg-\[\#090d16\],
html.theme-light .bg-\[\#0b0f1d\],
html.theme-light .bg-\[\#0d1322\],
html.theme-light .bg-\[\#0e1424\],
html.theme-light .bg-\[\#0c101d\],
html.theme-light .bg-\[\#070a12\],
html.theme-light .bg-\[\#07090e\],
html.theme-light .bg-\[\#13192b\],
html.theme-light .bg-slate-950,
html.theme-light .bg-slate-900,
html.theme-light .bg-slate-850,
html.theme-light .bg-slate-800 {
    background-color: #ffffff !important;
}

/* Hero & Section Gradients in Light Mode */
html.theme-light section.bg-gradient-to-b.from-indigo-950,
html.theme-light section.bg-gradient-to-b.from-\[\#090d16\] {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%) !important;
    color: #1e293b !important;
}

html.theme-light section#bonus-app {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

html.theme-light section#live-donors-section {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
}

/* Secondary & Nested Card Backgrounds */
html.theme-light .bg-purple-950\/40,
html.theme-light .bg-purple-950\/50,
html.theme-light .bg-purple-950\/60,
html.theme-light .bg-purple-950\/70,
html.theme-light .bg-purple-950\/80,
html.theme-light .bg-purple-950\/90,
html.theme-light .bg-purple-950,
html.theme-light .bg-indigo-950\/90,
html.theme-light .bg-indigo-950,
html.theme-light .bg-purple-900\/40,
html.theme-light .bg-purple-900\/50,
html.theme-light .bg-purple-900\/60,
html.theme-light .bg-purple-900\/80,
html.theme-light .bg-slate-900\/80,
html.theme-light .bg-slate-900\/90,
html.theme-light .bg-slate-950\/80,
html.theme-light .bg-slate-950\/90,
html.theme-light .bg-slate-950\/95,
html.theme-light .bg-\[\#090d16\]\/90,
html.theme-light .bg-\[\#090d16\]\/95,
html.theme-light .bg-\[\#0d1322\]\/95 {
    background-color: #f1f5f9 !important; /* Slate 100 */
}

/* Background Gradients */
html.theme-light .from-purple-950,
html.theme-light .to-indigo-950,
html.theme-light .via-slate-900 {
    --tw-gradient-from: #f8fafc var(--tw-gradient-from-position) !important;
    --tw-gradient-to: #e2e8f0 var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), #f1f5f9 var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

/* Clean Borders and Shadows for Cards */
html.theme-light .bg-slate-950.border,
html.theme-light .bg-slate-900.border,
html.theme-light .bg-\[\#0e1424\].border,
html.theme-light .bg-\[\#13192b\].border {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Typography & Headings */
html.theme-light h1,
html.theme-light h2,
html.theme-light h3,
html.theme-light h4,
html.theme-light h5,
html.theme-light h6,
html.theme-light .text-white {
    color: #0f172a !important; /* Slate 900 */
}

html.theme-light .text-slate-100,
html.theme-light .text-slate-200,
html.theme-light .text-slate-300,
html.theme-light .text-purple-100 {
    color: #334155 !important; /* Slate 700 */
}

html.theme-light .text-slate-400,
html.theme-light .text-purple-200,
html.theme-light .text-purple-300 {
    color: #64748b !important; /* Slate 500 */
}

html.theme-light .text-purple-400 {
    color: #7c3aed !important;
}

/* Accents with Strong Contrast on Light Backgrounds */
html.theme-light .text-amber-300,
html.theme-light .text-amber-400 {
    color: #b45309 !important; /* Deep rich Amber 700 */
}

html.theme-light .text-emerald-300,
html.theme-light .text-emerald-400 {
    color: #047857 !important; /* Deep Emerald 700 */
}

html.theme-light .text-cyan-300,
html.theme-light .text-cyan-400 {
    color: #0e7490 !important; /* Cyan 700 */
}

html.theme-light .text-rose-300,
html.theme-light .text-rose-400 {
    color: #be123c !important; /* Rose 700 */
}

/* Borders */
html.theme-light .border-purple-900\/40,
html.theme-light .border-purple-900\/50,
html.theme-light .border-purple-900\/60,
html.theme-light .border-purple-900\/80,
html.theme-light .border-purple-900,
html.theme-light .border-purple-800\/40,
html.theme-light .border-purple-800\/50,
html.theme-light .border-purple-800\/60,
html.theme-light .border-purple-800\/80,
html.theme-light .border-purple-800,
html.theme-light .border-purple-700\/40,
html.theme-light .border-purple-700\/50,
html.theme-light .border-purple-700\/60,
html.theme-light .border-purple-700,
html.theme-light .border-slate-850,
html.theme-light .border-slate-800,
html.theme-light .border-slate-750,
html.theme-light .border-slate-700 {
    border-color: #e2e8f0 !important; /* Slate 200 */
}

/* Header & Sidebar */
html.theme-light aside#desktop-landing-sidebar,
html.theme-light aside#desktop-sidebar {
    background-color: #ffffff !important;
    border-right-color: #e2e8f0 !important;
    box-shadow: 4px 0 24px -2px rgba(0, 0, 0, 0.04) !important;
}

html.theme-light header {
    background-color: rgba(255, 255, 255, 0.96) !important;
    border-bottom-color: #e2e8f0 !important;
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.03) !important;
}

html.theme-light #mobile-nav-menu {
    background-color: #ffffff !important;
    border-bottom-color: #e2e8f0 !important;
}

/* Bottom Navigation */
html.theme-light nav.fixed.bottom-0,
html.theme-light div.fixed.bottom-0 {
    background-color: rgba(255, 255, 255, 0.96) !important;
    border-top-color: #e2e8f0 !important;
    box-shadow: 0 -4px 16px -2px rgba(0, 0, 0, 0.06) !important;
}

/* Inputs, Selects, and Textareas */
html.theme-light input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html.theme-light select,
html.theme-light textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}

html.theme-light input::placeholder,
html.theme-light textarea::placeholder {
    color: #94a3b8 !important;
}

html.theme-light select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

html.theme-light input:focus,
html.theme-light textarea:focus,
html.theme-light select:focus {
    border-color: #f59e0b !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

/* Buttons in Navigation and Actions */
html.theme-light .bg-slate-900.text-slate-200,
html.theme-light .bg-slate-900.text-slate-300,
html.theme-light .bg-slate-900.text-purple-200 {
    background-color: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #e2e8f0 !important;
}

html.theme-light .bg-slate-900.text-slate-200:hover,
html.theme-light .bg-slate-900.text-slate-300:hover {
    background-color: #e2e8f0 !important;
    color: #0f172a !important;
}

/* Badges */
html.theme-light .bg-emerald-950 {
    background-color: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}

html.theme-light .bg-purple-950 {
    background-color: #f5f3ff !important;
    color: #6d28d9 !important;
    border-color: #ddd6fe !important;
}

html.theme-light .bg-cyan-950 {
    background-color: #ecfeff !important;
    color: #0e7490 !important;
    border-color: #a5f3fc !important;
}

html.theme-light .bg-rose-950,
html.theme-light .bg-rose-950\/80 {
    background-color: #fff1f2 !important;
    color: #be123c !important;
    border-color: #fecdd3 !important;
}

/* Glass cards in donasi.html */
html.theme-light .glass-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px -1px rgba(0, 0, 0, 0.05) !important;
}

html.theme-light .glass-card-emerald {
    background: #f0fdf4 !important;
    border: 1px solid #bbf7d0 !important;
}

html.theme-light .glass-card-gold {
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
}

html.theme-light .table-row-hover:hover {
    background-color: #f8fafc !important;
}

/* Tables in Light Mode */
html.theme-light table {
    color: #1e293b !important;
}

html.theme-light thead th {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-bottom: 2px solid #cbd5e1 !important;
}

html.theme-light tbody tr {
    border-bottom: 1px solid #e2e8f0 !important;
}

html.theme-light tbody td {
    color: #334155 !important;
}

/* Scrollbars */
html.theme-light ::-webkit-scrollbar-track {
    background: #f1f5f9 !important;
}

html.theme-light ::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
}

html.theme-light ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* Chat AI Window */
html.theme-light #ai-chat-window {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

html.theme-light #ai-messages-box {
    background-color: #f8fafc !important;
}

/* Modal Backdrops */
html.theme-light .fixed.inset-0.bg-slate-950\/90,
html.theme-light .fixed.inset-0.bg-slate-950\/80,
html.theme-light .fixed.inset-0.bg-black\/80,
html.theme-light .fixed.inset-0.bg-black\/70,
html.theme-light .fixed.inset-0.bg-black\/60,
html.theme-light .fixed.inset-0.bg-\[\#070a12\]\/95 {
    background-color: rgba(15, 23, 42, 0.6) !important;
}

/* Footer in Light Mode */
html.theme-light footer {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
    border-top-color: #e2e8f0 !important;
}

html.theme-light footer p,
html.theme-light footer a {
    color: #64748b !important;
}

html.theme-light footer a:hover {
    color: #d97706 !important;
}

/* Theme Toggle Button Micro-interactions */
.theme-toggle-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.theme-toggle-btn:hover {
    transform: translateY(-1px);
}

.theme-toggle-btn:active {
    transform: scale(0.96);
}

/* App Header & Phone Frame Background (Pure White Background matching User Request: serta backgroundnyya (putih)) */
.app-phone-frame {
    background-color: #ffffff !important;
}
.app-main-sheet {
    background-color: #ffffff !important;
}
html.theme-light .app-phone-frame,
html:not(.theme-light) .app-phone-frame {
    background-color: #ffffff !important;
}
html.theme-light .app-main-sheet,
html:not(.theme-light) .app-main-sheet {
    background-color: #ffffff !important;
}
html.theme-light .min-h-screen.bg-slate-950 {
    background-color: #f8fafc !important;
}

/* Head Gradasi Pink-Violet Sesuai Gambar User */
.header-pink-violet {
    background: linear-gradient(145deg, #d946ef 0%, #c026d3 20%, #9333ea 55%, #6b21a8 90%, #581c87 100%) !important;
}

/* Amalan Item Bars (Pink-Violet Gradient dengan Huruf Putih Kontras) */
.amalan-item {
    background: linear-gradient(90deg, #c026d3 0%, #9333ea 50%, #7c3aed 100%) !important;
    color: #ffffff !important;
}

.amalan-item h1,
.amalan-item h2,
.amalan-item h3,
.amalan-item h4,
.amalan-item h5,
.amalan-item p,
.amalan-item span:not(.button-dark-text) {
    color: #ffffff !important;
}

.amalan-item .bg-amber-400,
.amalan-item .bg-amber-400 *,
.amalan-item .bg-emerald-400,
.amalan-item .bg-emerald-400 * {
    color: #0f172a !important; /* Tombol Bayar / Sapa tetap jelas */
}

/* Frame Kotak Putih Bersih (Solid Clean White matching User Request) */
.frame-kotak-amalan {
    background-color: #ffffff !important;
    border-radius: 2rem !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 10px 30px -5px rgba(147, 51, 234, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.04) !important;
}

html.theme-light .frame-kotak-amalan,
html:not(.theme-light) .frame-kotak-amalan {
    background-color: #ffffff !important;
    border: 1px solid #f1f5f9 !important;
}

#desktop-sidebar {
    background: linear-gradient(160deg, #d946ef 0%, #c026d3 15%, #9333ea 50%, #6b21a8 85%, #581c87 100%) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

#mobile-bottom-nav {
    background: linear-gradient(90deg, #d946ef 0%, #c026d3 20%, #9333ea 55%, #6b21a8 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    box-shadow: 0 -8px 30px rgba(147, 51, 234, 0.35) !important;
}

/* Responsif: Tampilan PC pakai Sidebar, Tampilan HP pakai Bottom Bar */
@media (min-width: 768px) {
    #desktop-sidebar {
        display: flex !important;
    }
    #mobile-bottom-nav {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    #desktop-sidebar {
        display: none !important;
    }
    #mobile-bottom-nav {
        display: flex !important;
    }
}


