/* ==========================================================================
   FIRE PLANNER - TAILWIND UTILITY MAPPING & CUSTOM STYLES
   ========================================================================== */

/* ==========================================================================
   CSS Reset Khusus & Penyeragaman Font 
   ========================================================================== */
body, input, button, select, textarea, div, span, p, h1, h2, h3, h4, h5, h6, table, th, td, a {
    font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
}

/* TAMBAHAN UTILITIES PADDING & MARGIN YANG HILANG */
.p-2\.5 { padding: 0.625rem; }
.p-3\.5 { padding: 0.875rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

/* ==========================================================================
   Perbaikan Scrollbar Adaptif (Lebih Jelas di Light & Dark)
   ========================================================================== */
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.02); border-radius: 9999px; margin: 4px 0; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 9999px; } /* Warna lebih gelap (slate-400) */
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #64748b; } /* slate-500 */

/* Scrollbar Dark Mode Override */
[data-theme="dark"] .custom-scrollbar::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.02); }
[data-theme="dark"] .custom-scrollbar::-webkit-scrollbar-thumb { background: #475569; }
[data-theme="dark"] .custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #64748b; }

/* ==========================================================================
   Perbaikan Padding dan Border Bertumpuk (Kontainer)
   ========================================================================== */
.accordion-item { border-radius: 0.75rem; overflow: hidden; margin-bottom: 1rem; }
.accordion-content { padding: 0; /* Padding dipindah ke dalam wrapper masing-masing agar border-top mulus */ }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-color: var(--slate-100); }

/* ==========================================================================
   Dark Mode Overrides Lanjutan (Hover & Borders)
   ========================================================================== */
[data-theme="dark"] .bg-white { background-color: var(--slate-900) !important; border-color: rgba(255,255,255,0.08) !important; }
[data-theme="dark"] .bg-slate-50, 
[data-theme="dark"] .bg-slate-100 { background-color: var(--slate-800) !important; border-color: rgba(255,255,255,0.05) !important; }

/* Border Warna Slate yang Spesifik */
[data-theme="dark"] .border-slate-100,
[data-theme="dark"] .border-slate-200,
[data-theme="dark"] .border-slate-300 { border-color: rgba(255,255,255,0.1) !important; }

/* Perbaikan Warna Drawer dan Navbar di Mode Malam */
[data-theme="dark"] .top-action-bar,
[data-theme="dark"] .navigation-drawer { background-color: var(--slate-900) !important; border-color: rgba(255,255,255,0.1) !important; }

/* Perbaikan Hover Menu Akordion & Drawer */
[data-theme="dark"] .hover\:bg-slate-50:hover { background-color: rgba(255,255,255,0.05) !important; }

/* Perbaikan Teks Drawer & Navbar Mode Malam */
[data-theme="dark"] .drawer-title,
[data-theme="dark"] .drawer-menu a,
[data-theme="dark"] .accordion-trigger { color: var(--slate-50) !important; }

/* Perbaikan Warna Teks Global */
[data-theme="dark"] .text-slate-900, 
[data-theme="dark"] .text-slate-800, 
[data-theme="dark"] .text-slate-700 { color: var(--slate-50) !important; }
[data-theme="dark"] .text-slate-600, 
[data-theme="dark"] .text-slate-500, 
[data-theme="dark"] .text-slate-400 { color: var(--slate-300) !important; }

[data-theme="dark"] input { 
    background-color: var(--slate-800) !important; 
    color: var(--slate-50) !important; 
    border-color: rgba(255,255,255,0.15) !important; 
}
[data-theme="dark"] .cursor-not-allowed { background-color: rgba(0,0,0,0.3) !important; color: var(--slate-500) !important; border-color: rgba(255,255,255,0.05) !important; }

/* 1. VARIABEL WARNA (Berdasarkan Tailwind CSS Default Palette) */
:root {
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-400: #60a5fa;
    --blue-500: #3b82f6;
    --blue-600: #0284c7;
    --blue-700: #1d4ed8;
    --blue-800: #1e40af;
    --blue-900: #1e3a8a;

    --emerald-50: #ecfdf5;
    --emerald-100: #d1fae5;
    --emerald-200: #a7f3d0;
    --emerald-300: #6ee7b7;
    --emerald-400: #34d399;
    --emerald-500: #10b981;
    --emerald-600: #059669;
    --emerald-700: #047857;
    --emerald-800: #065f46;
    --emerald-900: #064e3b;

    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;

    --amber-100: #fef3c7;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59e0b;
    --amber-600: #d97706;

    --indigo-50: #eef2ff;
    --indigo-200: #c7d2fe;
    --indigo-400: #818cf8;
    --indigo-500: #6366f1;
    --indigo-700: #4338ca;
    --indigo-800: #3730a3;
    --indigo-900: #312e81;

    --sky-400: #38bdf8;
    --sky-600: #0284c7;
}

