/* Custom CSS - Sistem Presensi & Penggajian Karyawan - Light Glassmorphism Edition */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-font: 'Outfit', sans-serif;
    --secondary-font: 'Inter', sans-serif;
    
    /* Core Color Palette - Light Glassmorphism */
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.45);
    --text-dark: #0f172a; /* Slate 900 for high readability on light glass */
    --text-muted: #475569; /* Slate 600 */
    
    /* Red Accents (Jawara Jamur Logo Theme) */
    --accent-primary: #dc2626;
    --accent-hover: #b91c1c;
    --accent-light: #ef4444;
    --accent-soft: rgba(220, 38, 38, 0.05);
    --accent-border: rgba(220, 38, 38, 0.08);
    
    /* UI States */
    --success: #15803d; /* Soft dark green */
    --danger: #b91c1c;  /* Soft dark red */
    --warning: #b45309; /* Soft dark amber */
    --info: #0369a1;    /* Soft dark sky blue */
}

/* Warna seleksi teks */
::selection {
    background: rgba(220, 38, 38, 0.15);
    color: var(--text-dark);
}
::-moz-selection {
    background: rgba(220, 38, 38, 0.15);
    color: var(--text-dark);
}

/* Utility Classes */
.text-accent-primary {
    color: var(--accent-primary) !important;
}
.bg-accent-soft {
    background-color: var(--accent-soft) !important;
}
.badge.bg-accent-soft {
    border: 1px solid rgba(220, 38, 38, 0.15) !important;
}

body {
    font-family: var(--primary-font);
    background: 
        radial-gradient(circle at 5% 10%, rgba(254, 226, 226, 0.8) 0%, transparent 35%),
        radial-gradient(circle at 95% 15%, rgba(254, 242, 242, 0.85) 0%, transparent 35%),
        radial-gradient(circle at 50% 85%, rgba(241, 245, 249, 0.95) 0%, transparent 45%),
        #f8fafc;
    background-color: #f8fafc;
    background-attachment: fixed;
    background-size: cover;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Floating colorful blur blobs for depth behind glass panes */
body::before, body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.7;
}
body::before {
    width: 320px;
    height: 320px;
    background: rgba(220, 38, 38, 0.07); /* Jawara Jamur Red Accent Blob */
    top: 20%;
    left: -60px;
}
body::after {
    width: 420px;
    height: 420px;
    background: rgba(245, 158, 11, 0.05); /* Warm Amber Accent Blob */
    bottom: 12%;
    right: -80px;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
}

/* Custom Scrollbar - Glassy Style */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}
::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.25);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Page Wrapper & Sidebar Layout */
.wrapper {
    display: flex;
    width: 100%;
    align-items: stretch;
    min-height: 100vh;
}

#sidebar {
    min-width: 260px;
    max-width: 260px;
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(25px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
    color: var(--text-dark);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid rgba(255, 255, 255, 0.5) !important;
    box-shadow: 4px 0 32px 0 rgba(31, 38, 135, 0.03) !important;
    z-index: 1000;
}

#sidebar.active {
    margin-left: -260px;
}

#sidebar .sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

#sidebar .sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
}

#sidebar ul.components {
    padding: 20px 0;
}

#sidebar ul p {
    color: var(--text-muted);
    padding: 10px 24px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    font-weight: 700;
    opacity: 0.8;
}

#sidebar ul li a {
    margin: 4px 12px;
    padding: 10px 16px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid transparent;
}

#sidebar ul li a i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

#sidebar ul li a:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: var(--accent-primary);
    transform: translateX(4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

#sidebar ul li a:hover i {
    color: var(--accent-primary);
    transform: scale(1.1);
}

#sidebar ul li.active > a {
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.12) 0%, rgba(220, 38, 38, 0.05) 100%) !important;
    color: var(--accent-primary) !important;
    font-weight: 600;
    border: 1px solid rgba(220, 38, 38, 0.12) !important;
    box-shadow: 0 4px 15px 0 rgba(220, 38, 38, 0.04);
}

