        /* === VARIABEL TEMA === */
        :root {
            --sidebar-width: 260px;
            --sidebar-collapsed-width: 80px;
            --primary-color: #123F68;
            --accent-color: #36b9cc;
            --bg-color: #f8f9fc;
            --text-dark: #5a5c69;
            /* PERUBAHAN: Tinggi Input diset 38px (Standar Tombol Bootstrap) */
            --input-height: 38px;
            --transition-speed: 0.4s;
            --transition-curve: cubic-bezier(0.25, 0.8, 0.25, 1);
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--bg-color);
            color: var(--text-dark);
            overflow-x: hidden;
            margin: 0;
            padding: 0;
        }

        /* === DASHBOARD LAYOUT === */
        #dashboard-section {
            display: flex;
            min-height: 100vh;
            position: relative;
        }

        .sidebar {
            width: var(--sidebar-width);
            background-color: var(--primary-color);
            color: white;
            display: flex;
            flex-direction: column;
            position: fixed;
            height: 100vh;
            z-index: 1050;
            box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
            transition: none;
            overflow: hidden;
            white-space: nowrap;
        }

        .sidebar.animate-sidebar {
            transition: all var(--transition-speed) var(--transition-curve);
        }

        .sidebar-brand {
            padding: 20px;
            font-size: 1.2rem;
            font-weight: 700;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: flex-start;
            height: 80px;
            transition: inherit;
        }

        .brand-logo-bg {
            background: white;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            min-width: 40px;
            padding: 4px;
            transition: margin var(--transition-speed);
        }

        .brand-logo-bg img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .brand-text,
        .nav-link-text {
            opacity: 1;
            transition: opacity 0.2s ease-in-out;
            transition-delay: 0.1s;
        }

        .nav-link-custom {
            padding: 12px 20px;
            cursor: pointer;
            transition: 0.3s;
            color: rgba(255, 255, 255, 0.75);
            text-decoration: none;
            display: flex;
            align-items: center;
            font-weight: 500;
            font-size: 0.875rem;
        }

        .nav-link-custom:hover,
        .nav-link-custom.active {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border-left: 5px solid var(--accent-color);
        }

        .nav-icon {
            width: 24px;
            text-align: center;
            margin-right: 10px;
            font-size: 1rem;
            min-width: 24px;
            transition: margin var(--transition-speed);
        }

        .sidebar-footer {
            padding: 20px;
            margin-top: auto;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .sidebar-toggler {
            background: rgba(255, 255, 255, 0.15);
            border: none;
            color: white;
            width: 45px;
            height: 45px;
            border-radius: 50%;
            cursor: pointer;
            margin-bottom: 20px;
            transition: 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .sidebar-toggler:hover {
            background: var(--accent-color);
            transform: scale(1.1);
        }

        .main-content {
            margin-left: var(--sidebar-width);
            flex: 1;
            padding: 25px 35px;
            width: calc(100% - var(--sidebar-width));
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            transition: margin-left var(--transition-speed) var(--transition-curve), width var(--transition-speed) var(--transition-curve);
        }

        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 35px;
            background: white;
            padding: 10px 30px;
            border-radius: 12px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        }

        #mobile-toggle {
            font-size: 1.5rem;
            color: var(--primary-color);
            cursor: pointer;
            margin-right: 15px;
            display: none;
        }

        .user-dropdown-toggle {
            cursor: pointer;
            padding: 5px 10px;
            border-radius: 10px;
            transition: background 0.3s;
        }

        .user-dropdown-toggle:hover {
            background-color: #f1f3f9;
        }

        /* RESPONSIVE & COLLAPSE */
        @media (max-width: 992px) {
            .sidebar {
                transform: translateX(-100%);
            }

            .main-content {
                margin-left: 0;
                width: 100%;
                padding: 20px 15px;
            }

            #mobile-toggle {
                display: block;
            }

            .sidebar-toggler {
                display: none;
            }

            body.show-sidebar .sidebar {
                transform: translateX(0);
            }

            body.show-sidebar::after {
                content: '';
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.5);
                z-index: 1040;
            }
        }

        @media (max-width: 768px) {
            .top-bar {
                padding: 15px 20px !important;
            }

            #page-title {
                font-size: 0.95rem;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
                max-width: 150px;
            }

            #current-date {
                display: block !important;
                font-size: 0.75rem;
                margin-top: 5px;
            }

            #mobile-toggle {
                margin-right: 12px !important;
            }
        }

        @media (min-width: 993px) {
            body.sb-collapsed .sidebar {
                width: var(--sidebar-collapsed-width);
            }

            body.sb-collapsed .main-content {
                margin-left: var(--sidebar-collapsed-width);
                width: calc(100% - var(--sidebar-collapsed-width));
            }

            body.sb-collapsed .brand-text,
            body.sb-collapsed .nav-link-text {
                opacity: 0;
                visibility: hidden;
                width: 0;
            }

            body.sb-collapsed .brand-logo-bg {
                margin: 0;
            }

            body.sb-collapsed .nav-link-custom {
                justify-content: center;
                padding: 12px 0;
            }

            body.sb-collapsed .nav-icon {
                margin: 0;
                font-size: 1rem;
            }

            body.sb-collapsed .sidebar-brand {
                justify-content: center;
                padding: 0;
            }
        }

        .hidden {
            display: none !important;
        }

        /* Tambahkan CSS ini agar transisi tidak kasar */
        #superuser-menu {
            transition: opacity 0.3s ease;
        }

        /* === STATISTIK STYLES === */
        .nav-tabs {
            border-bottom: 2px solid #e3e6f0;
            margin-bottom: 20px;
        }

        .nav-tabs .nav-link {
            color: #858796;
            font-weight: 600;
            border: none;
            padding: 12px 20px;
        }

        .nav-tabs .nav-link.active {
            color: var(--primary-color);
            border-bottom: 3px solid var(--primary-color);
            background: transparent;
        }

        .stat-card {
            background: white;
            color: var(--text-dark);
            border-radius: 12px;
            padding: 25px;
            margin-bottom: 20px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
            border: 0;
        }

        .filter-label {
            font-size: 0.75rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 8px;
            display: block;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        /* FIX HEIGHT: Semua input dan tombol dipaksa 38px KECUALI input date */
        .form-select,
        .form-control:not([type="date"]),
        .btn-action,
        .multiselect-trigger {
            height: var(--input-height) !important;
            min-height: var(--input-height) !important;
            max-height: var(--input-height) !important;
            border-radius: 6px;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            line-height: 1.5;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
        }

        /* FIX: Khusus untuk input date - TIDAK pakai display flex */
        input[type="date"] {
            height: var(--input-height) !important;
            min-height: var(--input-height) !important;
            border-radius: 6px;
            font-size: 0.85rem;
            line-height: 1.5;
            padding: 0 12px !important;
            display: block !important;
        }

        .form-select,
        .form-control {
            border: 1px solid #d1d3e2;
            padding-left: 12px;
            padding-right: 12px;
        }

        .form-select:focus,
        .form-control:focus {
            border-color: var(--accent-color);
            box-shadow: 0 0 0 0.2rem rgba(54, 185, 204, 0.25);
        }

        /* FIX: Icon kalender di pojok kanan */
        input[type="date"]::-webkit-calendar-picker-indicator {
            cursor: pointer;
        }

        /* FIX: Button Action agar konsisten dengan input */
        .btn-action {
            padding-left: 1rem !important;
            padding-right: 1rem !important;
            white-space: nowrap;
        }

        /* FIX: Memastikan semua col di filter row sejajar */
        .stat-card .row.g-3>[class*="col"],
        .stat-card .row.g-4>[class*="col"] {
            display: flex;
            flex-direction: column;
        }

        /* FIX: Row dengan align-items-end untuk mensejajarkan semua elemen ke bawah */
        .stat-card .row.align-items-end>[class*="col"] {
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }

        /* FIX: Tambahan margin untuk mencegah wrap di sidebar maximize */
        .stat-card .row.g-4 {
            margin-right: -1rem;
            margin-left: -1rem;
        }

        .stat-card .row.g-4>[class*="col"] {
            padding-right: 1rem;
            padding-left: 1rem;
        }

        /* FIX: Label filter konsisten */
        .form-label.small.fw-bold {
            margin-bottom: 8px;
            color: var(--text-dark);
        }

        .custom-multiselect {
            position: relative;
        }

        .multiselect-trigger {
            position: relative;
            padding-right: 30px;
            padding-left: 12px;
            cursor: pointer;
            width: 100%;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            user-select: none;
            background-color: white;
            border: 1px solid #d1d3e2;
        }

        .multiselect-trigger::after {
            content: '\f078';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 0.7rem;
            color: #858796;
        }

        .multiselect-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            width: 100%;
            max-height: 250px;
            overflow-y: auto;
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            z-index: 1000;
            display: none;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            margin-top: 5px;
        }

        .multiselect-dropdown.show {
            display: block;
        }

        .multiselect-option {
            padding: 8px 12px;
            border-bottom: 1px solid #f8f9fc;
            cursor: pointer;
            color: #5a5c69;
            display: flex;
            align-items: center;
            font-size: 0.85rem;
        }

        .multiselect-option:hover {
            background-color: #f8f9fc;
            color: var(--primary-color);
        }

        .multiselect-option input {
            margin-right: 10px;
            accent-color: var(--primary-color);
            transform: scale(1.1);
        }

        .chart-container {
            min-height: 400px;
        }

        .complex-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 0.85rem;
        }

        .complex-table th,
        .complex-table td {
            border: 1px solid #e3e6f0;
            padding: 12px 15px;
            color: var(--text-dark);
        }

        .complex-table thead th {
            background-color: #f8f9fc;
            color: var(--primary-color);
            text-align: center;
            vertical-align: middle;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.5px;
            font-size: 0.75rem;
            border-bottom: 2px solid #e3e6f0;
        }

        .complex-table tbody tr {
            background-color: white;
        }

        .complex-table tbody tr:hover {
            background-color: #fafbfc;
        }

        .val-block {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }

        .val-row {
            display: flex;
            justify-content: space-between;
            font-size: 0.75rem;
            border-bottom: 1px dashed #e3e6f0;
            padding-bottom: 4px;
            white-space: nowrap;
            align-items: center;
        }

        .val-row:last-child {
            border-bottom: none;
        }

        .val-label {
            color: #858796;
            margin-right: 15px;
            font-weight: 500;
        }

        .val-data {
            font-weight: 700;
            font-family: 'Consolas', monospace;
            color: var(--text-dark);
        }

        /* === PERFORMA SAMPLING STYLES === */
        #perfStatsContainer .card {
            transition: transform 0.2s;
        }

        #perfStatsContainer .card:hover {
            transform: translateY(-2px);
        }

        #perfTableContainer .table th {
            font-size: 0.8rem;
            letter-spacing: 0.5px;
            padding: 15px;
        }

        #perfTableContainer .table td {
            padding: 12px 15px;
            vertical-align: middle;
        }

        #perfTableContainer .badge {
            font-size: 0.85rem;
            font-weight: 600;
            letter-spacing: 0.3px;
        }

        #perfTableBody tr {
            transition: background-color 0.5s ease;
        }

        .table-danger-custom {
            background-color: #fff5f5 !important;
        }