/* 2. BASE & TYPOGRAPHY UTILITIES */
.font-sans { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-8xl { font-size: 6rem; line-height: 1; }
.text-\[150px\] { font-size: 150px; }
.text-\[250px\] { font-size: 250px; }
.text-\[10px\] { font-size: 10px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-widest { letter-spacing: 0.1em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: 2; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.italic { font-style: italic; }

/* 3. LAYOUT & FLEXBOX */
.max-w-7xl { max-width: 80rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.h-full { height: 100%; }
.h-2 { height: 0.5rem; }
.w-2 { width: 0.5rem; }
.h-2\.5 { height: 0.625rem; }
.w-2\.5 { width: 0.625rem; }
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.h-\[200px\] { height: 200px; }
.h-\[250px\] { height: 250px; }
.min-h-\[32px\] { min-height: 32px; }
.min-w-\[100px\] { min-width: 100px; }
.min-w-\[120px\] { min-width: 120px; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-align { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-col-center { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.flex-wrap { display: flex; flex-wrap: wrap; }
.flex-wrap-between { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-stretch { align-items: stretch; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }
.flex-1 { flex: 1 1 0%; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-x-4 { column-gap: 1rem; }
.gap-x-8 { column-gap: 2rem; }
.gap-y-2 { row-gap: 0.5rem; }

/* SPACING (Padding & Margin) */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.pl-0 { padding-left: 0; }
.pl-4 { padding-left: 1rem; }
.pl-8 { padding-left: 2rem; }
.pr-2 { padding-right: 0.5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.pt-8 { padding-top: 2rem; }
.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-6 { padding-bottom: 1.5rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-20 { padding-bottom: 5rem; }

.m-0 { margin: 0; }
.mt-0\.5 { margin-top: 0.125rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-0\.5 { margin-bottom: 0.125rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-4 { margin-left: 1rem; }

.space-y-0 > * + * { margin-top: 0; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-10 > * + * { margin-top: 2.5rem; }

/* 4. BACKGROUNDS & COLORS */
.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: var(--slate-50); }
.bg-slate-100 { background-color: var(--slate-100); }
.bg-slate-200 { background-color: var(--slate-200); }
.bg-slate-300 { background-color: var(--slate-300); }
.bg-slate-800 { background-color: var(--slate-800); }
.bg-blue-50 { background-color: var(--blue-50); }
.bg-blue-100 { background-color: var(--blue-100); }
.bg-blue-400 { background-color: var(--blue-400); }
.bg-blue-500 { background-color: var(--blue-500); }
.bg-blue-600 { background-color: var(--blue-600); }
.bg-emerald-50 { background-color: var(--emerald-50); }
.bg-emerald-400 { background-color: var(--emerald-400); }
.bg-emerald-500 { background-color: var(--emerald-500); }
.bg-emerald-600 { background-color: var(--emerald-600); }
.bg-rose-500 { background-color: var(--rose-500); }
.bg-amber-400 { background-color: var(--amber-400); }
.bg-indigo-50 { background-color: var(--indigo-50); }
.bg-indigo-400 { background-color: var(--indigo-400); }
.bg-indigo-500 { background-color: var(--indigo-500); }
.bg-sky-400 { background-color: var(--sky-400); }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-white\/50 { background-color: rgba(255, 255, 255, 0.5); }
.bg-blue-50\/50 { background-color: rgba(239, 246, 255, 0.5); }

/* Text Colors */
.text-white { color: #ffffff; }
.text-slate-300 { color: var(--slate-300); }
.text-slate-400 { color: var(--slate-400); }
.text-slate-500 { color: var(--slate-500); }
.text-slate-600 { color: var(--slate-600); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-800 { color: var(--slate-800); }
.text-slate-900 { color: var(--slate-900); }
.text-blue-300 { color: #93c5fd; }
.text-blue-400 { color: var(--blue-400); }
.text-blue-500 { color: var(--blue-500); }
.text-blue-600 { color: var(--blue-600); }
.text-blue-700 { color: var(--blue-700); }
.text-blue-800 { color: var(--blue-800); }
.text-blue-900 { color: var(--blue-900); }
.text-emerald-50 { color: var(--emerald-50); }
.text-emerald-100 { color: var(--emerald-100); }
.text-emerald-300 { color: var(--emerald-300); }
.text-emerald-400 { color: var(--emerald-400); }
.text-emerald-500 { color: var(--emerald-500); }
.text-emerald-600 { color: var(--emerald-600); }
.text-emerald-700 { color: var(--emerald-700); }
.text-emerald-800 { color: var(--emerald-800); }
.text-emerald-900 { color: var(--emerald-900); }
.text-rose-100 { color: var(--rose-100); }
.text-rose-500 { color: var(--rose-500); }
.text-rose-600 { color: var(--rose-600); }
.text-amber-100 { color: var(--amber-100); }
.text-amber-300 { color: var(--amber-300); }
.text-amber-400 { color: var(--amber-400); }
.text-amber-500 { color: var(--amber-500); }
.text-amber-600 { color: var(--amber-600); }
.text-indigo-600 { color: var(--indigo-500); }
.text-indigo-700 { color: var(--indigo-700); }
.text-indigo-800 { color: var(--indigo-800); }
.text-indigo-900 { color: var(--indigo-900); }
.text-sky-600 { color: var(--sky-600); }
.text-white\/60 { color: rgba(255, 255, 255, 0.6); }
.text-white\/70 { color: rgba(255, 255, 255, 0.7); }
.text-blue-700\/80 { color: rgba(29, 78, 216, 0.8); }

/* Opacity */
.opacity-5 { opacity: 0.05; }
.opacity-10 { opacity: 0.1; }
.opacity-50 { opacity: 0.5; }
.opacity-80 { opacity: 0.8; }
.bg-opacity-20 { --tw-bg-opacity: 0.2; background-color: rgb(255 255 255 / var(--tw-bg-opacity)); }

/* Gradients */
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-emerald-600 { --tw-gradient-from: var(--emerald-600); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(5, 150, 105, 0)); }
.to-emerald-900 { --tw-gradient-to: var(--emerald-900); }
.from-slate-800 { --tw-gradient-from: var(--slate-800); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 41, 59, 0)); }
.to-slate-900 { --tw-gradient-to: var(--slate-900); }
.from-blue-500 { --tw-gradient-from: var(--blue-500); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0)); }
.to-emerald-500 { --tw-gradient-to: var(--emerald-500); }

/* 5. BORDERS & SHADOWS */
.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; }
.border-4 { border-width: 4px; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-b-2 { border-bottom-width: 2px; border-bottom-style: solid; }
.border-b-4 { border-bottom-width: 4px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-l { border-left-width: 1px; border-left-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-dashed { border-style: dashed; }

.border-white { border-color: #ffffff; }
.border-white\/20 { border-color: rgba(255, 255, 255, 0.2); }
.border-slate-100 { border-color: var(--slate-100); }
.border-slate-200 { border-color: var(--slate-200); }
.border-slate-300 { border-color: var(--slate-300); }
.border-slate-700 { border-color: var(--slate-700); }
.border-blue-100 { border-color: var(--blue-100); }
.border-blue-200 { border-color: var(--blue-200); }
.border-blue-600 { border-color: var(--blue-600); }
.border-emerald-100 { border-color: var(--emerald-100); }
.border-emerald-200 { border-color: var(--emerald-200); }
.border-emerald-200\/50 { border-color: rgba(167, 243, 208, 0.5); }
.border-indigo-200 { border-color: var(--indigo-200); }
.border-amber-400 { border-color: var(--amber-400); }

/* Dinamis border-left untuk leverage factor */
.border-blue-500 { border-color: var(--blue-500); }
.border-emerald-500 { border-color: var(--emerald-500); }
.border-amber-500 { border-color: var(--amber-500); }
.border-rose-500 { border-color: var(--rose-500); }

.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }

/* 6. POSITIONING & OTHERS */
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.top-4 { top: 1rem; }
.bottom-0 { bottom: 0; }
.bottom-4 { bottom: 1rem; }
.left-0 { left: 0; }
.right-0 { right: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.-right-10 { right: -2.5rem; }
.-bottom-10 { bottom: -2.5rem; }
.left-\[11px\] { left: 11px; }

.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.overflow-x-auto { overflow-x: auto; }
.pointer-events-none { pointer-events: none; }
.cursor-pointer { cursor: pointer; }
.cursor-not-allowed { cursor: not-allowed; }
.cursor-help { cursor: help; }

.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 300ms; }
.duration-1000 { transition-duration: 1000ms; }

.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }

/* 7. COMPONENT SPECIFIC & PSEUDO-CLASSES */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

@media (min-width: 640px) {
    .sm\:flex { display: flex; }
    .sm\:block { display: block; }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .md\:col-span-2 { grid-column: span 2 / span 2; }
    .md\:col-span-4 { grid-column: span 4 / span 4; }
    .md\:col-span-8 { grid-column: span 8 / span 8; }
    .md\:p-8 { padding: 2rem; }
    .md\:flex-row { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:mt-0 { margin-top: 0; }
    .md\:pl-6 { padding-left: 1.5rem; }
    .md\:pt-0 { padding-top: 0; }
    .md\:border-t-0 { border-top-width: 0; }
    .md\:border-l { border-left-width: 1px; border-left-style: solid; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-3 { grid-column: span 3 / span 3; }
    .lg\:col-span-5 { grid-column: span 5 / span 5; }
    .lg\:col-span-7 { grid-column: span 7 / span 7; }
    .lg\:col-span-9 { grid-column: span 9 / span 9; }
    .lg\:sticky { position: sticky; }
    .lg\:top-24 { top: 6rem; }
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 9999px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* Buttons & Inputs */
.hover\:bg-blue-700:hover { background-color: var(--blue-700); }
.hover\:bg-slate-50:hover { background-color: var(--slate-50); }
.hover\:bg-slate-100:hover { background-color: var(--slate-100); }
.group:hover .group-hover\:border-blue-200 { border-color: var(--blue-200); }

.active\:scale-95:active { transform: scale(0.95); }

/* Timeline Decorative Line (Replicating the before: pseudo elements in TSX) */
.before\:absolute::before { content: ''; position: absolute; }
.before\:inset-0::before { top: 0; right: 0; bottom: 0; left: 0; }
.before\:ml-5::before { margin-left: 1.25rem; }
.before\:-translate-x-px::before { transform: translateX(-1px); }
.before\:h-full::before { height: 100%; }
.before\:w-0\.5::before { width: 0.125rem; }
.before\:bg-slate-200::before { background-color: var(--slate-200); }

/* Stacked Bar untuk Leverage Analysis */
.leverage-bar-container { display: flex; height: 1rem; width: 100%; border-radius: 9999px; overflow: hidden; box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06); }

/* Accordion Specifics */
.accordion-icon { transition: transform 0.3s ease; }
.accordion-header[aria-expanded="true"] .accordion-icon { transform: rotate(180deg); }
.accordion-content.hidden { display: none; }
.accordion-content { display: block; animation: slideDown 0.3s ease-out forwards; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* Fix table display in accordion */
.whitespace-nowrap { white-space: nowrap; }
.divide-y > :not([hidden]) ~ :not([hidden]) { border-top-width: 1px; border-top-style: solid; border-color: inherit; }

/* Dashboard output fade in */
#dashboard-output:not(.hidden) { animation: fadeIn 0.5s ease forwards; }
#feedback-banner:not(.hidden) { animation: slideDown 0.4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Custom utility untuk tinggi sidebar */
.h-\[calc\(100vh-7rem\)\] { height: calc(100vh - 7rem); }
.max-h-\[calc\(100vh-7rem\)\] { max-height: calc(100vh - 7rem); }

/* Enforcement Keseragaman Font Mencegah Override Browser */
body, input, button, select, textarea, div, span, p, h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   Dark Mode Overrides (Comprehensively Mapped)
   ========================================================================== */
[data-theme="dark"] .bg-white { background-color: var(--slate-900) !important; border-color: rgba(255,255,255,0.1) !important; }
[data-theme="dark"] .bg-slate-50, [data-theme="dark"] .bg-slate-100 { background-color: var(--slate-800) !important; border-color: rgba(255,255,255,0.05) !important; }

/* Mengubah warna latar khusus di mode malam agar tetap menyatu */
[data-theme="dark"] .bg-blue-50, [data-theme="dark"] .bg-blue-100 { background-color: rgba(59, 130, 246, 0.1) !important; border-color: rgba(59, 130, 246, 0.2) !important; }
[data-theme="dark"] .bg-emerald-50, [data-theme="dark"] .bg-emerald-100 { background-color: rgba(16, 185, 129, 0.1) !important; border-color: rgba(16, 185, 129, 0.2) !important; }
[data-theme="dark"] .bg-indigo-50 { background-color: rgba(99, 102, 241, 0.1) !important; border-color: rgba(99, 102, 241, 0.2) !important; }

/* Pemetaan Teks Slate (Hitam/Abu-abu menjadi Putih/Abu Terang) */
[data-theme="dark"] .text-slate-900, 
[data-theme="dark"] .text-slate-800, 
[data-theme="dark"] .text-slate-700 { color: var(--slate-50) !important; }

[data-theme="dark"] .text-slate-600, 
[data-theme="dark"] .text-slate-500, 
[data-theme="dark"] .text-slate-400 { color: var(--slate-300) !important; }

/* Pemetaan Teks Warna Khusus di Mode Malam (Biru, Hijau, Merah) */
[data-theme="dark"] .text-blue-900, 
[data-theme="dark"] .text-blue-800, 
[data-theme="dark"] .text-blue-700 { color: #93c5fd !important; } /* blue-300 */

[data-theme="dark"] .text-emerald-900, 
[data-theme="dark"] .text-emerald-800, 
[data-theme="dark"] .text-emerald-700 { color: #6ee7b7 !important; } /* emerald-300 */

[data-theme="dark"] .text-indigo-900, 
[data-theme="dark"] .text-indigo-800 { color: #a5b4fc !important; } /* indigo-300 */

/* Form Inputs Override Mode Malam */
[data-theme="dark"] input { 
    background-color: var(--slate-800) !important; 
    color: var(--slate-50) !important; 
    border-color: rgba(255,255,255,0.2) !important; 
}
[data-theme="dark"] input::placeholder { color: var(--slate-500) !important; }
[data-theme="dark"] .cursor-not-allowed { background-color: rgba(0,0,0,0.2) !important; color: var(--slate-400) !important; }

/* ==========================================================================
   TWEAK UI: CLEAN DASHBOARD (Melembutkan Border & Memperbaiki Shadow)
   ========================================================================== */
/* Membuat garis border card menjadi sangat tipis dan elegan di Light Mode */
body:not([data-theme="dark"]) .border-slate-200,
body:not([data-theme="dark"]) .border-slate-100 { 
    border-color: rgba(0, 0, 0, 0.04); 
}

/* Memperhalus bayangan (shadow) agar card terlihat melayang rapi */
body:not([data-theme="dark"]) .shadow-sm { 
    box-shadow: 0 1px 2px rgba(0,0,0,0.01), 0 4px 12px rgba(0,0,0,0.03); 
}
body:not([data-theme="dark"]) .shadow-md { 
    box-shadow: 0 2px 4px rgba(0,0,0,0.02), 0 8px 16px rgba(0,0,0,0.04); 
}

/* Background panel yang lebih soft */
body:not([data-theme="dark"]) .bg-slate-50 {
    background-color: #f8fafc; /* Memastikan kelembutan warna */
}

/* Mempertegas border khusus form input agar tidak ikut menghilang */
body:not([data-theme="dark"]) input.border-slate-300 {
    border-color: #cbd5e1;
}

#landing-page {
    padding: 2.5em 0;
    margin: 0;
}

/* ==========================================================================
   INTEGRASI EFEK HOVER, ACTIVE, & FOCUS DARI STYLE.CSS UTAMA
   ========================================================================== */

/* 1. Efek Teks yang Diblok (Selection) */
::selection {
    background: var(--accent-glow);
    color: var(--text-primary);
}

/* 2. Aksesibilitas: Efek Fokus Global */
input:focus-visible, 
button:focus-visible, 
a:focus-visible {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
    outline: 1px solid var(--accent-color);
    outline-offset: 0px;
}

/* 3. Tombol Utama ("Hitung Simulasi") - Efek Melayang & Glow */
#btn-calculate {
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

#btn-calculate:hover {
    transform: translateY(-4px); /* Mengangkat ke atas */
    box-shadow: 0 12px 24px rgba(2, 132, 199, 0.4); /* Glow biru */
    background: var(--accent-gradient) !important; /* Gradasi dari style.css */
}

#btn-calculate:active {
    transform: translateY(0) scale(0.98); /* Ditekan ke bawah */
    box-shadow: var(--shadow-sm);
}

/* 4. Efek Hover pada Accordion & Card Interaktif */
.accordion-item,
.accordion-header {
    transition: all var(--transition-normal);
}

.accordion-item:hover {
    border-color: var(--accent-glow) !important; /* Border menyala biru tipis */
    box-shadow: var(--shadow-md) !important;
}

/* 5. Input Fields - Efek Fokus yang Lebih Elegan */
input[type="number"] {
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input[type="number"]:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

/* 6. Animasi Transisi Halus pada Badge Status (Saat hasil simulasi berubah) */
#status-badge {
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* 7. Hover khusus pada List Data Historis */
#dt-body tr {
    transition: background-color var(--transition-fast);
}
#dt-body tr:hover {
    background-color: var(--glass-bg-hover) !important;
}

/* ==========================================================================
   PENYESUAIAN DARK MODE UNTUK EFEK DI ATAS
   ========================================================================== */
[data-theme="dark"] #btn-calculate:hover {
    box-shadow: 0 12px 24px rgba(56, 189, 248, 0.3); /* Glow sky blue */
}

[data-theme="dark"] .accordion-item:hover {
    border-color: rgba(56, 189, 248, 0.4) !important;
    background-color: rgba(255, 255, 255, 0.02) !important;
}

[data-theme="dark"] input[type="number"]:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2) !important;
}

/* Utilitas tambahan untuk Timeline Compact */
.w-fit { width: fit-content; }
@media (min-width: 640px) {
    .sm\:w-auto { width: auto; }
    .sm\:flex-row { flex-direction: row; }
    .sm\:items-center { align-items: center; }
}

/* Memastikan garis dan dot terlihat sempurna di Dark Mode */
[data-theme="dark"] .bg-slate-200.group-hover\:bg-blue-300 { background-color: rgba(255,255,255,0.1) !important; }
[data-theme="dark"] .group:hover .group-hover\:bg-blue-300 { background-color: var(--blue-500) !important; }
[data-theme="dark"] .border-white { border-color: var(--slate-900) !important; }

/* ==========================================================================
   FIX: GARIS MASTER TIMELINE
   ========================================================================== */
.timeline-line {
    width: 2px !important; /* Mengunci lebar garis */
    background-color: #e2e8f0 !important; /* Warna garis di Light Mode (slate-200) */
}

/* Penyesuaian Garis Timeline & Bullet di Dark Mode */
[data-theme="dark"] .timeline-line { 
    background-color: rgba(255, 255, 255, 0.1) !important; /* Warna garis transparan di Dark Mode */
}
[data-theme="dark"] .border-white { 
    border-color: var(--slate-900) !important; 
}

/* Menambahkan utility width yang sebelumnya terlewat (berjaga-jaga) */
.w-0\.5 { width: 0.125rem; }

/* Penyesuaian Garis Timeline & Bullet di Dark Mode */
[data-theme="dark"] .timeline-line { background-color: rgba(255, 255, 255, 0.1) !important; }
[data-theme="dark"] .border-white { border-color: var(--slate-900) !important; }

/* Penyesuaian Ikon Landing Page di Mode Malam */
[data-theme="dark"] #landing-page .text-blue-600 {
    color: var(--blue-400) !important;
}
[data-theme="dark"] #landing-page .bg-blue-50 {
    background-color: rgba(2, 132, 199, 0.1) !important;
    border-color: rgba(2, 132, 199, 0.2) !important;
}

/* ==========================================================================
   FIX UKURAN IKON & CONTAINER LANDING PAGE
   ========================================================================== */
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-14 { width: 3.5rem; }
.h-14 { height: 3.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
.rounded-2xl { border-radius: 1rem; }

.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

/* ==========================================================================
   UTILITIES TAMBAHAN HERO SECTION LANDING PAGE
   ========================================================================== */
.w-20 { width: 5rem; }
.h-20 { height: 5rem; }
.rounded-3xl { border-radius: 1.5rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.mb-10 { margin-bottom: 2.5rem; }