#sidebar ul li.active > a i {
    color: var(--accent-primary);
}

/* Content Area */
#content {
    width: 100%;
    min-height: 100vh;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

/* Floating Glass Navbar Layout */
.main-navbar {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 16px;
    padding: 15px 24px;
    margin: 20px 30px 10px 30px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.02) !important;
}

.page-content {
    padding: 20px 30px 30px 30px;
    flex-grow: 1;
}

/* Premium Cards - Glassmorphism */
.card-premium {
    background-color: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    margin-bottom: 24px;
    overflow: hidden;
}

.card-premium:hover {
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.05) !important;
    background-color: rgba(255, 255, 255, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.card-premium .card-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(220, 38, 38, 0.06) !important;
    padding: 20px 24px;
    font-weight: 600;
}

.card-premium .card-body {
    padding: 24px;
}

/* Default Bootstrap Card Overrides - Styled as Glassmorphism */
.card {
    background-color: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.03) !important;
}

/* Stats Cards - Glassmorphism with Hover Micro-Animations */
.card-stat {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    padding: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.03) !important;
}

.card-stat:hover {
    transform: translateY(-6px);
    background-color: rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 16px 36px rgba(220, 38, 38, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.8) !important;
}

.card-stat .stat-info h6 {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-stat .stat-info h3 {
    font-size: 1.85rem;
    margin-bottom: 0;
    font-weight: 700;
    color: var(--text-dark);
}

.card-stat .stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    transition: transform 0.3s ease;
}

.card-stat:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-primary .stat-icon { background: rgba(220, 38, 38, 0.08); color: var(--accent-primary); }
.stat-success .stat-icon { background: rgba(21, 128, 61, 0.08); color: var(--success); }
.stat-danger .stat-icon { background: rgba(185, 28, 28, 0.08); color: var(--danger); }
.stat-warning .stat-icon { background: rgba(180, 83, 9, 0.08); color: var(--warning); }
.stat-info .stat-icon { background: rgba(3, 105, 161, 0.08); color: var(--info); }

/* Buttons */
.btn-accent {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #b91c1c 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 10px 20px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.15);
}

.btn-accent:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.25);
}

.btn-outline-accent {
    background-color: transparent;
    color: var(--accent-primary);
    border: 1.5px solid rgba(220, 38, 38, 0.5);
    border-radius: 10px;
    padding: 9px 19px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-accent:hover {
    background-color: rgba(220, 38, 38, 0.07);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

/* Forms & Tables - Glassmorphism Styling */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid rgba(220, 38, 38, 0.15) !important;
    background-color: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    padding: 11px 16px;
    font-family: var(--secondary-font);
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}

.table-premium {
    border-collapse: separate;
    border-spacing: 0;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
}

.table-premium th {
    background-color: rgba(255, 255, 255, 0.6) !important;
    color: var(--accent-primary) !important;
    font-weight: 700 !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.5) !important;
    padding: 16px 18px !important;
    font-size: 0.9rem;
    backdrop-filter: blur(5px) !important;
}

.table-premium td {
    padding: 15px 18px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    vertical-align: middle;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

.table-premium tr:last-child td {
    border-bottom: none !important;
}

.table-premium tr:hover td {
    background-color: rgba(255, 255, 255, 0.35) !important;
    transition: background-color 0.2s ease;
}

/* DataTables pagination adjustments to match theme */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.3) !important;
    color: var(--text-dark) !important;
    transition: all 0.2s ease;
    padding: 6px 12px !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #b91c1c 100%) !important;
    color: white !important;
    border-color: var(--accent-primary) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(255, 255, 255, 0.6) !important;
    color: var(--accent-primary) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

/* Modals - Glassmorphism Overrides */
.modal-content {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08) !important;
}
.modal-header, .modal-footer {
    border-color: rgba(255, 255, 255, 0.4) !important;
}

