html.dark {
    color-scheme: dark;
    background: #0b1220;
}

html.dark body {
    background-color: #0b1220 !important;
    color: #dbe7f6 !important;
}

html.dark *,
html.dark ::before,
html.dark ::after {
    border-color: #243247;
}

html.dark .bg-white { background-color: #111c2e !important; }
html.dark .bg-white\/95 { background-color: rgba(17, 28, 46, .96) !important; }
html.dark .bg-white\/90 { background-color: rgba(17, 28, 46, .92) !important; }
html.dark .bg-slate-50 { background-color: #0f1a2b !important; }
html.dark .bg-slate-50\/60 { background-color: rgba(15, 26, 43, .6) !important; }
html.dark .bg-slate-50\/70 { background-color: rgba(15, 26, 43, .7) !important; }
html.dark .bg-slate-100 { background-color: #162236 !important; }
html.dark .bg-slate-200 { background-color: #1e2c42 !important; }
html.dark .bg-slate-200\/70 { background-color: rgba(30, 44, 66, .7) !important; }
html.dark .bg-slate-300 { background-color: #2b3a52 !important; }
html.dark .bg-slate-400 { background-color: #3b4c66 !important; }
html.dark .bg-slate-500 { background-color: #475569 !important; }
html.dark .bg-slate-700 { background-color: #334155 !important; }
html.dark .bg-slate-800 { background-color: #202c3e !important; }
html.dark .bg-slate-800\/50 { background-color: rgba(32, 44, 62, .5) !important; }
html.dark .bg-slate-900 { background-color: #0f172a !important; }

html.dark .bg-\[\#edf3f8\] { background-color: #0b1220 !important; }
html.dark .bg-\[\#17335c\] { background-color: #0f2138 !important; }
html.dark .bg-\[\#102340\] { background-color: #0b1628 !important; }
html.dark .bg-\[\#1e3a8a\] { background-color: #172554 !important; }

html.dark .bg-blue-50 { background-color: rgba(59, 130, 246, .12) !important; }
html.dark .bg-blue-50\/40 { background-color: rgba(59, 130, 246, .07) !important; }
html.dark .bg-blue-100 { background-color: rgba(59, 130, 246, .19) !important; }
html.dark .bg-emerald-50 { background-color: rgba(16, 185, 129, .11) !important; }
html.dark .bg-emerald-100 { background-color: rgba(16, 185, 129, .18) !important; }
html.dark .bg-amber-50 { background-color: rgba(245, 158, 11, .11) !important; }
html.dark .bg-amber-50\/40 { background-color: rgba(245, 158, 11, .07) !important; }
html.dark .bg-amber-100 { background-color: rgba(245, 158, 11, .19) !important; }
html.dark .bg-red-50 { background-color: rgba(239, 68, 68, .11) !important; }
html.dark .bg-red-100 { background-color: rgba(239, 68, 68, .19) !important; }
html.dark .bg-green-50 { background-color: rgba(34, 197, 94, .11) !important; }
html.dark .bg-sky-50 { background-color: rgba(14, 165, 233, .11) !important; }
html.dark .bg-indigo-100 { background-color: rgba(99, 102, 241, .19) !important; }
html.dark .bg-orange-100 { background-color: rgba(249, 115, 22, .19) !important; }

html.dark .border-slate-100 { border-color: #1b2940 !important; }
html.dark .border-slate-200 { border-color: #243247 !important; }
html.dark .border-slate-200\/80 { border-color: rgba(36, 50, 71, .8) !important; }
html.dark .border-slate-300 { border-color: #334155 !important; }
html.dark .border-slate-700 { border-color: #334155 !important; }
html.dark .border-slate-800 { border-color: #1e293b !important; }
html.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]) { border-color: #1b2940 !important; }
html.dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]) { border-color: #243247 !important; }

html.dark .border-blue-100 { border-color: rgba(59, 130, 246, .22) !important; }
html.dark .border-blue-200 { border-color: rgba(59, 130, 246, .32) !important; }
html.dark .border-emerald-100 { border-color: rgba(16, 185, 129, .22) !important; }
html.dark .border-emerald-200 { border-color: rgba(16, 185, 129, .32) !important; }
html.dark .border-amber-200 { border-color: rgba(245, 158, 11, .32) !important; }
html.dark .border-amber-300 { border-color: rgba(245, 158, 11, .42) !important; }
html.dark .border-red-200 { border-color: rgba(239, 68, 68, .32) !important; }
html.dark .border-red-300 { border-color: rgba(239, 68, 68, .42) !important; }
html.dark .border-green-200 { border-color: rgba(34, 197, 94, .32) !important; }

html.dark .text-slate-900 { color: #f8fafc !important; }
html.dark .text-slate-800 { color: #e2e8f0 !important; }
html.dark .text-slate-700 { color: #cbd5e1 !important; }
html.dark .text-slate-600 { color: #b6c4d6 !important; }
html.dark .text-slate-500 { color: #94a3b8 !important; }
html.dark .text-slate-400 { color: #94a3b8 !important; }
html.dark .text-slate-300 { color: #cbd5e1 !important; }
html.dark .text-slate-200 { color: #e2e8f0 !important; }
html.dark .text-slate-100 { color: #f1f5f9 !important; }

html.dark .text-blue-500,
html.dark .text-blue-600 { color: #60a5fa !important; }
html.dark .text-blue-700 { color: #93c5fd !important; }
html.dark .text-blue-800 { color: #bfdbfe !important; }
html.dark .text-blue-900 { color: #dbeafe !important; }

html.dark .text-emerald-500,
html.dark .text-emerald-600 { color: #34d399 !important; }
html.dark .text-emerald-700 { color: #6ee7b7 !important; }
html.dark .text-emerald-800 { color: #a7f3d0 !important; }
html.dark .text-emerald-900 { color: #d1fae5 !important; }
html.dark .text-emerald-100 { color: #d1fae5 !important; }
html.dark .text-emerald-200 { color: #a7f3d0 !important; }

html.dark .text-amber-300,
html.dark .text-amber-500,
html.dark .text-amber-600 { color: #fbbf24 !important; }
html.dark .text-amber-700 { color: #fcd34d !important; }
html.dark .text-amber-800 { color: #fde68a !important; }
html.dark .text-amber-900 { color: #fef3c7 !important; }

html.dark .text-red-500,
html.dark .text-red-600 { color: #f87171 !important; }
html.dark .text-red-700 { color: #fca5a5 !important; }
html.dark .text-red-800 { color: #fecaca !important; }
html.dark .text-red-900 { color: #fee2e2 !important; }

html.dark .text-green-600 { color: #4ade80 !important; }
html.dark .text-green-700 { color: #86efac !important; }
html.dark .text-green-800 { color: #bbf7d0 !important; }
html.dark .text-green-900 { color: #dcfce7 !important; }
html.dark .text-sky-500,
html.dark .text-sky-600 { color: #38bdf8 !important; }
html.dark .text-sky-700 { color: #7dd3fc !important; }
html.dark .text-indigo-500,
html.dark .text-indigo-600 { color: #818cf8 !important; }
html.dark .text-indigo-700 { color: #a5b4fc !important; }
html.dark .text-purple-600 { color: #c084fc !important; }
html.dark .text-violet-600 { color: #a78bfa !important; }
html.dark .text-teal-600 { color: #2dd4bf !important; }
html.dark .text-orange-600 { color: #fb923c !important; }
html.dark .text-orange-700 { color: #fdba74 !important; }

html.dark .placeholder-slate-400::placeholder { color: #64748b !important; }
html.dark .placeholder-slate-500::placeholder { color: #64748b !important; }

html.dark .hover\:bg-white:hover { background-color: #18253a !important; }
html.dark .hover\:bg-slate-50:hover { background-color: #18253a !important; }
html.dark .hover\:bg-slate-100:hover { background-color: #1e2c42 !important; }
html.dark .hover\:bg-slate-200:hover { background-color: #263650 !important; }
html.dark .hover\:bg-blue-50:hover { background-color: rgba(59, 130, 246, .16) !important; }
html.dark .hover\:bg-blue-100:hover { background-color: rgba(59, 130, 246, .24) !important; }
html.dark .hover\:bg-emerald-50:hover { background-color: rgba(16, 185, 129, .15) !important; }
html.dark .hover\:bg-emerald-100:hover { background-color: rgba(16, 185, 129, .24) !important; }
html.dark .hover\:bg-amber-100:hover { background-color: rgba(245, 158, 11, .24) !important; }
html.dark .hover\:bg-red-50:hover { background-color: rgba(239, 68, 68, .15) !important; }
html.dark .hover\:bg-red-100:hover { background-color: rgba(239, 68, 68, .24) !important; }

html.dark .hover\:text-slate-600:hover { color: #cbd5e1 !important; }
html.dark .hover\:text-slate-700:hover { color: #e2e8f0 !important; }
html.dark .hover\:text-slate-800:hover { color: #f1f5f9 !important; }
html.dark .hover\:text-blue-700:hover { color: #93c5fd !important; }
html.dark .hover\:text-blue-800:hover { color: #bfdbfe !important; }
html.dark .hover\:text-red-700:hover { color: #fca5a5 !important; }
html.dark .hover\:text-red-800:hover { color: #fecaca !important; }
html.dark .hover\:text-emerald-800:hover { color: #a7f3d0 !important; }

html.dark .ring-blue-100 { --tw-ring-color: rgba(59, 130, 246, .28) !important; }
html.dark .ring-slate-200 { --tw-ring-color: #243247 !important; }

html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]),
html.dark select,
html.dark textarea {
    background-color: #0f1a2b !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html.dark input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"])::placeholder,
html.dark textarea::placeholder {
    color: #64748b !important;
}

html.dark select option {
    background-color: #111c2e;
    color: #e2e8f0;
}

html.dark input[type="checkbox"],
html.dark input[type="radio"],
html.dark input[type="range"] {
    accent-color: #3b82f6;
}

html.dark input[type="date"]::-webkit-calendar-picker-indicator,
html.dark input[type="time"]::-webkit-calendar-picker-indicator,
html.dark input[type="datetime-local"]::-webkit-calendar-picker-indicator,
html.dark input[type="month"]::-webkit-calendar-picker-indicator {
    filter: invert(.75);
}

html.dark ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html.dark ::-webkit-scrollbar-track {
    background: #0b1220;
}

html.dark ::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 999px;
    border: 2px solid #0b1220;
}

html.dark ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

html.dark [data-theme-toggle] .fa-moon,
html.dark [data-theme-toggle] .fa-sun {
    color: #fbbf24;
}

html.dark [data-theme-toggle] span {
    color: #cbd5e1;
}

html.dark .logo-frame {
    background-color: #ffffff !important;
}

/* Splash screen PWA memakai latar putih (#ffffff) supaya lingkaran putih
   ikon menyatu. Samakan latar halaman di mode terang agar transisi
   splash -> halaman tidak terlihat seperti kedip. Mode gelap tetap
   diatur oleh aturan html.dark di atas/bawah ini. */
html:not(.dark) body.bg-\[\#edf3f8\] {
    background-color: #ffffff !important;
}
