/* =========================================================
   ANV FASHION - GLOBAL DARK MODE
   Berlaku untuk Admin, Finance, Freelancer dan Website
========================================================= */

html[data-theme="dark"] {
    color-scheme: dark;

    --anv-dark-bg: #0b1220;
    --anv-dark-surface: #131f32;
    --anv-dark-surface-2: #192840;
    --anv-dark-hover: #22334d;
    --anv-dark-border: #2b3b52;
    --anv-dark-text: #e2e8f0;
    --anv-dark-muted: #94a3b8;
}

/* Background utama */
html[data-theme="dark"] body {
    background-color: var(--anv-dark-bg);
    color: var(--anv-dark-text);
}

/* Surface putih dan netral */
html[data-theme="dark"] .bg-white,
html[data-theme="dark"] .bg-white\/95,
html[data-theme="dark"] .bg-white\/90,
html[data-theme="dark"] .bg-white\/80,
html[data-theme="dark"] .bg-slate-50,
html[data-theme="dark"] .bg-gray-50,
html[data-theme="dark"] .bg-neutral-50 {
    background-color: var(--anv-dark-bg) !important;
}

html[data-theme="dark"] .bg-slate-100,
html[data-theme="dark"] .bg-gray-100,
html[data-theme="dark"] .bg-neutral-100 {
    background-color: var(--anv-dark-surface) !important;
}

html[data-theme="dark"] .bg-slate-200,
html[data-theme="dark"] .bg-gray-200,
html[data-theme="dark"] .bg-neutral-200 {
    background-color: var(--anv-dark-surface-2) !important;
}

/* Card dan panel */
html[data-theme="dark"] .rounded-xl.bg-white,
html[data-theme="dark"] .rounded-2xl.bg-white,
html[data-theme="dark"] .rounded-lg.bg-white,
html[data-theme="dark"] .shadow-sm.bg-white,
html[data-theme="dark"] .shadow-md.bg-white,
html[data-theme="dark"] .shadow-lg.bg-white {
    background-color: var(--anv-dark-surface) !important;
}

/* Teks netral */
html[data-theme="dark"] .text-slate-900,
html[data-theme="dark"] .text-slate-800,
html[data-theme="dark"] .text-gray-900,
html[data-theme="dark"] .text-gray-800,
html[data-theme="dark"] .text-neutral-900,
html[data-theme="dark"] .text-neutral-800 {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] .text-slate-700,
html[data-theme="dark"] .text-gray-700,
html[data-theme="dark"] .text-neutral-700 {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] .text-slate-600,
html[data-theme="dark"] .text-gray-600,
html[data-theme="dark"] .text-neutral-600 {
    color: #b6c3d4 !important;
}

html[data-theme="dark"] .text-slate-500,
html[data-theme="dark"] .text-gray-500,
html[data-theme="dark"] .text-neutral-500,
html[data-theme="dark"] .text-slate-400,
html[data-theme="dark"] .text-gray-400 {
    color: var(--anv-dark-muted) !important;
}

/* Border */
html[data-theme="dark"] .border-slate-50,
html[data-theme="dark"] .border-slate-100,
html[data-theme="dark"] .border-slate-200,
html[data-theme="dark"] .border-slate-300,
html[data-theme="dark"] .border-gray-100,
html[data-theme="dark"] .border-gray-200,
html[data-theme="dark"] .border-gray-300,
html[data-theme="dark"] .border-neutral-200 {
    border-color: var(--anv-dark-border) !important;
}

/* Divider */
html[data-theme="dark"] .divide-slate-100 > :not([hidden]) ~ :not([hidden]),
html[data-theme="dark"] .divide-slate-200 > :not([hidden]) ~ :not([hidden]),
html[data-theme="dark"] .divide-gray-100 > :not([hidden]) ~ :not([hidden]),
html[data-theme="dark"] .divide-gray-200 > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--anv-dark-border) !important;
}

