/* ============================================
   SISTEM PRESENSI - CUSTOM CSS
   Tema: Biru Dominan, Sedikit Oren, Putih
   ============================================ */

:root {
    --primary-color: #2196F3;      /* Biru */
    --secondary-color: #FF9800;    /* Oren */
    --accent-color: #1976D2;       /* Biru Tua */
    --success-color: #4CAF50;
    --danger-color: #F44336;
    --warning-color: #FFC107;
    --info-color: #00BCD4;
    --light-color: #F5F5F5;
    --dark-color: #212529;
    --white: #FFFFFF;
    --text-color: #333333;
    --border-color: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
}

/* ============================================
   CUSTOM SCROLLBAR - TEMA BIRU
   ============================================ */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(33, 150, 243, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-color) 0%, #1565C0 100%);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) rgba(33, 150, 243, 0.05);
}

/* ============================================
   AUTH PAGES (Login, Register, OTP, Developer Login)
   ============================================ */

/* Common Auth Page Background */
.auth-page,
.login-page,
.register-page,
.developer-login-page {
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 50%, #1976D2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    position: relative;
    overflow: hidden;
}

.auth-page::before,
.login-page::before,
.register-page::before,
.developer-login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(33, 150, 243, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Common Auth Box */
.auth-box,
.login-box,
.register-box,
.developer-login-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(33, 150, 243, 0.2);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Register box khusus - lebih lebar */
.register-box {
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Common Auth Header */
.auth-header,
.login-header,
.register-header,
.developer-login-header {
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 50%, #1976D2 100%);
    color: white;
    padding: 25px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Common Auth Logo */
.auth-logo,
.login-logo,
.register-logo,
.developer-login-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px;
    border-radius: 15px;
    background: rgba(255,255,255,0.2);
    padding: 8px;
    display: block;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* Common Auth Header Typography */
.auth-header h2,
.login-header h2,
.register-header h2,
.developer-login-header h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.auth-header p,
.login-header p,
.register-header p,
.developer-login-header p {
    font-size: 13px;
    opacity: 0.95;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Common Auth Body */
.auth-body,
.login-body,
.register-body,
.developer-login-body {
    padding: 25px 20px;
}

/* Common Input Group */
.auth-body .input-group,
.login-body .input-group,
.register-body .input-group,
.developer-login-body .input-group {
    margin-bottom: 15px;
    display: flex;
    align-items: stretch;
}

.auth-body .input-group-text,
.login-body .input-group-text,
.register-body .input-group-text,
.developer-login-body .input-group-text {
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 100%);
    color: white;
    border: 2px solid #e0e0e0;
    border-right: none;
    border-radius: 10px 0 0 10px;
    width: 50px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: border-color 0.2s ease;
    padding: 0;
    line-height: 1;
}

.auth-body .input-group .form-control,
.login-body .input-group .form-control,
.register-body .input-group .form-control,
.developer-login-body .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
    height: 50px;
    min-height: 50px;
    border: 2px solid #e0e0e0;
    padding: 12px 15px;
    line-height: 1.5;
}

.auth-body .input-group:focus-within .form-control,
.login-body .input-group:focus-within .form-control,
.register-body .input-group:focus-within .form-control,
.developer-login-body .input-group:focus-within .form-control {
    border-color: #2196F3;
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.auth-body .input-group:focus-within .input-group-text,
.login-body .input-group:focus-within .input-group-text,
.register-body .input-group:focus-within .input-group-text,
.developer-login-body .input-group:focus-within .input-group-text {
    border-color: #2196F3;
}

/* Common Auth Button */
.btn-login,
.btn-register,
.btn-developer-login {
    background: linear-gradient(135deg, #42A5F5 0%, #2196F3 50%, #1976D2 100%);
    border: none;
    height: 50px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.btn-login:hover,
.btn-register:hover,
.btn-developer-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.5);
}

/* Common Alert untuk Auth Pages */
.auth-body .alert,
.login-body .alert,
.register-body .alert,
.developer-login-body .alert {
    border-radius: 10px;
    border: none;
    padding: 12px 15px;
    margin-bottom: 18px;
}

/* Common Divider */
.divider {
    text-align: center;
    margin: 18px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: #e0e0e0;
}

.divider span {
    background: white;
    padding: 0 12px;
    position: relative;
    color: #999;
    font-size: 13px;
}

/* Login Page Specific - Form Check */
.form-check {
    margin: 15px 0;
}

.form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0.3rem;
    border: 2px solid #2196F3;
}

.form-check-input:checked {
    background-color: #2196F3;
    border-color: #2196F3;
}

.form-check-label {
    margin-left: 8px;
    color: #666;
    font-size: 14px;
}

/* Developer Login Specific - Badge */
.developer-badge {
    display: inline-block;
    background: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-top: 10px;
}

/* OTP Page Specific */
.otp-info {
    background: #E3F2FD;
    border-left: 4px solid #2196F3;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #1976D2;
}

.otp-input {
    text-align: center;
    font-size: 24px;
    letter-spacing: 10px;
    font-weight: 600;
}

/* Register Page Specific */
.form-section {
    margin-bottom: 25px;
}

.form-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2196F3;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

.help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: 260px;
    height: 100vh;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: transform 0.3s ease;
}

/* Scrollbar khusus untuk sidebar */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(33, 150, 243, 0.05);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-color) 0%, #1565C0 100%);
}