/* SweetAlert2 Popup - Glassmorphism Styling */
.swal2-popup {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08) !important;
    color: var(--text-dark) !important;
}
.swal2-icon.swal2-success [class^='swal2-success-circular-line'],
.swal2-icon.swal2-success .swal2-success-fix {
    background: transparent !important;
}
.swal2-title, .swal2-html-container {
    color: var(--text-dark) !important;
}
.swal2-actions button {
    border-radius: 10px !important;
    padding: 10px 24px !important;
}

/* Login Page Custom Style - Light Glassmorphism */
.login-body {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Menggunakan background gambar bg.png yang telah dikompres (sangat ringan, aman di HP) */
    background-image: url('../images/bg.png') !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
}

/* Bright Sunset Gradient Mesh Overlay on Login Page */
.login-body::before {
    content: '' !important;
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, rgba(15, 23, 42, 0.4) 100%) !important;
    display: block !important;
    z-index: 0;
}

/* Glowing floating blur blob for login page */
.login-body::after {
    content: '' !important;
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.login-card {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(25px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(220, 38, 38, 0.06), 0 8px 24px rgba(0, 0, 0, 0.02) !important;
    width: 100%;
    max-width: 430px;
    padding: 45px 35px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
}

/* Force dark colors for login card elements to remain readable */
.login-card h4 {
    color: var(--text-dark) !important;
}

.login-card p {
    color: var(--text-muted) !important;
}

.login-card .form-control {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(220, 38, 38, 0.15) !important;
    border-radius: 30px !important;
    color: var(--text-dark) !important;
    padding: 12px 24px !important;
    font-size: 0.95rem !important;
    font-family: var(--secondary-font);
}

.login-card .form-control::placeholder {
    color: rgba(15, 23, 42, 0.4) !important;
}

.login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: var(--accent-primary) !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
    outline: none !important;
}

.login-card .btn-accent {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #b91c1c 100%) !important;
    border: none !important;
    border-radius: 30px !important;
    color: #ffffff !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2) !important;
}

.login-card .btn-accent:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%) !important;
    transform: translateY(-1.5px) !important;
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3) !important;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn i {
    font-size: 1.1rem;
}

/* Attendance Bulk Layout */
.btn-attendance {
    min-width: 130px;
}

.badge-attendance {
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
}

.attendance-radio-group {
    display: flex;
    gap: 10px;
}

.attendance-radio {
    display: none;
}

.attendance-label {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--accent-border);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    flex-grow: 1;
}

.attendance-radio:checked + .attendance-label[for*="Hadir"] {
    background-color: var(--success);
    color: #fff;
    border-color: var(--success);
}

.attendance-radio:checked + .attendance-label[for*="Setengah"] {
    background-color: var(--info);
    color: #fff;
    border-color: var(--info);
}

.attendance-radio:checked + .attendance-label[for*="Izin"] {
    background-color: var(--warning);
    color: #fff;
    border-color: var(--warning);
}

.attendance-radio:checked + .attendance-label[for*="Sakit"] {
    background-color: #7b1fa2;
    color: #fff;
    border-color: #7b1fa2;
}

.attendance-radio:checked + .attendance-label[for*="Alpha"] {
    background-color: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

/* Print Slips Styles */
@media print {
    body {
        background-color: #fff;
        color: #000;
        font-size: 12pt;
    }
    #sidebar, .main-navbar, .no-print, .btn, footer {
        display: none !important;
    }
    #content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .page-content {
        padding: 0 !important;
    }
    .card-premium {
        border: none !important;
        box-shadow: none !important;
    }
    .print-slip-page {
        page-break-after: always;
        padding: 20px 0;
    }
    .print-slip-page:last-child {
        page-break-after: avoid;
    }
}