/* Form */
html[data-theme="dark"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
    background-color: #111d30;
    color: #e2e8f0;
    border-color: var(--anv-dark-border);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
    color: #8292a8;
}

html[data-theme="dark"] input:focus,
html[data-theme="dark"] select:focus,
html[data-theme="dark"] textarea:focus {
    border-color: #818cf8;
}

/* Table */
html[data-theme="dark"] table {
    color: #e2e8f0;
}

html[data-theme="dark"] thead,
html[data-theme="dark"] thead tr {
    background-color: #172337;
}

html[data-theme="dark"] tbody tr:hover {
    background-color: rgba(51, 65, 85, .28);
}

/* Semantic pastel backgrounds */
html[data-theme="dark"] .bg-blue-50,
html[data-theme="dark"] .bg-indigo-50,
html[data-theme="dark"] .bg-violet-50 {
    background-color: #202b49 !important;
}

html[data-theme="dark"] .bg-emerald-50,
html[data-theme="dark"] .bg-green-50 {
    background-color: #15352f !important;
}

html[data-theme="dark"] .bg-red-50,
html[data-theme="dark"] .bg-rose-50 {
    background-color: #3b202b !important;
}

html[data-theme="dark"] .bg-amber-50,
html[data-theme="dark"] .bg-yellow-50 {
    background-color: #3a3020 !important;
}

html[data-theme="dark"] .bg-purple-50,
html[data-theme="dark"] .bg-fuchsia-50 {
    background-color: #342449 !important;
}

html[data-theme="dark"] .bg-orange-50 {
    background-color: #3b2b20 !important;
}

/* Semantic pastel borders */
html[data-theme="dark"] .border-blue-100,
html[data-theme="dark"] .border-blue-200,
html[data-theme="dark"] .border-indigo-100,
html[data-theme="dark"] .border-indigo-200 {
    border-color: #35466c !important;
}

html[data-theme="dark"] .border-green-100,
html[data-theme="dark"] .border-green-200,
html[data-theme="dark"] .border-emerald-100,
html[data-theme="dark"] .border-emerald-200 {
    border-color: #285448 !important;
}

html[data-theme="dark"] .border-red-100,
html[data-theme="dark"] .border-red-200,
html[data-theme="dark"] .border-rose-100,
html[data-theme="dark"] .border-rose-200 {
    border-color: #653544 !important;
}

html[data-theme="dark"] .border-amber-100,
html[data-theme="dark"] .border-amber-200,
html[data-theme="dark"] .border-yellow-100,
html[data-theme="dark"] .border-yellow-200 {
    border-color: #66502d !important;
}

/* Dropdown, modal dan popover */
html[data-theme="dark"] [role="dialog"],
html[data-theme="dark"] [role="menu"],
html[data-theme="dark"] .dropdown-menu,
html[data-theme="dark"] .modal-content {
    background-color: var(--anv-dark-surface);
    color: var(--anv-dark-text);
    border-color: var(--anv-dark-border);
}

/* Scrollbar */
html[data-theme="dark"] * {
    scrollbar-color: #475569 #111d30;
}

/* Finance shell */
html[data-theme="dark"] #financeSidebar {
    background-color: #111d30 !important;
    border-color: var(--anv-dark-border) !important;
}

html[data-theme="dark"] #financeMain {
    background-color: var(--anv-dark-bg);
}

html[data-theme="dark"] #financeSidebarHeader,
html[data-theme="dark"] #financeSidebarFooter {
    border-color: var(--anv-dark-border) !important;
}

/* Freelancer shell */
html[data-theme="dark"] body:has(.freelancer-theme-scope) {
    background-color: var(--anv-dark-bg) !important;
}

html[data-theme="dark"] .freelancer-theme-scope {
    color: var(--anv-dark-text);
}