.sidebar-header {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    text-align: center;
}

.sidebar-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-logo {
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    padding: 0;
}

.sidebar-menu {
    margin-top: 10px;;
    padding: 5px 0;
}

.sidebar-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 5px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    margin: 0 10px;
    border-radius: 8px;
}

.sidebar-menu a i {
    width: 22px;
    margin-right: 12px;
    color: var(--primary-color);
    font-size: 16px;
    text-align: center;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.sidebar-menu .submenu {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    margin-top: 3px;
    overflow: hidden;
}

.sidebar-menu li.has-submenu.active > .submenu {
    display: block;
}

.sidebar-menu .submenu li {
    margin: 0;
}

.sidebar-menu .submenu a {
    padding: 4px 20px 4px 50px;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.sidebar-menu .submenu a:hover {
    background: rgba(33, 150, 243, 0.1);
    padding-left: 55px;
}

.sidebar-menu .submenu a i {
    width: 18px;
    margin-right: 10px;
    font-size: 14px;
}

.sidebar-menu .submenu a.active {
    background: rgba(33, 150, 243, 0.15);
    font-weight: 600;
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.sidebar-menu .submenu-icon {
    transition: transform 0.3s ease;
}

.sidebar-menu .submenu-icon.rotated {
    transform: rotate(180deg);
}

.sidebar-menu li.has-submenu > a {
    cursor: pointer;
    position: relative;
}

.sidebar-menu li.has-submenu.active > a {
    background: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

/* Menu Divider & Category */
.sidebar-menu .menu-divider {
    margin: 6px 0 3px 0;
    padding: 0;
    border: none;
    list-style: none;
}

.sidebar-menu .menu-divider a {
    display: none !important;
}

.sidebar-menu .menu-category {
    display: block;
    padding: 4px 20px 4px 20px;
    margin: 0 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    background: transparent;
    border: none;
    cursor: default;
    user-select: none;
}

.sidebar-menu .menu-divider:first-child {
    margin-top: 0;
}

.sidebar-menu .menu-divider:hover {
    background: transparent !important;
}

/* ============================================
   PRESENSI CARD (Rekap)
   ============================================ */
.presensi-card {
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(33, 150, 243, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.presensi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.15);
    border-color: var(--primary-color);
}

.presensi-card-header {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(33, 150, 243, 0.05) 100%);
    padding: 12px 15px;
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
}

.presensi-card-body {
    padding: 15px;
    flex: 1;
}

.presensi-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.presensi-info-item:last-child {
    margin-bottom: 0;
}

.presensi-info-item i {
    width: 20px;
    margin-right: 10px;
    font-size: 16px;
}

.presensi-info-item .label {
    flex: 1;
    color: #666;
    font-weight: 500;
}

.presensi-info-item .value {
    color: var(--text-color);
    font-weight: 600;
}

.presensi-card-footer {
    padding: 12px 15px;
    background: rgba(33, 150, 243, 0.02);
    border-top: 1px solid rgba(33, 150, 243, 0.1);
}

/* ============================================
   REKAP PRESENSI TABLE
   ============================================ */
.table-rekap-presensi {
    font-size: 14px;
}

.table-rekap-presensi thead th {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 50%, #1565C0 100%);
    color: #FFFFFF;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    border: 1px solid rgba(33, 150, 243, 0.3);
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 10px 8px;
}

.table-rekap-presensi tbody td {
    text-align: center;
    vertical-align: middle;
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 6px 8px;
}

.table-rekap-presensi tbody tr:hover {
    background-color: rgba(33, 150, 243, 0.03);
}

.table-rekap-presensi tbody tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.01);
}

.table-rekap-presensi tbody tr:nth-child(even):hover {
    background-color: rgba(33, 150, 243, 0.05);
}

/* Responsive untuk tabel rekap */
@media (max-width: 768px) {
    .table-rekap-presensi {
        font-size: 12px;
    }
    
    .table-rekap-presensi thead th {
        padding: 8px 5px;
    }
    
    .table-rekap-presensi tbody td {
        padding: 5px 4px;
    }
}

/* ============================================
   PRINT STYLES - A4 PAPER
   ============================================ */
@media print {
    @page {
        size: A4;
        margin: 15mm;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body {
        background: white !important;
        color: black !important;
        font-size: 12px;
    }

    /* Sembunyikan elemen yang tidak perlu */
    .navbar,
    .sidebar,
    .btn,
    .alert,
    form,
    .modal,
    .btn-close,
    .modal-footer,
    .no-print,
    .no-print * {
        display: none !important;
        visibility: hidden !important;
    }

    /* Tampilkan konten yang perlu dicetak */
    .print-content {
        display: block !important;
    }

    /* Styling untuk kertas A4 */
    .card {
        border: none !important;
        box-shadow: none !important;
        page-break-inside: avoid;
        margin-bottom: 15px;
        background: white !important;
    }

    .card-body {
        padding: 10px !important;
    }

    /* Header untuk print */
    .print-header {
        text-align: center;
        margin-bottom: 20px;
        padding-bottom: 15px;
        border-bottom: 2px solid #000;
        display: block !important;
    }

    .print-header h3 {
        margin: 0 0 10px 0;
        font-size: 18px;
        font-weight: bold;
        color: #000 !important;
    }

    .print-header p {
        margin: 5px 0;
        font-size: 12px;
        color: #000 !important;
    }

    /* Tabel untuk print */
    .table-rekap-presensi {
        width: 100%;
        border-collapse: collapse;
        font-size: 9px;
        page-break-inside: auto;
        margin-bottom: 10px;
    }

    .table-rekap-presensi thead {
        display: table-header-group;
    }

    .table-rekap-presensi thead th {
        background: #2196F3 !important;
        color: #FFFFFF !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 6px 4px;
        border: 1px solid #000;
        font-weight: bold;
        font-size: 9px;
        text-align: center;
    }

    .table-rekap-presensi tbody td {
        padding: 4px 3px;
        border: 1px solid #ccc;
        font-size: 8px;
        text-align: center;
    }

    .table-rekap-presensi tbody tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    /* Badge untuk print */
    .badge {
        padding: 2px 5px;
        font-size: 7px;
        border: 1px solid #000;
        display: inline-block;
    }

    /* Card header untuk print */
    .card-header.bg-primary {
        background: #2196F3 !important;
        color: #FFFFFF !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        padding: 8px 10px;
        margin-bottom: 8px;
        display: block !important;
    }

    .card-header.bg-primary h5 {
        color: #FFFFFF !important;
        margin: 0;
        font-size: 13px;
    }

    .card-header.bg-primary small {
        color: #FFFFFF !important;
        font-size: 10px;
    }

    /* Pastikan card header tetap muncul */
    .card-header {
        display: block !important;
    }

    /* Icon untuk print */
    .fas, .fa {
        font-size: 8px;
    }

    /* Table responsive wrapper */
    .table-responsive {
        overflow: visible !important;
        max-height: none !important;
    }

    /* Page break */
    .page-break {
        page-break-before: always;
    }

    /* Footer untuk print */
    .print-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        font-size: 9px;
        padding: 5px;
        border-top: 1px solid #000;
    }

    /* Pastikan tidak ada overflow */
    .table-responsive {
        overflow: visible !important;
    }
}

/* Preview kertas A4 saat akan print */
@media screen {
    .print-preview {
        max-width: 210mm;
        min-height: 297mm;
        margin: 20px auto;
        padding: 20mm;
        background: white;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
        border: 1px solid #ddd;
    }

    .print-preview .card {
        margin-bottom: 20px;
    }
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 260px;
    right: 0;
    height: 70px;
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    padding: 0 25px;
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-left h4 {
    margin: 0;
    padding: 0;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 20px;
}

.navbar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

.user-profile {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 25px;
    transition: all 0.3s ease;
    margin-left: auto;
}

.user-profile:hover {
    background: var(--light-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 0;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .user-avatar {
        width: 42px;
        height: 42px;
        margin-right: 12px;
    }
}

.user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.user-role {
    font-size: 12px;
    color: #666;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 220px;
    margin-top: 5px;
    border: 1px solid var(--border-color);
    z-index: 1000;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .dropdown-menu {
        right: 0;
        min-width: 200px;
    }
}

.dropdown-header {
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(33, 150, 243, 0.1);
    color: var(--primary-color);
}

.dropdown-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
    color: var(--primary-color);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

.dropdown-item-text {
    color: var(--text-color);
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    margin-left: 260px;
    margin-top: 70px;
    padding: 30px;
    min-height: calc(100vh - 70px);
}

/* Flash Messages */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 10px;
    font-size: 18px;
}

/* ============================================
   CARDS
   ============================================ */
.card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
    padding: 18px 25px;
    border-radius: 0 !important;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header i {
    margin-right: 10px;
    font-size: 18px;
}

.card-body {
    padding: 25px;
}

/* ============================================
   STATISTICS CARDS
   ============================================ */
.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 65px;
    height: 65px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    margin-bottom: 18px;
}

.stat-icon.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

.stat-icon.success {
    background: linear-gradient(135deg, var(--success-color) 0%, #388E3C 100%);
}

.stat-icon.warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #F57C00 100%);
}

.stat-icon.danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #C62828 100%);
}