/* Spinner Loader Overlay */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 247, 245, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.spinner-custom {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(220, 38, 38, 0.08);
    border-top: 5px solid var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design adjustments */
@media (max-width: 768px) {
    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 260px;
        min-width: 260px;
        max-width: 260px;
        margin-left: 0 !important;
        transform: translateX(-260px);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1050;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    #sidebar.active {
        transform: translateX(0);
    }
    
    /* Overlay backdrop */
    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        animation: fadeInOverlay 0.2s ease-out;
    }
    
    .sidebar-overlay.show {
        display: block;
    }
    
    .main-navbar {
        padding: 12px 16px !important;
        margin: 15px 15px 10px 15px !important;
    }
    
    .main-navbar .container-fluid {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .page-content {
        padding: 15px;
    }
    
    .attendance-radio-group {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
    }
    
    .attendance-label {
        padding: 6px 4px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }
    
    /* Responsive Attendance Table to Cards */
    #form-absensi-bulk .table-premium, 
    #form-absensi-bulk .table-premium tbody, 
    #form-absensi-bulk .table-premium tr, 
    #form-absensi-bulk .table-premium td { 
        display: block !important; 
    }
    
    #form-absensi-bulk .table-premium thead { 
        display: none !important; 
    }
    
    #form-absensi-bulk .table-premium tr { 
        border: 1px solid rgba(220, 38, 38, 0.1) !important;
        margin-bottom: 20px;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.5) !important;
        padding: 16px !important;
        box-shadow: 0 10px 25px rgba(31, 38, 135, 0.03) !important;
    }
    
    #form-absensi-bulk .table-premium td { 
        border: none !important;
        padding: 6px 0 !important;
        width: 100% !important;
    }

    #form-absensi-bulk .table-premium td:nth-child(1) {
        display: none !important; 
    }
    
    #form-absensi-bulk .table-premium td:nth-child(2) {
        padding-bottom: 2px !important;
        font-size: 0.85rem;
    }
    
    #form-absensi-bulk .table-premium td:nth-child(3) {
        padding-top: 0 !important;
        padding-bottom: 8px !important;
        font-size: 1.1rem;
        border-bottom: 1px dashed rgba(220, 38, 38, 0.1) !important;
    }
    
    #form-absensi-bulk .table-premium td:nth-child(4) {
        padding-top: 10px !important;
        padding-bottom: 12px !important;
    }
    
    #form-absensi-bulk .table-premium td:nth-child(5) {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    
    #form-absensi-bulk .table-premium td:nth-child(5)::before {
        content: "Status Kehadiran:";
        display: block;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
    }
    
    #form-absensi-bulk .table-premium td:nth-child(6) {
        padding-top: 8px !important;
    }
    
    /* Generic Table Responsive Stack (turns tables into beautiful cards) */
    .table-responsive-stack, 
    .table-responsive-stack tbody, 
    .table-responsive-stack tr, 
    .table-responsive-stack td { 
        display: block !important; 
    }
    
    .table-responsive-stack thead { 
        display: none !important; 
    }
    
    .table-responsive-stack tr { 
        border: 1px solid rgba(220, 38, 38, 0.1) !important;
        margin-bottom: 20px !important;
        border-radius: 16px !important;
        background: rgba(255, 255, 255, 0.5) !important;
        padding: 16px !important;
        box-shadow: 0 10px 25px rgba(31, 38, 135, 0.03) !important;
    }
    
    .table-responsive-stack td { 
        border: none !important;
        padding: 8px 10px 8px 45% !important;
        text-align: right !important;
        position: relative;
        box-sizing: border-box !important;
    }
    
    .table-responsive-stack td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        top: 8px;
        width: 40%;
        text-align: left;
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.85rem;
    }
    
    .table-responsive-stack td[data-label="No"] {
        display: none !important;
    }
    
    .table-responsive-stack td[data-label="Aksi"] {
        padding-left: 0 !important;
        text-align: center !important;
        border-top: 1px dashed rgba(220, 38, 38, 0.1) !important;
        margin-top: 10px;
        padding-top: 15px !important;
    }
    
    .table-responsive-stack td[data-label="Aksi"]::before {
        display: none !important;
    }
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}