/* Smooth transition */
html[data-theme="dark"] body,
html[data-theme="dark"] header,
html[data-theme="dark"] main,
html[data-theme="dark"] aside {
    transition:
        background-color .2s ease,
        color .2s ease,
        border-color .2s ease;
}

/* =========================================================
   ANV ADMIN - DARK MODE REFINEMENT
   Sidebar Floating Menu & Topbar Dropdown
========================================================= */

/* FLOATING SIDEBAR MENU */
html[data-theme="dark"] #sidebar-floating-menu,
html[data-theme="dark"] .sidebar-floating-menu {
    background: rgba(19, 31, 50, .98) !important;
    border-color: #35465e !important;
    color: #e2e8f0 !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .42) !important;
}

html[data-theme="dark"] .floating-menu-header-icon {
    background: #29345a !important;
    color: #a5b4fc !important;
}

html[data-theme="dark"] .floating-menu-header-title {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .floating-menu-item {
    color: #b6c3d4 !important;
}

html[data-theme="dark"] .floating-menu-item:hover {
    background: #29345a !important;
    color: #c7d2fe !important;
}

html[data-theme="dark"] .floating-menu-item-icon {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .floating-menu-item:hover .floating-menu-item-icon {
    background: #35466c !important;
    color: #c7d2fe !important;
}

html[data-theme="dark"] .floating-menu-item.active {
    background: linear-gradient(135deg, #29345a, #342b55) !important;
    color: #c7d2fe !important;
}

html[data-theme="dark"] .floating-menu-item.active .floating-menu-item-icon {
    background: #4f46e5 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] .floating-menu-item.active::after {
    background: #a5b4fc !important;
}

/* SIDEBAR SECTION ICONS */
html[data-theme="dark"] #admin-sidebar .section-color-0 {
    background: #29345a !important;
    color: #a5b4fc !important;
}

html[data-theme="dark"] #admin-sidebar .section-color-1 {
    background: #173747 !important;
    color: #67e8f9 !important;
}

html[data-theme="dark"] #admin-sidebar .section-color-2 {
    background: #3b2b20 !important;
    color: #fdba74 !important;
}

html[data-theme="dark"] #admin-sidebar .section-color-3 {
    background: #3b2437 !important;
    color: #f9a8d4 !important;
}

html[data-theme="dark"] #admin-sidebar .section-color-4 {
    background: #342449 !important;
    color: #c4b5fd !important;
}

html[data-theme="dark"] #admin-sidebar .section-color-5 {
    background: #15352f !important;
    color: #6ee7b7 !important;
}

html[data-theme="dark"] #admin-sidebar .section-color-6 {
    background: #1e3150 !important;
    color: #93c5fd !important;
}

html[data-theme="dark"] #admin-sidebar .section-color-7 {
    background: #3a3020 !important;
    color: #fcd34d !important;
}

/* TOPBAR THEME AND NOTIFICATION BUTTONS */
html[data-theme="dark"] #admin-topbar #admin-theme-toggle,
html[data-theme="dark"] #admin-topbar #notification-button {
    background: #172337 !important;
    border-color: #35465e !important;
    color: #cbd5e1 !important;
    box-shadow: none !important;
}

html[data-theme="dark"] #admin-topbar #admin-theme-toggle:hover,
html[data-theme="dark"] #admin-topbar #notification-button:hover {
    background: #29345a !important;
    border-color: #536783 !important;
    color: #c7d2fe !important;
}

html[data-theme="dark"] #admin-topbar .ring-white {
    --tw-ring-color: #172337 !important;
}

/* TOPBAR DROPDOWNS */
html[data-theme="dark"] #notification-menu,
html[data-theme="dark"] #topbar-user-menu {
    background: #131f32 !important;
    border-color: #35465e !important;
    color: #e2e8f0 !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .42) !important;
}

html[data-theme="dark"] #notification-menu .text-slate-900,
html[data-theme="dark"] #notification-menu .text-slate-800,
html[data-theme="dark"] #topbar-user-menu .text-slate-800 {
    color: #e2e8f0 !important;
}

