
    /* ============================================================
     CSS.html — Design System & Styles
     Sistem Informasi Kelulusan
     ============================================================ */

    @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

    :root {
        --primary: #1a5276;
        --primary-light: #2980b9;
        --primary-dark: #0e3a57;
        --secondary: #2ecc71;
        --accent: #e74c3c;
        --warning: #f39c12;
        --info: #3498db;
        --dark: #1a1d23;
        --dark-2: #22262e;
        --dark-3: #2a2f38;
        --dark-4: #343a44;
        --text-primary: #e8eaed;
        --text-secondary: #9ca3af;
        --text-muted: #6b7280;
        --border-color: #374151;
        --card-bg: #22262e;
        --sidebar-width: 260px;
        --sidebar-collapsed-width: 70px;
        --sidebar-bg: linear-gradient(180deg, #0f1923 0%, #1a2332 50%, #1e2d3d 100%);
        --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
        --radius: 12px;
        --radius-sm: 8px;
        --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

        /* Override Bootstrap 5.3 color variables for dark theme */
        --bs-body-color: #e8eaed;
        --bs-body-bg: #1a1d23;
        --bs-secondary-color: #9ca3af;
        --bs-tertiary-color: #6b7280;
        --bs-emphasis-color: #e8eaed;
        --bs-border-color: #374151;
        --bs-heading-color: #e8eaed;
        --bs-link-color: #2980b9;
        --bs-link-hover-color: #3498db;
        --bs-form-check-color: #e8eaed;
    }

    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        background: var(--dark);
        color: var(--text-primary);
        overflow-x: hidden;
        min-height: 100vh;
    }

    /* ==================== SCROLLBAR ==================== */
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }

    ::-webkit-scrollbar-track {
        background: var(--dark-2);
    }

    ::-webkit-scrollbar-thumb {
        background: var(--dark-4);
        border-radius: 3px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--text-muted);
    }

    /* ==================== LAYOUT ==================== */
    .app-wrapper {
        display: flex;
        min-height: 100vh;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .sidebar {
        width: var(--sidebar-width);
        background: var(--sidebar-bg);
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    /* Collapsed sidebar (desktop) */
    .sidebar.collapsed {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar.collapsed .sidebar-brand-text,
    .sidebar.collapsed .nav-section-title,
    .sidebar.collapsed .nav-link span {
        display: none;
    }

    .sidebar.collapsed .sidebar-brand {
        padding: 16px 0;
        justify-content: center;
        gap: 0;
    }

    .sidebar.collapsed .sidebar-brand-icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
        border-radius: 10px;
    }

    .sidebar.collapsed .nav-link {
        justify-content: center;
        padding: 12px 0;
        gap: 0;
        border-left: none !important;
    }

    .sidebar.collapsed .nav-link i {
        font-size: 19px;
        width: auto;
    }

    .sidebar.collapsed .nav-link.active {
        border-left: none;
        border-radius: 10px;
    }

    .sidebar.collapsed .sidebar-nav {
        padding: 12px 8px;
    }

    .sidebar.collapsed .nav-item {
        display: flex;
        justify-content: center;
    }

    .sidebar.collapsed .sidebar-footer {
        padding: 12px 0;
        display: flex;
        justify-content: center;
    }

    .sidebar.collapsed .sidebar-user {
        flex-direction: column;
        gap: 0;
    }

    .sidebar.collapsed .sidebar-user>div[style*="flex:1"] {
        display: none;
    }

    .sidebar.collapsed .sidebar-user-avatar {
        margin: 0;
    }

    .sidebar.collapsed .btn-logout {
        display: none;
    }

    .sidebar.collapsed .nav-link .icon-external {
        display: none;
    }

    /* When sidebar is collapsed, adjust main-content via wrapper class */
    .app-wrapper.sidebar-collapsed .main-content {
        margin-left: var(--sidebar-collapsed-width);
        width: calc(100% - var(--sidebar-collapsed-width));
        max-width: calc(100vw - var(--sidebar-collapsed-width));
    }

    .sidebar-brand {
        padding: 24px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .sidebar-brand-icon {
        width: 44px;
        height: 44px;
        background: linear-gradient(135deg, var(--primary-light) 0%, var(--secondary) 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        color: white;
        flex-shrink: 0;
        box-shadow: 0 4px 15px rgba(41, 128, 185, 0.3);
    }

    .sidebar-brand-text {
        font-size: 15px;
        font-weight: 700;
        color: #fff;
        line-height: 1.3;
    }

    .sidebar-brand-text small {
        font-size: 11px;
        font-weight: 400;
        color: var(--text-secondary);
        display: block;
        margin-top: 2px;
    }

    .sidebar-nav {
        flex: 1;
        padding: 16px 12px;
        overflow-y: auto;
    }

    .nav-section-title {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: var(--text-muted);
        padding: 12px 16px 8px;
    }

    .nav-item {
        margin-bottom: 2px;
    }

    .nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 11px 16px;
        border-radius: var(--radius-sm);
        color: var(--text-secondary);
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        transition: var(--transition);
        cursor: pointer;
        border: none;
        background: none;
        width: 100%;
        text-align: left;
    }

    .nav-link:hover {
        background: rgba(255, 255, 255, 0.06);
        color: var(--text-primary);
        transform: translateX(4px);
    }

    .nav-link.active {
        background: linear-gradient(135deg, rgba(41, 128, 185, 0.2) 0%, rgba(46, 204, 113, 0.1) 100%);
        color: #fff;
        font-weight: 600;
        border-left: 3px solid var(--primary-light);
    }

    .nav-link i {
        font-size: 18px;
        width: 24px;
        text-align: center;
        flex-shrink: 0;
    }

    .sidebar-footer {
        padding: 16px 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .sidebar-user {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 12px;
        color: var(--text-secondary);
    }

    .sidebar-user-avatar {
        width: 34px;
        height: 34px;
        background: linear-gradient(135deg, var(--primary-light), var(--info));
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: white;
        font-weight: 600;
    }

    .btn-logout {
        width: 32px;
        height: 32px;
        border: 1px solid rgba(231, 76, 60, 0.3);
        background: rgba(231, 76, 60, 0.1);
        color: #e74c3c;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        transition: all 0.2s;
        flex-shrink: 0;
    }

    .btn-logout:hover {
        background: rgba(231, 76, 60, 0.25);
        border-color: rgba(231, 76, 60, 0.5);
        transform: translateY(-1px);
    }

    /* ==================== MAIN CONTENT ==================== */
    .main-content {
        margin-left: var(--sidebar-width);
        flex: 1;
        padding: 0;
        min-height: 100vh;
        min-width: 0;
        width: calc(100% - var(--sidebar-width));
        max-width: calc(100vw - var(--sidebar-width));
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }

    .topbar {
        background: var(--dark-2);
        padding: 10px 24px;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        justify-content: space-between;
        align-items: center;
        position: sticky;
        top: 0;
        z-index: 100;
        backdrop-filter: blur(10px);
    }


    .sidebar-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
        background: transparent;
        color: var(--text-secondary);
        cursor: pointer;
        transition: var(--transition);
        font-size: 18px;
    }

    .sidebar-toggle:hover {
        background: var(--dark-3);
        color: var(--text-primary);
    }

    /* Topbar User Menu */
    .topbar-user-menu {
        position: relative;
    }

    .topbar-avatar {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px solid var(--border-color);
        background: linear-gradient(135deg, var(--primary-light), var(--info));
        color: #fff;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        transition: var(--transition);
    }

    .topbar-avatar:hover {
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.2);
    }

    .topbar-dropdown {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        min-width: 200px;
        background: var(--dark-2);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        z-index: 200;
        display: none;
        animation: dropdownFadeIn 0.2s ease;
    }

    .topbar-dropdown.show {
        display: block;
    }

    @keyframes dropdownFadeIn {
        from {
            opacity: 0;
            transform: translateY(-8px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .topbar-dropdown-header {
        padding: 14px 16px;
    }

    .topbar-dropdown-divider {
        height: 1px;
        background: var(--border-color);
    }

    .topbar-dropdown-item {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 10px 16px;
        border: none;
        background: none;
        color: var(--text-secondary);
        font-size: 13px;
        font-family: inherit;
        cursor: pointer;
        transition: var(--transition);
    }

    .topbar-dropdown-item:hover {
        background: var(--dark-3);
        color: var(--text-primary);
    }

    .topbar-dropdown-item.text-danger {
        color: #e74c3c;
    }

    .topbar-dropdown-item.text-danger:hover {
        background: rgba(231, 76, 60, 0.1);
        color: #e74c3c;
    }

    .topbar-dropdown-item i {
        font-size: 15px;
        width: 20px;
        text-align: center;
    }

    .content-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .content-header h4 {
        font-size: 22px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

    .content-header h4 i {
        color: var(--primary-light);
    }

    .breadcrumb-info {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        color: var(--text-muted);
        background: var(--dark-3);
        padding: 6px 12px;
        border-radius: 8px;
        border: 1px solid var(--border-color);
    }

    .breadcrumb-info i {
        font-size: 13px;
    }

    .content-area {
        padding: 28px 32px;
        flex: 1;
    }

    /* ==================== CARDS ==================== */
    .card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        box-shadow: var(--shadow-card);
        transition: var(--transition);
        overflow: hidden;
        max-width: 100%;
    }

    .card:hover {
        box-shadow: var(--shadow-hover);
    }

    .card-header {
        padding: 18px 24px;
        border-bottom: 1px solid var(--border-color);
        background: transparent;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .card-header h5 {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .card-body {
        padding: 24px;
    }

    /* Stat Cards */
    .stat-card {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        padding: 16px 20px;
        position: relative;
        overflow: hidden;
        transition: var(--transition);
        display: flex;
        align-items: center;
        gap: 16px;
    }

    .stat-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
    }

    .stat-card.primary::before {
        background: linear-gradient(90deg, var(--primary-light), var(--info));
    }

    .stat-card.success::before {
        background: linear-gradient(90deg, #2ecc71, #27ae60);
    }

    .stat-card.danger::before {
        background: linear-gradient(90deg, #e74c3c, #c0392b);
    }

    .stat-card.warning::before {
        background: linear-gradient(90deg, #f39c12, #e67e22);
    }

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-hover);
    }

    .stat-card .stat-icon {
        width: 56px;
        height: 56px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        flex-shrink: 0;
    }

    .stat-card.primary .stat-icon {
        background: rgba(41, 128, 185, 0.2);
        color: var(--primary-light);
    }

    .stat-card.success .stat-icon {
        background: rgba(46, 204, 113, 0.2);
        color: var(--secondary);
    }

    .stat-card.danger .stat-icon {
        background: rgba(231, 76, 60, 0.2);
        color: var(--accent);
    }

    .stat-card.warning .stat-icon {
        background: rgba(243, 156, 18, 0.2);
        color: var(--warning);
    }

    .stat-card .stat-info {
        flex: 1;
        min-width: 0;
    }

    .stat-card .stat-value {
        font-size: 28px;
        font-weight: 800;
        line-height: 1.2;
        color: var(--text-primary);
    }

    .stat-card .stat-label {
        font-size: 12px;
        color: var(--text-muted);
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    /* ==================== TABLE ==================== */
    .table-responsive {
        border-radius: var(--radius-sm);
    }

    .table-wrapper {
        border-radius: var(--radius-sm);
    }

    .table {
        color: var(--text-primary);
        margin-bottom: 0;
        font-size: 13px;
        width: 100%;
        white-space: nowrap;
    }

    .table thead th {
        background: var(--dark-3);
        color: var(--text-secondary);
        font-weight: 600;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 14px 12px;
        border-bottom: 2px solid var(--border-color);
        white-space: nowrap;
        position: sticky;
        top: 0;
    }

    .table tbody td {
        padding: 12px 16px;
        border-bottom: 1px solid var(--border-color);
        vertical-align: middle;
    }

    .table tbody tr {
        transition: var(--transition);
    }

    .table tbody tr:hover {
        background: rgba(255, 255, 255, 0.03);
    }

    .editable-cell {
        color: var(--text-secondary);
        transition: var(--transition);
        outline: none !important;
    }

    .editable-cell:hover,
    .editable-cell:focus {
        background: rgba(41, 128, 185, 0.1);
        color: var(--text-primary);
        box-shadow: inset 0 0 0 1px var(--primary);
        border-radius: 4px;
    }

    /* ==================== BADGES ==================== */
    .badge-lulus {
        background: linear-gradient(135deg, rgba(46, 204, 113, 0.2), rgba(39, 174, 96, 0.2));
        color: #2ecc71;
        border: 1px solid rgba(46, 204, 113, 0.3);
        padding: 5px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }

    .badge-tidak-lulus {
        background: linear-gradient(135deg, rgba(231, 76, 60, 0.2), rgba(192, 57, 43, 0.2));
        color: #e74c3c;
        border: 1px solid rgba(231, 76, 60, 0.3);
        padding: 5px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }

    .badge-ditangguhkan {
        background: linear-gradient(135deg, rgba(243, 156, 18, 0.2), rgba(230, 126, 34, 0.2));
        color: #f39c12;
        border: 1px solid rgba(243, 156, 18, 0.3);
        padding: 5px 14px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 600;
    }

    .badge-aktif {
        background: rgba(46, 204, 113, 0.15);
        color: #2ecc71;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
    }

    .badge-nonaktif {
        background: rgba(108, 117, 125, 0.2);
        color: #9ca3af;
        padding: 4px 12px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
    }

    /* ==================== BUTTONS ==================== */
    .btn {
        border-radius: var(--radius-sm);
        font-weight: 600;
        font-size: 13px;
        padding: 8px 18px;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border: none;
    }

    .btn:hover {
        transform: translateY(-1px);
    }

    .btn-primary {
        background: linear-gradient(135deg, var(--primary-light), var(--info));
        color: white;
        border: none;
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, var(--info), var(--primary-light));
        color: white;
    }

    .btn-success {
        background: linear-gradient(135deg, #2ecc71, #27ae60);
        color: white;
        border: none;
    }

    .btn-danger {
        background: linear-gradient(135deg, #e74c3c, #c0392b);
        color: white;
        border: none;
    }

    .btn-warning {
        background: linear-gradient(135deg, #f39c12, #e67e22);
        color: white;
        border: none;
    }

    .btn-outline-secondary {
        border: 1px solid var(--border-color);
        color: var(--text-secondary);
        background: transparent;
    }

    .btn-outline-secondary:hover {
        background: var(--dark-3);
        color: var(--text-primary);
        border-color: var(--text-muted);
    }

    .btn-sm {
        font-size: 12px;
        padding: 5px 12px;
    }

    .btn-icon {
        width: 34px;
        height: 34px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
    }

    /* ==================== FORMS ==================== */
    .form-control,
    .form-select {
        background: var(--dark-3);
        border: 1px solid var(--border-color);
        color: var(--text-primary);
        border-radius: var(--radius-sm);
        padding: 10px 14px;
        font-size: 14px;
        transition: var(--transition);
    }

    .form-control:focus,
    .form-select:focus {
        background: var(--dark-3);
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(41, 128, 185, 0.15);
        color: var(--text-primary);
    }

    .form-control::placeholder {
        color: var(--text-muted);
    }

    /* File input button styling */
    .form-control::file-selector-button {
        background-color: rgba(255, 255, 255, 0.05);
        /* Same as other buttons but subtle */
        color: var(--text-primary);
        border: none;
        border-right: 1px solid var(--border-color);
        padding: 10px 14px;
        margin: -10px 14px -10px -14px;
        border-radius: var(--radius-sm) 0 0 var(--radius-sm);
        cursor: pointer;
        transition: var(--transition);
    }

    .form-control:hover:not(:disabled):not([readonly])::file-selector-button,
    .form-control::file-selector-button:hover {
        background-color: rgba(255, 255, 255, 0.1) !important;
        color: #ffffff !important;
    }

    .form-label {
        font-size: 13px;
        font-weight: 600;
        color: var(--text-secondary);
        margin-bottom: 6px;
    }

    .form-check-input {
        background-color: var(--dark-3);
        border-color: var(--border-color);
    }

    .form-check-input:checked {
        background-color: var(--primary-light);
        border-color: var(--primary-light);
    }

    .form-check-label {
        color: var(--text-primary) !important;
        font-size: 14px;
    }

    .form-select option {
        background: var(--dark-3);
        color: var(--text-primary);
    }

    /* ==================== MODAL ==================== */
    .modal-content {
        background: var(--dark-2);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
    }

    .modal-header {
        border-bottom: 1px solid var(--border-color);
        padding: 18px 24px;
    }

    .modal-title {
        font-weight: 700;
        font-size: 18px;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-footer {
        border-top: 1px solid var(--border-color);
        padding: 16px 24px;
    }

    /* ==================== TAG INPUT ==================== */
    .tag-input-field {
        border: none;
        background: transparent;
        color: white;
        outline: none;
        flex: 1;
        min-width: 120px;
    }

    .tag-input-field::placeholder {
        color: rgba(255, 255, 255, 0.5);
    }

    .tag-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 4px;
        background: var(--dark-2);
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: var(--radius-sm);
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
        z-index: 1000;
        max-height: 180px;
        overflow-y: auto;
    }

    .tag-opt-item {
        padding: 8px 14px;
        color: white;
        font-size: 13px;
        font-weight: 500;
        cursor: pointer;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: var(--transition);
    }

    .tag-opt-item:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--primary-light);
    }

    .tag-badge {
        background: rgba(52, 152, 219, 0.15);
        border: 1px solid rgba(52, 152, 219, 0.4);
        color: #fff;
        padding: 4px 10px;
        border-radius: 20px;
        font-size: 12px;
        font-weight: 500;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

    .tag-badge .btn-remove-tag {
        cursor: pointer;
        opacity: 0.6;
        transition: opacity 0.2s;
    }

    .tag-badge .btn-remove-tag:hover {
        opacity: 1;
        color: #e74c3c;
    }

    /* ==================== STUDENT PHOTO ==================== */
    .foto-thumb {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid rgba(255, 255, 255, 0.15);
        background: var(--dark-3);
    }

    .foto-thumb-placeholder {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: var(--dark-3);
        border: 2px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        font-size: 16px;
    }

    .foto-preview-box {
        width: 120px;
        height: 120px;
        border-radius: var(--radius);
        border: 2px dashed var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        cursor: pointer;
        transition: var(--transition);
        background: var(--dark-3);
        position: relative;
    }

    .foto-preview-box:hover {
        border-color: var(--primary-light);
    }

    .foto-preview-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .foto-preview-box .foto-placeholder-icon {
        font-size: 32px;
        color: var(--text-muted);
    }

    .foto-remove-btn {
        position: absolute;
        top: 4px;
        right: 4px;
        background: rgba(231, 76, 60, 0.85);
        color: #fff;
        border: none;
        border-radius: 50%;
        width: 22px;
        height: 22px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 11px;
        cursor: pointer;
        z-index: 2;
    }

    .nav-tabs {
        border-bottom: 1px solid var(--border-color);
    }

    .nav-tabs .nav-link {
        color: var(--text-secondary);
        border: none;
        padding: 12px 20px;
        font-weight: 600;
        font-size: 13px;
        border-bottom: 2px solid transparent;
        border-radius: 0;
        transition: var(--transition);
    }

    .nav-tabs .nav-link:hover {
        color: var(--text-primary);
        border-bottom-color: var(--text-muted);
        background: none;
        transform: none;
    }

    .nav-tabs .nav-link.active {
        color: var(--primary-light);
        background: none;
        border-bottom-color: var(--primary-light);
    }

    /* ==================== PAGINATION ==================== */
    .pagination .page-link {
        background: var(--dark-3);
        border-color: var(--border-color);
        color: var(--text-secondary);
        font-size: 13px;
        padding: 8px 14px;
        border-radius: 8px;
        margin: 0 2px;
        transition: var(--transition);
    }

    .pagination .page-link:hover {
        background: var(--primary-light);
        color: white;
        border-color: var(--primary-light);
    }

    .pagination .page-item.active .page-link {
        background: var(--primary-light);
        border-color: var(--primary-light);
        color: white;
    }

    .pagination .page-item.disabled .page-link {
        background: var(--dark-4);
        color: var(--text-muted);
    }

    /* ==================== TOAST ==================== */
    .toast-container {
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 9999;
    }

    .custom-toast {
        background: var(--dark-2);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        padding: 14px 20px;
        color: var(--text-primary);
        box-shadow: var(--shadow-card);
        margin-bottom: 8px;
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 320px;
        animation: slideInRight 0.3s ease-out;
        font-size: 14px;
    }

    .custom-toast.success {
        border-left: 4px solid var(--secondary);
    }

    .custom-toast.error {
        border-left: 4px solid var(--accent);
    }

    .custom-toast.warning {
        border-left: 4px solid var(--warning);
    }

    .custom-toast.info {
        border-left: 4px solid var(--info);
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    @keyframes fadeOut {
        from {
            opacity: 1;
        }

        to {
            opacity: 0;
            transform: translateX(30px);
        }
    }

    /* ==================== LOADING ==================== */
    .loading-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 9999;
    }

    .spinner-grow-sm {
        width: 0.8rem;
        height: 0.8rem;
    }

    .loading-spinner {
        width: 28px;
        height: 28px;
        border: 3px solid rgba(255, 255, 255, 0.15);
        border-left-color: var(--primary-light);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
        display: inline-block;
        vertical-align: middle;
    }

    .loading-box {
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 100px;
        /* Pill shape */
        padding: 12px 24px;
        display: flex;
        align-items: center;
        gap: 15px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* ==================== RESPONSIVE ==================== */

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    @media (max-width: 991px) {
        .sidebar {
            transform: translateX(-100%);
            width: var(--sidebar-width) !important;
        }

        .sidebar.collapsed {
            width: var(--sidebar-width) !important;
        }

        .sidebar.collapsed .sidebar-brand-text,
        .sidebar.collapsed .nav-section-title,
        .sidebar.collapsed .nav-link span {
            display: inline;
        }

        .sidebar.collapsed .sidebar-brand {
            padding: 24px 20px;
            gap: 14px;
        }

        .sidebar.collapsed .sidebar-brand-icon {
            width: 44px;
            height: 44px;
            font-size: 20px;
            border-radius: 12px;
        }

        .sidebar.collapsed .nav-link {
            justify-content: flex-start;
            padding: 11px 16px;
            gap: 12px;
        }

        .sidebar.collapsed .sidebar-footer {
            justify-content: flex-start;
            padding: 16px 20px;
        }

        .sidebar.collapsed .sidebar-user {
            flex-direction: row;
            gap: 10px;
        }

        .sidebar.collapsed .sidebar-user>div[style*="flex:1"] {
            display: block;
        }

        .sidebar.collapsed .btn-logout {
            display: flex;
        }

        .sidebar.show {
            transform: translateX(0);
        }

        .sidebar-overlay.show {
            display: block;
        }

        .main-content,
        .app-wrapper.sidebar-collapsed .main-content {
            margin-left: 0 !important;
            width: 100% !important;
            max-width: 100vw !important;
        }

        .content-area {
            padding: 20px 16px;
        }

        .topbar {
            padding: 10px 12px;
        }

        .topbar-dropdown {
            min-width: 180px;
        }

        .content-header {
            flex-direction: column;
            align-items: flex-start;
        }
    }

    @media (max-width: 768px) {
        .table thead th {
            padding: 10px 8px;
            font-size: 11px;
        }

        .table tbody td {
            padding: 10px 8px;
            font-size: 12px;
        }

        .content-area {
            padding: 16px 12px;
        }
    }

    @media (max-width: 576px) {
        .stat-card .stat-value {
            font-size: 18px;
        }

        .stat-card .stat-icon {
            width: 40px;
            height: 40px;
            font-size: 18px;
        }

        .stat-card {
            padding: 12px 14px;
            gap: 12px;
        }

        .card-body {
            padding: 16px;
        }

        .btn {
            font-size: 12px;
            padding: 6px 14px;
        }

        .table thead th {
            padding: 8px 6px;
            font-size: 10px;
            letter-spacing: 0;
        }

        .table tbody td {
            padding: 8px 6px;
            font-size: 11px;
        }
    }

    /* ==================== MISC ==================== */
    .text-gradient {
        background: linear-gradient(135deg, var(--primary-light), var(--secondary));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .empty-state {
        text-align: center;
        padding: 48px 24px;
        color: var(--text-muted);
    }

    .empty-state i {
        font-size: 48px;
        margin-bottom: 16px;
        display: block;
        opacity: 0.5;
    }

    .filter-bar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
        align-items: center;
        margin-bottom: 20px;
    }

    .filter-bar>div {
        max-width: none !important;
    }

    .filter-bar .form-control,
    .filter-bar .form-select {
        width: 100%;
        max-width: none;
        font-size: 13px;
        padding: 8px 12px;
    }

    .import-result {
        max-height: 300px;
        overflow-y: auto;
    }

    /* Tab Setting Custom */
    .setting-form .form-group {
        margin-bottom: 20px;
    }

    .preview-panel {
        background: white;
        border-radius: var(--radius);
        padding: 20px;
        color: #333;
        max-height: 600px;
        overflow-y: auto;
        font-family: 'Times New Roman', serif;
    }

    /* ==================== THEME-AWARE TEXT ==================== */
    h6,
    .h6 {
        color: var(--text-primary);
    }

    .tab-content label,
    .tab-content .form-label {
        color: var(--text-secondary);
    }

    .tab-content .form-check-label {
        color: var(--text-primary) !important;
    }

    .tab-content h6 {
        color: var(--text-secondary) !important;
    }

    .tab-content code {
        color: var(--primary-light);
    }

    .tab-content small.text-muted {
        color: var(--text-muted) !important;
    }

    .tab-pane {
        color: var(--text-primary);
    }

    /* ==================== FOOTER ==================== */
    .app-footer {
        background: var(--dark-2);
        border-top: 1px solid var(--border-color);
        padding: 16px 28px;
        margin-top: auto;
    }

    .footer-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-left {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-secondary);
    }

    .footer-center {
        font-size: 12px;
        color: var(--text-muted);
    }

    .footer-right {
        font-size: 11px;
        color: var(--text-muted);
        background: var(--dark-3);
        padding: 4px 12px;
        border-radius: 20px;
        font-weight: 600;
    }