.stat-icon.info {
    background: linear-gradient(135deg, var(--info-color) 0%, #0097A7 100%);
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* ============================================
   DASHBOARD WIDGET - MINIMALIS FUTURISTIK
   ============================================ */
.dashboard-widget {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.1);
    height: 100%;
    min-height: 120px;
}

.dashboard-widget:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(33, 150, 243, 0.2);
}

.dashboard-widget .widget-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dashboard-widget .widget-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--white);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.dashboard-widget .widget-info {
    flex: 1;
    min-width: 0;
}

.dashboard-widget .widget-value {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 5px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-widget .widget-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-widget .widget-decoration {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.08;
    z-index: 1;
    transition: all 0.4s ease;
}

.dashboard-widget:hover .widget-decoration {
    transform: scale(1.2);
    opacity: 0.12;
}

/* Widget Primary - Biru */
.widget-primary .widget-icon {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 50%, #1565C0 100%);
}

.widget-primary .widget-decoration {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
}

.widget-primary .widget-value {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Widget Success - Hijau */
.widget-success .widget-icon {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 50%, #2E7D32 100%);
}

.widget-success .widget-decoration {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
}

.widget-success .widget-value {
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Widget Warning - Kuning/Oranye */
.widget-warning .widget-icon {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 50%, #E65100 100%);
}

.widget-warning .widget-decoration {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
}

.widget-warning .widget-value {
    background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Widget Info - Cyan */
.widget-info .widget-icon {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 50%, #00838F 100%);
}

.widget-info .widget-decoration {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
}

.widget-info .widget-value {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Widget */
@media (max-width: 768px) {
    .dashboard-widget {
        padding: 18px;
        min-height: 110px;
    }
    
    .dashboard-widget .widget-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .dashboard-widget .widget-value {
        font-size: 26px;
    }
    
    .dashboard-widget .widget-label {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .dashboard-widget {
        padding: 15px;
        min-height: 100px;
    }
    
    .dashboard-widget .widget-content {
        gap: 12px;
    }
    
    .dashboard-widget .widget-icon {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .dashboard-widget .widget-value {
        font-size: 24px;
    }
    
    .dashboard-widget .widget-label {
        font-size: 11px;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border: none;
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    border: none;
    color: var(--white);
}

.btn-secondary:hover {
    background: #F57C00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.btn-success {
    background: var(--success-color);
    border: none;
}

.btn-danger {
    background: var(--danger-color);
    border: none;
}

.btn-warning {
    background: var(--warning-color);
    border: none;
}

/* ============================================
   FORMS
   ============================================ */
.form-control {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    display: block;
}

.form-label i {
    color: var(--primary-color);
    margin-right: 5px;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.form-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* ============================================
   TABLES
   ============================================ */
.table {
    background: var(--white);
    border-radius: 0;
    margin-bottom: 0;
}

.table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--white);
}

.table thead th {
    border: none;
    padding: 15px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr {
    transition: background 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.table tbody tr:hover {
    background: rgba(33, 150, 243, 0.05);
}

.table tbody tr:last-child {
    border-bottom: none;
}

.table tbody td {
    padding: 15px;
    vertical-align: middle;
    font-size: 14px;
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 12px;
    display: inline-block;
}

.bg-success {
    background-color: var(--success-color) !important;
}

.bg-danger {
    background-color: var(--danger-color) !important;
}

.bg-warning {
    background-color: var(--warning-color) !important;
}

.bg-info {
    background-color: var(--info-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* ============================================
   ALERTS
   ============================================ */
.alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
}

.alert-danger {
    background: #FFEBEE;
    color: #C62828;
}

.alert-warning {
    background: #FFF3E0;
    color: #E65100;
}

.alert-info {
    background: #E0F7FA;
    color: #006064;
}

/* ============================================
   PRESENSI PAGE
   ============================================ */
.presensi-card {
    text-align: center;
    padding: 40px;
}

.presensi-button {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.presensi-button:hover:not(:disabled):not(.disabled) {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.presensi-button:disabled,
.presensi-button.disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.presensi-button:disabled:hover,
.presensi-button.disabled:hover {
    transform: none !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.presensi-button.masuk {
    background: linear-gradient(135deg, var(--success-color) 0%, #388E3C 100%);
}

.presensi-button.masuk:disabled,
.presensi-button.masuk.disabled {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%) !important;
}

.presensi-button.keluar {
    background: linear-gradient(135deg, var(--danger-color) 0%, #C62828 100%);
}

.presensi-button.keluar:disabled,
.presensi-button.keluar.disabled {
    background: linear-gradient(135deg, #9E9E9E 0%, #757575 100%) !important;
}

.presensi-button i {
    font-size: 48px;
    margin-bottom: 10px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        z-index: 1050;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .navbar {
        left: 0;
        padding: 0 15px;
        height: 60px;
    }
    
    .navbar-left {
        gap: 10px;
    }
    
    .navbar-left h4 {
        font-size: 16px;
    }
    
    .navbar-right {
        margin-left: auto;
        justify-content: flex-end;
    }
    
    .user-profile {
        padding: 4px 8px;
    }
    
    .main-content {
        margin-left: 0;
        margin-top: 60px;
        padding: 15px;
    }
    
    .stat-card {
        margin-bottom: 15px;
        padding: 20px;
    }
    
    .stat-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 28px;
    }
    
    .card {
        margin-bottom: 15px;
    }
    
    .card-header {
        padding: 12px 15px;
        font-size: 16px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .table-responsive {
        font-size: 13px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 10px 8px;
    }
    
    .presensi-button {
        width: 200px;
        height: 200px;
    }
    
    .presensi-button i {
        font-size: 36px;
    }
    
    .card-header {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .presensi-button {
        width: 150px;
        height: 150px;
        font-size: 18px;
    }
    
    .presensi-button i {
        font-size: 36px;
    }
    
    .table-responsive {
        font-size: 12px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 5px;
        font-size: 12px;
    }
    
    .btn {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .btn-sm {
        font-size: 12px;
        padding: 5px 10px;
    }
}

@media (max-width: 576px) {
    .navbar-left h4 {
        font-size: 14px;
        display: none;
    }
    
    .user-profile {
        padding: 2px 5px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .card-header {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    .card-body {
        padding: 12px;
    }
    
    .stat-card {
        padding: 15px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    .stat-label {
        font-size: 12px;
    }
}

/* ============================================
   UTILITIES
   ============================================ */
.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.shadow-sm {
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
}

.rounded-lg {
    border-radius: 10px !important;
}

/* ============================================
   PRESENSI STATUS CARD
   ============================================ */
.presensi-status-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.presensi-status-card:hover {
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
    transform: translateY(-2px);
}

.presensi-status-card.completed {
    border-color: var(--success-color);
    background: linear-gradient(135deg, #f1f8f4 0%, #ffffff 100%);
}

.presensi-status-card.in-progress {
    border-color: var(--warning-color);
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
}

.presensi-status-card.not-started {
    border-color: var(--info-color);
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
}

.status-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.status-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.status-icon.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.status-icon.warning {
    background: linear-gradient(135deg, #FFC107 0%, #ffb300 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.3);
}

.status-icon.info {
    background: linear-gradient(135deg, #00BCD4 0%, #00acc1 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 188, 212, 0.3);
}

.status-icon.danger {
    background: linear-gradient(135deg, #F44336 0%, #e53935 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3);
}

.status-title h5 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.status-title small {
    color: #6c757d;
    font-size: 13px;
}

.status-details {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6c757d;
}

.detail-value {
    font-size: 16px;
    color: var(--text-color);
}

.status-message {
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid var(--warning-color);
    padding: 12px 15px;
    border-radius: 6px;
}

.status-message p {
    margin: 0;
    color: #856404;
    font-size: 14px;
}

/* ============================================
   NOTIFICATION LIST
   ============================================ */
.notification-list {
    max-height: 500px;
    overflow-y: auto;
}

.notification-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e3f2fd;
    border-left: 3px solid var(--primary-color);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.05);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.badge-sm {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.notification-message {
    color: #6c757d;
    font-size: 13px;
    margin-bottom: 5px;
    line-height: 1.5;
}

.notification-time {
    color: #9e9e9e;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Scrollbar untuk notification list - konsisten dengan tema */
.notification-list::-webkit-scrollbar {
    width: 5px;
}

.notification-list::-webkit-scrollbar-track {
    background: rgba(33, 150, 243, 0.05);
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 10px;
}

.notification-list::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-color) 0%, #1565C0 100%);
}

/* Spacing Utilities */
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.ms-3 { margin-left: 1rem !important; }

.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.me-3 { margin-right: 1rem !important; }

.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

/* DataTables Custom Styling */
.dataTables_wrapper {
    padding: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(33, 150, 243, 0.25);
}

/* ============================================
   CUSTOM INFO BOX / ALERT
   ============================================ */
.custom-info-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border: none;
    border-left: 4px solid #2196F3;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 10px rgba(33, 150, 243, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.custom-info-box:hover {
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.15);
    transform: translateY(-2px);
}

.custom-info-box .info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.custom-info-box .info-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: #1565C0;
    margin: 0;
}

.custom-info-box .info-title i {
    font-size: 20px;
    color: #2196F3;
}

.custom-info-box .info-close {
    background: rgba(33, 150, 243, 0.2);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1565C0;
    font-size: 16px;
    padding: 0;
}

.custom-info-box .info-close:hover {
    background: rgba(33, 150, 243, 0.3);
    transform: rotate(90deg);
}

.custom-info-box .info-content {
    color: #424242;
    line-height: 1.8;
}

.custom-info-box .info-content p {
    margin-bottom: 12px;
    font-size: 14px;
}

.custom-info-box .info-content p:last-child {
    margin-bottom: 0;
}

.custom-info-box .info-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.custom-info-box .info-content ul li {
    margin-bottom: 10px;
    font-size: 14px;
    line-height: 1.7;
}

.custom-info-box .info-content ul li:last-child {
    margin-bottom: 0;
}

.custom-info-box .info-content strong {
    color: #1565C0;
    font-weight: 600;
}

.custom-info-box.hidden {
    display: none;
}

/* Animation untuk fade in/out */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0.375rem 0.75rem;
    margin-left: 0.25rem;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--text-color) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary-color) !important;
    color: var(--white) !important;
    border-color: var(--primary-color);
}

.dataTables_wrapper .dataTables_info {
    padding-top: 0.75rem;
    color: var(--text-color);
}

.dataTables_wrapper .dt-buttons {
    margin-bottom: 1rem;
}

.dataTables_wrapper .dt-buttons .btn {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

table.dataTable thead th {
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
    font-weight: 600;
    padding: 0.75rem;
}

table.dataTable tbody td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

table.dataTable tbody tr:hover {
    background-color: var(--light-color);
}

table.dataTable tbody tr.even:hover,
table.dataTable tbody tr.odd:hover {
    background-color: var(--light-color);
}

/* Status Card untuk Notifikasi (Non-Alert) */
.status-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.status-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.status-card .status-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 16px;
}

.status-card .status-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.status-card.status-info {
    border-left-color: #2196F3;
    background: #E3F2FD;
}

.status-card.status-info .status-icon {
    background: #2196F3;
    color: white;
}

.status-card.status-success {
    border-left-color: #4CAF50;
    background: #E8F5E9;
}

.status-card.status-success .status-icon {
    background: #4CAF50;
    color: white;
}

.status-card.status-warning {
    border-left-color: #FF9800;
    background: #FFF3E0;
}

.status-card.status-warning .status-icon {
    background: #FF9800;
    color: white;
}

.status-card.status-danger {
    border-left-color: #F44336;
    background: #FFEBEE;
}

.status-card.status-danger .status-icon {
    background: #F44336;
    color: white;
}

/* ============================================
   EXPIRED NOTIFICATION
   ============================================ */
.expired-notification {
    display: inline-flex;
    align-items: center;
}

.expired-notification .badge {
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.expired-notification .badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Animasi berkedip untuk hari H (expired) */
.expired-blink {
    animation: blink-expired 1s infinite;
}

@keyframes blink-expired {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

.expired-blink .badge {
    animation: blink-badge 1s infinite;
}

@keyframes blink-badge {
    0%, 100% {
        background-color: #dc3545;
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    50% {
        background-color: #c82333;
        box-shadow: 0 0 0 8px rgba(220, 53, 69, 0);
    }
}

/* ============================================
   DISABLED MENU WHEN EXPIRED
   ============================================ */
.sidebar-menu a.menu-disabled {
    color: #9e9e9e !important;
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.sidebar-menu a.menu-disabled:hover {
    background-color: #f5f5f5 !important;
    color: #9e9e9e !important;
}

.sidebar-menu a.menu-disabled.active {
    background-color: #e0e0e0 !important;
    color: #757575 !important;
}

.sidebar-menu a.menu-disabled i {
    color: #9e9e9e !important;
}

/* Override untuk submenu */
.sidebar-menu .submenu a.menu-disabled {
    color: #9e9e9e !important;
    background-color: transparent !important;
}

.sidebar-menu .submenu a.menu-disabled:hover {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #9e9e9e !important;
}