html[data-theme="dark"] #notification-menu .text-slate-400,
html[data-theme="dark"] #topbar-user-menu .text-slate-400 {
    color: #94a3b8 !important;
}

html[data-theme="dark"] #notification-menu .border-slate-100,
html[data-theme="dark"] #topbar-user-menu .border-slate-100 {
    border-color: #2b3b52 !important;
}

html[data-theme="dark"] #notification-menu .hover\:bg-rose-50:hover,
html[data-theme="dark"] #topbar-user-menu .hover\:bg-rose-50:hover {
    background: #3b202b !important;
}

html[data-theme="dark"] #notification-menu .hover\:bg-amber-50:hover {
    background: #3a3020 !important;
}

html[data-theme="dark"] #notification-menu .hover\:bg-indigo-50:hover,
html[data-theme="dark"] #topbar-user-menu .hover\:bg-indigo-50:hover {
    background: #29345a !important;
}

html[data-theme="dark"] #notification-menu .bg-rose-50,
html[data-theme="dark"] #topbar-user-menu .bg-rose-50 {
    background: #3b202b !important;
}

html[data-theme="dark"] #notification-menu .bg-amber-50 {
    background: #3a3020 !important;
}

html[data-theme="dark"] #notification-menu .bg-indigo-50 {
    background: #29345a !important;
}

html[data-theme="dark"] #notification-menu .group-hover\:bg-white:hover {
    background: #26364d !important;
}

/* TOPBAR USER CARD */
html[data-theme="dark"] #topbar-user-menu .bg-gradient-to-br.from-indigo-50 {
    background: linear-gradient(135deg, #29345a, #1c2940, #342b55) !important;
}

html[data-theme="dark"] #topbar-user-menu form button:hover {
    background: #3b202b !important;
}

/* TOPBAR SEARCH / COMMAND PALETTE */
html[data-theme="dark"] #admin-topbar kbd {
    background: #172337 !important;
    border-color: #35465e !important;
    color: #aebdd0 !important;
}

html[data-theme="dark"] #admin-topbar .bg-slate-950\/40 {
    background: rgba(2, 6, 23, .78) !important;
}

/* TOPBAR DIVIDER */
html[data-theme="dark"] #admin-topbar .bg-slate-200 {
    background-color: #35465e !important;
}


/* =========================================================
   ANV ADMIN - COMPREHENSIVE DARK MODE REFINEMENT
   Scope: seluruh konten halaman Admin
========================================================= */

html[data-theme="dark"] body .admin-content main {
    background-color: #0b1220 !important;
    color: #e2e8f0 !important;
}

/* ---------------------------------------------------------
   1. MAIN SURFACES, CARDS, PANELS
--------------------------------------------------------- */

html[data-theme="dark"] body .admin-content main .bg-white,
html[data-theme="dark"] body .admin-content main .bg-white\/80,
html[data-theme="dark"] body .admin-content main .bg-white\/90,
html[data-theme="dark"] body .admin-content main .bg-white\/95 {
    background-color: #131f32 !important;
}

html[data-theme="dark"] body .admin-content main .bg-slate-50,
html[data-theme="dark"] body .admin-content main .bg-gray-50 {
    background-color: #172337 !important;
}

html[data-theme="dark"] body .admin-content main .bg-slate-100,
html[data-theme="dark"] body .admin-content main .bg-gray-100 {
    background-color: #1b2a40 !important;
}

html[data-theme="dark"] body .admin-content main .bg-slate-200,
html[data-theme="dark"] body .admin-content main .bg-gray-200 {
    background-color: #26364d !important;
}

html[data-theme="dark"] body .admin-content main .bg-slate-300,
html[data-theme="dark"] body .admin-content main .bg-gray-300 {
    background-color: #35465e !important;
}

/* ---------------------------------------------------------
   2. SEMANTIC PALE BACKGROUNDS
   Warna status tetap dibedakan, tetapi tidak menyilaukan.
--------------------------------------------------------- */

/* BLUE */
html[data-theme="dark"] body .admin-content main .bg-blue-50,
html[data-theme="dark"] body .admin-content main .bg-blue-50\/60,
html[data-theme="dark"] body .admin-content main .bg-blue-100 {
    background-color: #172e49 !important;
}

/* INDIGO */
html[data-theme="dark"] body .admin-content main .bg-indigo-50,
html[data-theme="dark"] body .admin-content main .bg-indigo-100 {
    background-color: #29345a !important;
}

/* VIOLET / PURPLE */
html[data-theme="dark"] body .admin-content main .bg-violet-50,
html[data-theme="dark"] body .admin-content main .bg-violet-100,
html[data-theme="dark"] body .admin-content main .bg-purple-50,
html[data-theme="dark"] body .admin-content main .bg-purple-100 {
    background-color: #342449 !important;
}

/* CYAN / TEAL */
html[data-theme="dark"] body .admin-content main .bg-cyan-50,
html[data-theme="dark"] body .admin-content main .bg-cyan-100,
html[data-theme="dark"] body .admin-content main .bg-teal-50,
html[data-theme="dark"] body .admin-content main .bg-teal-100 {
    background-color: #173747 !important;
}

/* EMERALD / GREEN */
html[data-theme="dark"] body .admin-content main .bg-emerald-50,
html[data-theme="dark"] body .admin-content main .bg-emerald-100,
html[data-theme="dark"] body .admin-content main .bg-green-50,
html[data-theme="dark"] body .admin-content main .bg-green-100 {
    background-color: #15352f !important;
}

/* LIME */
html[data-theme="dark"] body .admin-content main .bg-lime-50,
html[data-theme="dark"] body .admin-content main .bg-lime-100 {
    background-color: #29351e !important;
}

/* AMBER / YELLOW */
html[data-theme="dark"] body .admin-content main .bg-amber-50,
html[data-theme="dark"] body .admin-content main .bg-amber-100,
html[data-theme="dark"] body .admin-content main .bg-yellow-50,
html[data-theme="dark"] body .admin-content main .bg-yellow-100 {
    background-color: #3a3020 !important;
}

/* ORANGE */
html[data-theme="dark"] body .admin-content main .bg-orange-50,
html[data-theme="dark"] body .admin-content main .bg-orange-100 {
    background-color: #3b2b20 !important;
}

/* RED */
html[data-theme="dark"] body .admin-content main .bg-red-50,
html[data-theme="dark"] body .admin-content main .bg-red-100 {
    background-color: #3b2028 !important;
}

/* ROSE */
html[data-theme="dark"] body .admin-content main .bg-rose-50,
html[data-theme="dark"] body .admin-content main .bg-rose-100 {
    background-color: #3b202b !important;
}

/* PINK / FUCHSIA */
html[data-theme="dark"] body .admin-content main .bg-pink-50,
html[data-theme="dark"] body .admin-content main .bg-pink-100,
html[data-theme="dark"] body .admin-content main .bg-fuchsia-50,
html[data-theme="dark"] body .admin-content main .bg-fuchsia-100 {
    background-color: #3b2437 !important;
}

/* ---------------------------------------------------------
   3. TEXT COLORS
--------------------------------------------------------- */

html[data-theme="dark"] body .admin-content main .text-slate-950,
html[data-theme="dark"] body .admin-content main .text-slate-900,
html[data-theme="dark"] body .admin-content main .text-slate-800,
html[data-theme="dark"] body .admin-content main .text-gray-900,
html[data-theme="dark"] body .admin-content main .text-gray-800 {
    color: #f1f5f9 !important;
}

html[data-theme="dark"] body .admin-content main .text-slate-700,
html[data-theme="dark"] body .admin-content main .text-slate-600,
html[data-theme="dark"] body .admin-content main .text-gray-700,
html[data-theme="dark"] body .admin-content main .text-gray-600 {
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body .admin-content main .text-slate-500,
html[data-theme="dark"] body .admin-content main .text-slate-400,
html[data-theme="dark"] body .admin-content main .text-gray-500,
html[data-theme="dark"] body .admin-content main .text-gray-400 {
    color: #94a3b8 !important;
}

/* Semantic text colors */
html[data-theme="dark"] body .admin-content main .text-blue-700,
html[data-theme="dark"] body .admin-content main .text-blue-800,
html[data-theme="dark"] body .admin-content main .text-blue-600 {
    color: #93c5fd !important;
}

html[data-theme="dark"] body .admin-content main .text-indigo-700,
html[data-theme="dark"] body .admin-content main .text-indigo-800,
html[data-theme="dark"] body .admin-content main .text-indigo-600 {
    color: #a5b4fc !important;
}

html[data-theme="dark"] body .admin-content main .text-violet-700,
html[data-theme="dark"] body .admin-content main .text-violet-800,
html[data-theme="dark"] body .admin-content main .text-violet-600,
html[data-theme="dark"] body .admin-content main .text-purple-700,
html[data-theme="dark"] body .admin-content main .text-purple-800 {
    color: #c4b5fd !important;
}

html[data-theme="dark"] body .admin-content main .text-cyan-700,
html[data-theme="dark"] body .admin-content main .text-cyan-800,
html[data-theme="dark"] body .admin-content main .text-teal-700,
html[data-theme="dark"] body .admin-content main .text-teal-800 {
    color: #67e8f9 !important;
}

html[data-theme="dark"] body .admin-content main .text-emerald-700,
html[data-theme="dark"] body .admin-content main .text-emerald-800,
html[data-theme="dark"] body .admin-content main .text-green-700,
html[data-theme="dark"] body .admin-content main .text-green-800 {
    color: #6ee7b7 !important;
}

html[data-theme="dark"] body .admin-content main .text-amber-700,
html[data-theme="dark"] body .admin-content main .text-amber-800,
html[data-theme="dark"] body .admin-content main .text-yellow-700,
html[data-theme="dark"] body .admin-content main .text-yellow-800 {
    color: #fcd34d !important;
}

html[data-theme="dark"] body .admin-content main .text-orange-700,
html[data-theme="dark"] body .admin-content main .text-orange-800 {
    color: #fdba74 !important;
}

html[data-theme="dark"] body .admin-content main .text-red-700,
html[data-theme="dark"] body .admin-content main .text-red-800,
html[data-theme="dark"] body .admin-content main .text-rose-700,
html[data-theme="dark"] body .admin-content main .text-rose-800 {
    color: #fda4af !important;
}

html[data-theme="dark"] body .admin-content main .text-pink-700,
html[data-theme="dark"] body .admin-content main .text-pink-800,
html[data-theme="dark"] body .admin-content main .text-fuchsia-700,
html[data-theme="dark"] body .admin-content main .text-fuchsia-800 {
    color: #f9a8d4 !important;
}

/* ---------------------------------------------------------
   4. BORDERS AND DIVIDERS
--------------------------------------------------------- */

html[data-theme="dark"] body .admin-content main .border-slate-50,
html[data-theme="dark"] body .admin-content main .border-slate-100,
html[data-theme="dark"] body .admin-content main .border-slate-200,
html[data-theme="dark"] body .admin-content main .border-slate-300,
html[data-theme="dark"] body .admin-content main .border-gray-100,
html[data-theme="dark"] body .admin-content main .border-gray-200,
html[data-theme="dark"] body .admin-content main .border-gray-300 {
    border-color: #2b3b52 !important;
}

html[data-theme="dark"] body .admin-content main .border-blue-100,
html[data-theme="dark"] body .admin-content main .border-blue-200 {
    border-color: #294967 !important;
}

html[data-theme="dark"] body .admin-content main .border-emerald-100,
html[data-theme="dark"] body .admin-content main .border-emerald-200,
html[data-theme="dark"] body .admin-content main .border-green-100,
html[data-theme="dark"] body .admin-content main .border-green-200 {
    border-color: #285447 !important;
}

html[data-theme="dark"] body .admin-content main .border-amber-100,
html[data-theme="dark"] body .admin-content main .border-amber-200,
html[data-theme="dark"] body .admin-content main .border-yellow-100,
html[data-theme="dark"] body .admin-content main .border-yellow-200 {
    border-color: #5b4928 !important;
}

html[data-theme="dark"] body .admin-content main .border-red-100,
html[data-theme="dark"] body .admin-content main .border-red-200,
html[data-theme="dark"] body .admin-content main .border-rose-100,
html[data-theme="dark"] body .admin-content main .border-rose-200 {
    border-color: #60313d !important;
}

html[data-theme="dark"] body .admin-content main hr,
html[data-theme="dark"] body .admin-content main [class*="divide-y"] > *,
html[data-theme="dark"] body .admin-content main [class*="divide-x"] > * {
    border-color: #2b3b52 !important;
}

/* ---------------------------------------------------------
   5. TABLES
--------------------------------------------------------- */

html[data-theme="dark"] body .admin-content main table {
    color: #dbe4f0 !important;
    border-color: #2b3b52 !important;
}

html[data-theme="dark"] body .admin-content main thead,
html[data-theme="dark"] body .admin-content main thead tr,
html[data-theme="dark"] body .admin-content main thead th {
    background-color: #1b2a40 !important;
    color: #cbd5e1 !important;
    border-color: #35465e !important;
}

html[data-theme="dark"] body .admin-content main tbody,
html[data-theme="dark"] body .admin-content main tbody.bg-white {
    background-color: #131f32 !important;
}

html[data-theme="dark"] body .admin-content main tbody tr {
    background-color: transparent;
    border-color: #26364d !important;
}

html[data-theme="dark"] body .admin-content main tbody tr:hover {
    background-color: #1b2a40 !important;
}

html[data-theme="dark"] body .admin-content main td,
html[data-theme="dark"] body .admin-content main th {
    border-color: #2b3b52 !important;
}

/* ---------------------------------------------------------
   6. FORMS
--------------------------------------------------------- */

html[data-theme="dark"] body .admin-content main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
html[data-theme="dark"] body .admin-content main select,
html[data-theme="dark"] body .admin-content main textarea {
    background-color: #111c2e !important;
    color: #e2e8f0 !important;
    border-color: #35465e !important;
}

html[data-theme="dark"] body .admin-content main input::placeholder,
html[data-theme="dark"] body .admin-content main textarea::placeholder {
    color: #718198 !important;
}

html[data-theme="dark"] body .admin-content main input:focus,
html[data-theme="dark"] body .admin-content main select:focus,
html[data-theme="dark"] body .admin-content main textarea:focus {
    border-color: #818cf8 !important;
    --tw-ring-color: rgba(129, 140, 248, .25) !important;
}

html[data-theme="dark"] body .admin-content main input:disabled,
html[data-theme="dark"] body .admin-content main select:disabled,
html[data-theme="dark"] body .admin-content main textarea:disabled {
    background-color: #1b2a40 !important;
    color: #94a3b8 !important;
    opacity: .8;
}

html[data-theme="dark"] body .admin-content main input[type="checkbox"],
html[data-theme="dark"] body .admin-content main input[type="radio"] {
    accent-color: #818cf8;
}

html[data-theme="dark"] body .admin-content main select option {
    background-color: #131f32 !important;
    color: #e2e8f0 !important;
}

html[data-theme="dark"] body .admin-content main input::file-selector-button {
    background-color: #26364d !important;
    color: #e2e8f0 !important;
    border-color: #35465e !important;
}

/* ---------------------------------------------------------
   7. NEUTRAL BUTTONS
   Tombol berwarna seperti Simpan, Tambah, Edit, Hapus
   tidak ditimpa oleh aturan ini.
--------------------------------------------------------- */

html[data-theme="dark"] body .admin-content main button.bg-white,
html[data-theme="dark"] body .admin-content main a.bg-white,
html[data-theme="dark"] body .admin-content main button.bg-slate-50,
html[data-theme="dark"] body .admin-content main a.bg-slate-50,
html[data-theme="dark"] body .admin-content main button.bg-slate-100,
html[data-theme="dark"] body .admin-content main a.bg-slate-100,
html[data-theme="dark"] body .admin-content main button.bg-gray-50,
html[data-theme="dark"] body .admin-content main a.bg-gray-50 {
    background-color: #1b2a40 !important;
    border-color: #35465e !important;
    color: #dbe4f0 !important;
}

html[data-theme="dark"] body .admin-content main button.bg-white:hover,
html[data-theme="dark"] body .admin-content main a.bg-white:hover,
html[data-theme="dark"] body .admin-content main button.bg-slate-50:hover,
html[data-theme="dark"] body .admin-content main a.bg-slate-50:hover,
html[data-theme="dark"] body .admin-content main button.bg-slate-100:hover,
html[data-theme="dark"] body .admin-content main a.bg-slate-100:hover,
html[data-theme="dark"] body .admin-content main button.bg-gray-50:hover,
html[data-theme="dark"] body .admin-content main a.bg-gray-50:hover {
    background-color: #293b55 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body .admin-content main .hover\:bg-white:hover,
html[data-theme="dark"] body .admin-content main .hover\:bg-slate-50:hover,
html[data-theme="dark"] body .admin-content main .hover\:bg-slate-100:hover,
html[data-theme="dark"] body .admin-content main .hover\:bg-gray-50:hover,
html[data-theme="dark"] body .admin-content main .hover\:bg-gray-100:hover {
    background-color: #26364d !important;
}

/* ---------------------------------------------------------
   8. LARAVEL PAGINATION
--------------------------------------------------------- */

html[data-theme="dark"] body .admin-content main nav[role="navigation"] a,
html[data-theme="dark"] body .admin-content main nav[role="navigation"] span[aria-current="page"] span,
html[data-theme="dark"] body .admin-content main nav[role="navigation"] span:not([aria-current]) {
    border-color: #35465e !important;
}

html[data-theme="dark"] body .admin-content main nav[role="navigation"] a {
    background-color: #172337 !important;
    color: #cbd5e1 !important;
}

html[data-theme="dark"] body .admin-content main nav[role="navigation"] a:hover {
    background-color: #293b55 !important;
    color: #ffffff !important;
}

html[data-theme="dark"] body .admin-content main nav[role="navigation"] span[aria-current="page"] span {
    background-color: #3730a3 !important;
    color: #ffffff !important;
}

/* ---------------------------------------------------------
   9. DROPDOWNS / MENUS INSIDE ADMIN CONTENT
--------------------------------------------------------- */

html[data-theme="dark"] body .admin-content main [role="menu"],
html[data-theme="dark"] body .admin-content main [role="listbox"],
html[data-theme="dark"] body .admin-content main .dropdown-menu {
    background-color: #131f32 !important;
    border-color: #35465e !important;
    color: #e2e8f0 !important;
}

/* ---------------------------------------------------------
   10. SHADOWS
--------------------------------------------------------- */

html[data-theme="dark"] body .admin-content main .shadow-sm,
html[data-theme="dark"] body .admin-content main .shadow-md,
html[data-theme="dark"] body .admin-content main .shadow-lg,
html[data-theme="dark"] body .admin-content main .shadow-xl {
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18) !important;
}

