* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: transparent;
    position: relative;
}

/* Background effects removed for cleaner appearance */

/* Digital effects removed for cleaner appearance */

/* Main Content */
.main-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    /* Background image untuk main content */
    background-image: url('assets/images/bg-smart-attendance.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Header */
.header {
    background: linear-gradient(135deg, #0f0f23, #1a1a3a, #2d1b69, #1e3c72, #2a5298, #1a1a3a);
    background-size: 400% 400%;
    animation: gradientMove 15s ease-in-out infinite;
    backdrop-filter: blur(15px);
    color: white;
    padding: 8px 12px; /* Kurangi padding lebih lanjut */
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 10;
    position: relative;
    min-height: 50px; /* Kurangi dari 60px ke 50px */
    flex-wrap: nowrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: headerShine 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes gradientMove {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes headerShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Running Text */
.running-text-container {
    background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 100%;
    animation: gradientShift 3s ease-in-out infinite;
    padding: 8px 0; /* Kurangi dari 12px ke 8px */
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.running-text {
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    display: inline-block;
    padding-left: 100%;
}

.running-text span {
    font-weight: 600;
    font-size: 16px; /* Kurangi dari 14px ke 12px */
    color: #333;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8);
    letter-spacing: 0.6px; /* Kurangi letter spacing */
}

@keyframes scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Statistics Section Below Running Text */
.stats-section-below-running {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px; /* Kurangi dari 12px ke 8px */
    padding: 10px 15px 0 15px; /* Kurangi padding lebih lanjut */
    background: transparent;
    border-radius: 12px; /* Kurangi border radius */
    flex-wrap: wrap;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

/* Hapus overlay shimmer pada background stats-section-below-running */
/* .stats-section-below-running::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
} */

/* Efek hover dihapus untuk tampilan yang lebih bersih */

.stats-section-below-running .stat-card {
    display: flex;
    align-items: center;
    padding: 8px 12px; /* Kurangi padding lebih lanjut */
    border-radius: 8px; /* Kurangi border radius */
    background: transparent; /* Hapus background putih, biarkan gradient dari warna card */
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease, opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex: 1;
    border-left: 2px solid transparent; /* Kurangi border */
    gap: 6px; /* Kurangi gap */
    color: black !important;
    cursor: pointer;
    z-index: 15;
    position: relative;
}

.stats-section-below-running .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    z-index: 20;
}

.stats-section-below-running .stat-card.green {
    border-left-color: #1e7e34;
    background: linear-gradient(135deg, #28a745, #1e7e34);
}

.stats-section-below-running .stat-card.green:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    z-index: 20;
}

.stats-section-below-running .stat-card.green:hover .stat-icon {
    transform: scale(1.1);
}

.stats-section-below-running .stat-card.red {
    border-left-color: #bd2130;
    background: linear-gradient(135deg, #dc3545, #bd2130);
}

.stats-section-below-running .stat-card.red:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    z-index: 20;
}

.stats-section-below-running .stat-card.red:hover .stat-icon {
    transform: scale(1.1);
}

.stats-section-below-running .stat-card.orange {
    border-left-color: #e55a00;
    background: linear-gradient(135deg, #fd7e14, #e55a00);
}

.stats-section-below-running .stat-card.orange:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    z-index: 20;
}

.stats-section-below-running .stat-card.orange:hover .stat-icon {
    transform: scale(1.1);
}

.stats-section-below-running .stat-card.blue {
    border-left-color: #0056b3;
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.stats-section-below-running .stat-card.blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    z-index: 20;
}

.stats-section-below-running .stat-card.blue:hover .stat-icon {
    transform: scale(1.1);
}

.stats-section-below-running .stat-card.teal {
    border-left-color: #17a2b8;
    background: linear-gradient(135deg, #20c997, #17a2b8);
}

.stats-section-below-running .stat-card.teal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    z-index: 20;
}

.stats-section-below-running .stat-card.teal:hover .stat-icon {
    transform: scale(1.1);
}

.stats-section-below-running .stat-card.pink {
    border-left-color: #e83e8c;
    background: linear-gradient(135deg, #e83e8c, #c62d7a);
}

.stats-section-below-running .stat-card.pink:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
    z-index: 20;
}

.stats-section-below-running .stat-card.pink:hover .stat-icon {
    transform: scale(1.1);
}

.stats-section-below-running .stat-icon {
    width: 45px; /* Kurangi dari 55px ke 45px */
    height: 45px; /* Kurangi dari 55px ke 45px */
    object-fit: contain;
    border-radius: 4px; /* Kurangi border radius */
    padding: 3px; /* Kurangi padding */
    background: transparent;
    border: none;
    flex-shrink: 0;
    transition: all 0.3s ease;
    animation: iconZoomPulse 2s ease-in-out infinite;
}

/* Animasi zoom in/out untuk ikon stat-card */
@keyframes iconZoomPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Hover effect untuk ikon */
.stats-section-below-running .stat-card:hover .stat-icon {
    animation: iconZoomPulse 0.6s ease-in-out infinite;
    transform: scale(1.15);
}

.stats-section-below-running .stat-card.green .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stats-section-below-running .stat-card.red .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stats-section-below-running .stat-card.orange .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stats-section-below-running .stat-card.blue .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}



.stats-section-below-running .stat-card.teal .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stats-section-below-running .stat-content {
    flex: 1;
    color: white;
}

.stats-section-below-running .stat-number {
    font-size: 1.2em; /* Kurangi dari 1.5em ke 1.2em */
    font-weight: 700;
    margin-bottom: 2px;
    color: white;
}

.stats-section-below-running .stat-label {
    font-size: 0.7em; /* Kurangi dari 0.8em ke 0.7em */
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.stats-section-below-running .stat-detail {
    font-size: 0.55em; /* Kurangi dari 0.65em ke 0.55em */
    color: white;
    font-weight: 500;
}

/* Media Query FHD dihapus - ukuran besar sekarang menjadi default untuk semua tampilan lanskap */

/* Responsive Design untuk Stats Section Below Running Text */
@media (max-width: 1200px) {
    .stats-section-below-running {
        gap: 6px; /* Kurangi dari 8px ke 6px */
        padding: 10px 12px; /* Kurangi dari 12px 15px ke 10px 12px */
    }
    
    .stats-section-below-running .stat-card {
        padding: 8px 10px; /* Kurangi dari 10px 12px ke 8px 10px */
    }
    
    .stats-section-below-running .stat-icon {
        width: 50px; /* Kurangi dari 60px ke 50px */
        height: 50px; /* Kurangi dari 60px ke 50px */
    }
    
    .stats-section-below-running .stat-number {
        font-size: 1.1em; /* Kurangi dari 1.2em ke 1.1em */
    }
}

/* Media query untuk tablet dan layar menengah (1024px ke bawah) */
@media (max-width: 1024px) {
    .header {
        flex-wrap: wrap;
        gap: 12px; /* Kurangi dari 15px ke 12px */
        padding: 12px 15px; /* Kurangi dari 15px 20px ke 12px 15px */
    }
    
    .header-left {
        max-width: 100%; /* Ambil lebar penuh untuk menghindari tumpang tindih */
        width: 100%; /* Lebar penuh */
        flex: 1;
        min-width: 250px; /* Kurangi dari 300px ke 250px */
        text-align: center; /* Center alignment untuk semua text */
        justify-content: center;
    }
    
    .header-right {
        gap: 10px; /* Kurangi dari 12px ke 10px */
        flex-wrap: wrap;
        justify-content: center; /* Center posisi kotak-kotak */
        width: 100%;
        margin-top: 8px; /* Kurangi dari 10px ke 8px */
    }
    
    .header-left h1 {
        font-size: 1.4em; /* Kurangi dari 1.6em ke 1.4em */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .header-left p {
        font-size: 1em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .header-left small {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    /* Perkecil ukuran elemen di header-right untuk tablet */
    .time-display {
        padding: 10px 12px;
        min-height: 60px;
        font-size: 0.9em;
        flex: 0 0 auto;
    }
    
    .time {
        font-size: 1.4em;
    }
    
    .date {
        font-size: 0.8em;
    }
    
    .stat-card {
        padding: 10px 12px;
        min-width: 90px;
        flex: 0 0 auto;
    }
    
    .stat-card i {
        font-size: 1.2em;
        margin-right: 10px;
    }
    
    .stat-number {
        font-size: 1.4em;
    }
    
    .stat-label {
        font-size: 0.75em;
    }
    
    .stats-cards {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .time-stats {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .time-stat {
        font-size: 0.85em;
        min-width: 80px;
    }
    
    .time-value {
        font-size: 1em;
    }
    
    .exit-btn {
        padding: 8px 12px;
        font-size: 0.8em;
    }
}

@media (max-width: 768px) {
    .header-right {
        display: none !important;
    }

    .stats-section-below-running {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        justify-content: center;
    }
    
    .stats-section-below-running .stat-card {
        width: 100%;
        justify-content: center;
    }
    
    .stats-section-below-running .stat-icon {
        width: 60px;
        height: 60px;
    }
}

/* Media query untuk mobile (480px ke bawah) */
@media (max-width: 480px) {
    .header {
        padding: 8px 12px;
        min-height: 55px;
    }
    
    .header-left {
        max-width: 100%; /* Ambil seluruh lebar untuk mobile */
        gap: 8px;
    }
    
    .logo-header {
        width: 55px;
        height: 55px;
    }
    
    .header-text {
        margin-left: 6px;
        max-width: calc(100% - 65px);
    }
    
    .header-left h1 {
        font-size: 1em;
    }
    
    .header-left p {
        font-size: 0.8em;
    }
    
    .header-left small {
        font-size: 0.7em;
    }
    

    
    /* Tampilkan mobile-header-stats hanya di mobile */
     .mobile-header-stats {
         display: flex !important;
         flex-direction: column;
         gap: 15px;
         padding: 15px;
         margin-top: 15px;
         background: rgba(255, 255, 255, 0.1);
         backdrop-filter: blur(15px);
         border-radius: 20px;
         border: 1px solid rgba(255, 255, 255, 0.2);
         box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
         overflow: hidden;
         position: relative;
         /* animation: sectionFloat 6s ease-in-out infinite; - DIHAPUS */
         transition: all 0.3s ease;
     }

     .mobile-header-stats::before {
         content: '';
         position: absolute;
         top: -50%;
         left: -50%;
         width: 200%;
         height: 200%;
         background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
         /* animation: shimmer 3s ease-in-out infinite; */
         pointer-events: none;
     }

     .mobile-header-stats:hover {
         transform: translateY(-2px);
         box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3);
         backdrop-filter: blur(20px);
     }
    
    .mobile-time-display {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 15px;
        border-radius: 12px;
        text-align: center;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
        border: 2px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
    }
    
    .mobile-time {
        font-size: 1.8em;
        font-weight: 800;
        color: white;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        letter-spacing: 1px;
        margin-bottom: 5px;
    }
    
    .mobile-date {
        color: rgba(255,255,255,0.9);
        font-size: 0.9em;
        font-weight: 500;
    }
    
    .mobile-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .mobile-stat-card {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        border-radius: 12px;
        color: white;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
    }
    
    .mobile-stat-card.blue {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    }
    
    .mobile-stat-card.orange {
        background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
    }
    
    .mobile-stat-card.pink {
        background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
    }
    
    .mobile-stat-card i {
        font-size: 1.3em;
        margin-right: 10px;
        flex-shrink: 0;
    }
    
    .mobile-stat-content {
        flex: 1;
        min-width: 0;
    }
    
    .mobile-stat-number {
        font-size: 1.4em;
        font-weight: bold;
        line-height: 1.2;
        margin-bottom: 2px;
    }
    
    .mobile-stat-label {
        font-size: 0.75em;
        opacity: 0.9;
        line-height: 1;
    }
    
    .mobile-time-stats {
        display: flex;
        gap: 12px;
        margin-top: 10px;
    }
    
    .mobile-time-stat {
        flex: 1;
        background: #ffffff;
        padding: 12px;
        border-radius: 10px;
        text-align: center;
        border: 2px solid #007bff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-time-stat span {
        display: block;
        font-size: 0.75em;
        color: #333333;
        margin-bottom: 6px;
        font-weight: 600;
    }
    
    .mobile-time-value {
        font-size: 1.1em;
        font-weight: bold;
        color: #007bff;
    }
    
    .mobile-exit-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 20px;
        background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-weight: 600;
        font-size: 0.9em;
        cursor: pointer;
        transition: all 0.3s ease;
        box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: 2px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        margin-top: 10px;
        width: 100%;
    }
    
    .mobile-exit-btn:hover {
        background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    }
    
    .mobile-exit-btn i {
        font-size: 1.1em;
    }
    
    .stats-section-below-running .stat-card {
        padding: 10px 15px;
    }
    
    .stats-section-below-running .stat-icon {
        width: 50px;
        height: 50px;
    }
    
    .stats-section-below-running .stat-number {
        font-size: 1.3em;
    }
    
    .stats-section-below-running .stat-label {
        font-size: 0.8em;
    }
    
    .stats-section-below-running .stat-detail {
        font-size: 0.7em;
    }
}

.header-left {
    display: flex;
    align-items: flex-start;
    gap: 10px; /* Kurangi dari 15px ke 10px */
    min-width: 0;
    overflow: hidden;
    max-width: 100%;
    flex-shrink: 1;
}

.header-logo {
    flex-shrink: 0;
}

.logo-header {
    width: 70px; /* Kembalikan ke ukuran besar dari 45px ke 70px */
    height: 70px; /* Kembalikan ke ukuran besar dari 45px ke 70px */
    object-fit: contain;
    border-radius: 12px; /* Kembalikan border radius ke ukuran besar */
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.logo-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    transform: rotate(45deg);
    animation: glass-shine 3s infinite;
    pointer-events: none;
    z-index: 1;
}

.logo-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 12px;
    pointer-events: none;
    z-index: 2;
}

@keyframes glass-shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.header-text {
    margin-left: 10px;
    min-width: 0;
    overflow: hidden;
    flex-grow: 1;
    flex-shrink: 1;
    max-width: calc(100% - 60px);
}

.header-left h1 {
    color: white;
    font-size: 1.5em; /* Kurangi dari 1.8em ke 1.5em */
    margin-bottom: 4px; /* Kurangi margin */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-left p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95em; /* Kurangi dari 1.1em ke 0.95em */
    margin-bottom: 2px; /* Kurangi margin */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    cursor: help; /* Menunjukkan bahwa ada tooltip */
}

.header-left small {
    color: rgba(255,255,255,0.8);
    font-size: 0.75em; /* Kurangi dari 0.85em ke 0.75em */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    max-width: 100%;
    cursor: help; /* Menunjukkan bahwa ada tooltip */
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Kurangi dari 20px ke 15px */
    flex-shrink: 0;
    flex-grow: 0;
    min-width: fit-content;
    margin-left: auto;
}

.time-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px; /* Kurangi dari 12px ke 10px */
    border-radius: 10px; /* Kurangi border radius dari 12px ke 10px */
    text-align: center;
    font-size: 0.9em; /* Kurangi dari 1em ke 0.9em */
    font-weight: bold;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 55px; /* Kurangi dari 65px ke 55px */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.time-display::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.time {
    font-size: 1.3em; /* Kurangi dari 1.5em ke 1.3em */
    font-weight: 800;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: 1px;
    font-family: 'Arial', sans-serif;
}

.date {
    color: rgba(255,255,255,0.9);
    font-size: 10px* Kurangi dari 0.8em ke 0.7em */
    font-weight: 500;
}

.stats-cards {
    display: flex;
    gap: 12px; /* Kurangi dari 15px ke 12px */
}

.stat-card {
    display: flex;
    align-items: center;
    padding: 12px 16px; /* Kurangi padding */
    border-radius: 8px; /* Kurangi border radius */
    color: white;
    min-width: 100px; /* Kurangi dari 120px ke 100px */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: cardShimmer 4s ease-in-out infinite;
    z-index: 1;
}

.stat-card:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(120, 219, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(-1px);
    }
    75% {
        transform: translateY(-3px);
    }
}

@keyframes cardShimmer {
    0% {
        left: -100%;
    }
    50% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.stat-card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-card.orange {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6b35 100%);
}

.stat-card.pink {
    background: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
}

.stat-card.blue {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    animation: none;
    position: relative;
    overflow: hidden;
}

.stat-card.blue::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: blueCardShine 4s ease-in-out infinite;
}

.stat-card.blue:hover {
    animation: blueCardPulse 1s ease-in-out infinite;
    transform: translateY(-5px) scale(1.05);
}

.stat-card i {
    font-size: 1.3em; /* Kurangi dari 1.5em ke 1.3em */
    margin-right: 12px; /* Kurangi margin */
}

.stat-number {
    font-size: 1.5em; /* Kurangi dari 1.8em ke 1.5em */
    font-weight: bold;
}

.stat-label {
    font-size: 0.75em; /* Kurangi dari 0.85em ke 0.75em */
    opacity: 0.9;
}

.time-stats {
    display: flex;
    gap: 15px;
}

/* Mobile Header Stats - Sembunyikan di desktop dan tablet */
.mobile-header-stats {
    display: none;
}

/* Exit Button Styles */
.exit-button-container {
    display: flex;
    align-items: center;
}

.exit-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.exit-btn:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.exit-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(220, 53, 69, 0.3);
}

.exit-btn i {
    font-size: 1.1em;
}

.exit-text {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.time-stat {
    text-align: center;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.time-stat span {
    display: block;
    font-size: 0.8em;
    color: #666;
    margin-bottom: 5px;
}

.time-value {
    font-size: 1.2em;
    font-weight: bold;
    color: #007bff;
}

/* Content Area */
.content-area {
    flex: 1;
    display: flex;
    padding: 10px 15px 25px 15px; /* Kurangi padding lebih lanjut */
    gap: 15px; /* Kurangi gap dari 20px ke 15px */
    overflow-y: visible;
    overflow-x: hidden;
    box-sizing: border-box;
    position: relative;
    background: transparent;
    min-height: 0;
}



.left-section {
    flex: 0 0 420px; /* Perbesar dari 320px ke 420px untuk mengakomodasi scanner yang lebih besar */
    display: flex;
    flex-direction: column;
    gap: 12px; /* Kurangi gap dari 15px ke 12px */
}

.right-section {
    flex: 1; /* Perlebar untuk mengisi sisa ruang */
    display: flex;
    flex-direction: column;
    gap: 12px; /* Kurangi gap dari 15px ke 12px */
}

/* Scanner Section */
.scanner-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px; /* Perbesar border radius dari 8px ke 15px */
    padding: 20px; /* Perbesar padding dari 8px ke 20px */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(120, 219, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
    /* animation: sectionFloat 6s ease-in-out infinite; - DIHAPUS */
    transition: all 0.4s ease;
}

.scanner-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    /* animation: shimmer 3s ease-in-out infinite; - DIHAPUS, HANYA HOVER */
    z-index: 1;
}

.scanner-section:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(120, 219, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(120, 219, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.scanner-section:hover::before {
    animation: shimmer 1s ease-in-out;
}

/* @keyframes sectionFloat - DIHAPUS */

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.scanner-header {
    margin-bottom: 20px; /* Perbesar dari 10px ke 20px */
}

.tab-buttons {
    display: inline-flex;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 5px;
    margin: 0 auto;
}

.tab-btn {
    flex: 1;
    padding: 12px 18px; /* Perbesar padding dari 8px 12px ke 12px 18px */
    border: none;
    background: transparent;
    border-radius: 18px; /* Perbesar border radius dari 12px ke 18px */
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 90px; /* Perbesar dari 70px ke 90px */
    font-size: 14px; /* Perbesar dari 12px ke 14px */
}

.tab-btn.active {
    background: #17a2b8;
    color: white;
}

.scanner-camera-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px; /* Perbesar dari 10px ke 20px */
}

#scanner-container {
    width: 350px; /* Perbesar dari 280px ke 350px */
    height: 350px; /* Perbesar dari 280px ke 350px */
    aspect-ratio: 1;
    border: 3px solid #17a2b8; /* Perbesar border dari 2px ke 3px */
    border-radius: 18px; /* Perbesar border radius dari 12px ke 18px */
    margin: 0 auto 20px; /* Perbesar margin dari 10px ke 20px */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 30px rgba(23, 162, 184, 0.4);
}

/* Efek memindai pada scanner - DIHAPUS */

/* Animasi scan hijau - DIHAPUS */

#scanner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    /* Membalik kamera secara horizontal agar tidak terbalik */
    transform: scaleX(-1);
}

/* Styling untuk QR Scanner overlay */
.qr-scanner {
    width: 100% !important;
    height: 100% !important;
}

.qr-scanner video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 16px !important;
}

/* Overlay untuk area scan */
.scan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 250px;
    border: 3px solid #00ff00;
    border-radius: 15px;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 10;
}

.scan-overlay::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #00ff00;
    border-radius: 15px;
    animation: scanPulse 2s infinite;
}

@keyframes scanPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

.scanner-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; /* Kurangi dari 12px ke 8px untuk menghemat ruang */
    margin-bottom: 10px; /* Kurangi dari 15px ke 10px untuk menghemat ruang */
}

.scan-button {
    padding: 15px 30px; /* Perbesar padding dari 12px 24px ke 15px 30px */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px; /* Perbesar border radius dari 8px ke 12px */
    font-size: 16px; /* Perbesar dari 14px ke 16px */
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 220px; /* Perbesar dari 180px ke 220px */
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.scan-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.scan-button:active {
    transform: translateY(0);
}

.camera-status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: #e8f5e8;
    border: 1px solid #28a745;
    border-radius: 20px;
    color: #28a745;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.camera-status.error {
    background: #ffeaea;
    border-color: #dc3545;
    color: #dc3545;
}

.camera-status.scanning {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
    animation: pulse 2s infinite;
}

.camera-status.processing {
    background: rgba(255, 193, 7, 0.2);
    border: 1px solid rgba(255, 193, 7, 0.5);
    color: #856404;
}

#camera-status.ready {
    background: rgba(23, 162, 184, 0.2);
    border: 1px solid rgba(23, 162, 184, 0.5);
    color: #17a2b8;
}

#camera-status.success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
}

.camera-status.success {
    background: #d4edda;
    border-color: #28a745;
    color: #155724;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Scanner Mode Styles */
.scanner-modes {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.scanner-mode {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 12px; /* Perbesar dari 6px ke 12px */
    padding: 16px; /* Perbesar dari 8px ke 16px */
    border-radius: 12px; /* Perbesar border radius dari 8px ke 12px */
    background: #ffffff; /* Ubah ke putih solid */
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    min-width: 420px; /* Perbesar lagi dari 350px ke 420px */
    text-align: center;
    backdrop-filter: none; /* Hilangkan blur effect */
    border: 2px solid rgba(23, 162, 184, 0.3);
}

.scanner-mode.active {
    display: flex;
}

.scanner-mode h3 {
    margin: 0 0 6px 0; /* Kurangi margin dari 10px ke 6px */
    color: #17a2b8;
    font-size: 1.1em; /* Kurangi dari 1.3em ke 1.1em */
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.scanner-gif {
    width: 100%;
    max-width: 400px; /* Perbesar lagi dari 320px ke 400px */
    height: 280px; /* Perbesar lagi dari 220px ke 280px */
    object-fit: cover;
    border-radius: 0; /* Hilangkan border radius */
    background: transparent;
    padding: 0;
    box-shadow: none; /* Hilangkan box shadow */
    border: none; /* Hilangkan border */
    transition: all 0.3s ease;
}

.scanner-gif:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

/* Input Styles for Barcode and RFID */
.scanner-input {
    width: 100%;
    max-width: 400px; /* Perbesar lagi dari 320px ke 400px */
    padding: 12px 16px; /* Perbesar padding dari 8px 12px ke 12px 16px */
    border: 2px solid #e2e8f0;
    border-radius: 10px; /* Perbesar border radius dari 8px ke 10px */
    font-size: 14px; /* Perbesar dari 12px ke 14px */
    text-align: center;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
    font-weight: 500;
}

.scanner-input:focus {
    border-color: #17a2b8;
    box-shadow: 0 0 0 4px rgba(23, 162, 184, 0.15), 0 4px 12px rgba(0, 0, 0, 0.15);
    background: #f8fdff;
    transform: translateY(-1px);
}

/* Prevent manual input styling - Anti-cheat measures */
.scanner-input[readonly] {
    cursor: default;
    caret-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
    background-color: #f8f9fa !important;
    color: #666 !important;
}

.scanner-input[readonly]:focus {
    border-color: #28a745 !important;
    background-color: #f8f9fa !important;
    box-shadow: 0 0 0 3px rgba(40,167,69,0.25) !important;
    transform: none !important;
}

.scanner-input::placeholder {
    color: #a0aec0;
    font-style: italic;
    font-weight: 400;
}

/* Scanner Status */
.scanner-status {
    display: flex;
    align-items: center;
    gap: 6px; /* Kurangi gap dari 10px ke 6px */
    padding: 6px 12px; /* Kurangi padding dari 10px 18px ke 6px 12px */
    border-radius: 20px; /* Kurangi border radius dari 25px ke 20px */
    font-size: 12px; /* Kurangi dari 14px ke 12px */
    font-weight: 600;
    margin-top: 10px; /* Kurangi margin dari 15px ke 10px */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.scanner-status.ready {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    border: 2px solid #68d391;
}

.scanner-status.processing {
    background: linear-gradient(135deg, #fef5e7 0%, #f6ad55 100%);
    color: #c05621;
    border: 2px solid #ed8936;
    animation: pulse 2s infinite;
}

.scanner-status.error {
    background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%);
    color: #c53030;
    border: 2px solid #f56565;
}

.scanner-status.scanning {
    background: linear-gradient(135deg, #bee3f8 0%, #63b3ed 100%);
    color: #2c5282;
    border: 2px solid #4299e1;
    animation: pulse 2s infinite;
}

.scanner-status i {
    font-size: 14px; /* Kurangi dari 16px ke 14px */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Input Instructions */
.input-instructions {
    font-size: 12px; /* Kurangi dari 14px ke 12px */
    color: #718096;
    margin-top: 8px; /* Kurangi margin dari 12px ke 8px */
    line-height: 1.4; /* Kurangi line height dari 1.5 ke 1.4 */
    text-align: center;
    background: rgba(113, 128, 150, 0.1);
    padding: 8px 12px; /* Kurangi padding dari 12px 16px ke 8px 12px */
    border-radius: 6px; /* Kurangi border radius dari 8px ke 6px */
    border-left: 3px solid #17a2b8; /* Kurangi border dari 4px ke 3px */
}

.input-instructions strong {
    color: #17a2b8;
    font-weight: 600;
}

/* Mode Info Styling - Tampilan menarik untuk Mode Aktif */
.mode-info {
    margin-top: 10px; /* Kurangi dari 15px ke 10px */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.current-mode {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px; /* Kurangi padding dari 10px 16px ke 6px 12px */
    border-radius: 16px; /* Kurangi border radius dari 20px ke 16px */
    font-size: 10px; /* Kurangi dari 12px ke 10px */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px; /* Kurangi gap dari 6px ke 4px */
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
    animation: modeInfoPulse 2s ease-in-out infinite;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.current-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    /* animation: modeInfoShine 3s ease-in-out infinite; */
}

.current-mode i {
    font-size: 16px;
    animation: modeIconSpin 4s linear infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

@keyframes modeInfoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    }
}

@keyframes modeInfoShine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

@keyframes modeIconSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.current-mode:hover {
    animation: modeInfoPulse 0.8s ease-in-out infinite;
    transform: scale(1.08);
    cursor: pointer;
}

/* Device Info Styling */
.device-info {
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em !important;
    font-weight: 500;
    display: flex !important;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
    margin-top: 0 !important;
}

.device-info i {
    font-size: 12px;
    color: #667eea;
}

/* Mode-specific styling */
.scanner-mode.barcode-mode {
    border-color: rgba(255, 193, 7, 0.3);
}

.scanner-mode.barcode-mode h3 {
    color: #f39c12;
}

.scanner-mode.rfid-mode {
    border-color: rgba(156, 39, 176, 0.3);
}

.scanner-mode.rfid-mode h3 {
    color: #9c27b0;
}

/* Responsive adjustments for scanner modes */
@media (max-width: 768px) {
    .scanner-mode {
        min-width: 360px;
        padding: 14px;
    }
    
    .scanner-gif {
        width: 100%;
        max-width: 340px;
        height: 240px;
        object-fit: cover;
    }
    
    .scanner-input {
        max-width: 340px;
        padding: 12px 16px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .scanner-mode {
        min-width: 300px;
        padding: 12px;
    }
    
    .scanner-gif {
        width: 100%;
        max-width: 280px;
        height: 200px;
        object-fit: cover;
    }
    
    .scanner-input {
        max-width: 280px;
        padding: 10px 14px;
        font-size: 14px;
    }
    
    .scanner-status {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* Footer */


/* Statistics Section */
.stats-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card-large {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid transparent;
}

.stat-card-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.stat-card-large.green {
    border-left-color: #56ab2f;
}

.stat-card-large.red {
    border-left-color: #ff416c;
}

.stat-card-large.orange {
    border-left-color: #f7971e;
}

.stat-card-large i {
    font-size: 2em;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.stat-card-large.green i {
    background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

.stat-card-large.red i {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.stat-card-large.orange i {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.stat-card-large .stat-content {
    flex: 1;
}

.stat-card-large .stat-number {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2c3e50;
}

.stat-card-large .stat-label {
    font-size: 1em;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 3px;
}

.stat-card-large .stat-detail {
    font-size: 0.8em;
    color: #7f8c8d;
    font-weight: 500;
}

/* Bottom Statistics */
.percentage {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.gender {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    color: white;
}

.gender-male {
    background: linear-gradient(135deg, #007bff, #0056b3);
}

.gender-female {
    background: linear-gradient(135deg, #e91e63, #c2185b);
}

.stat-card-small {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 5px solid transparent;
}

.stat-card-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.stat-card-small.blue {
    border-left-color: #667eea;
}

.stat-card-small.teal {
    border-left-color: #06beb6;
}

.stat-card-small.red {
    border-left-color: #ff416c;
}

.stat-card-small i {
    font-size: 2em;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.stat-card-small.blue i {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-card-small.teal i {
    background: linear-gradient(135deg, #06beb6 0%, #48b1bf 100%);
}

.stat-card-small.red i {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
}

.stat-card-small .stat-content {
    flex: 1;
}

.stat-card-small .stat-number {
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 5px;
    color: #2c3e50;
}

.stat-card-small .stat-label {
    font-size: 1em;
    font-weight: 600;
    color: #34495e;
    margin-bottom: 3px;
}

.stat-card-small .stat-detail {
    font-size: 0.8em;
    color: #7f8c8d;
    font-weight: 500;
}

/* Data Table Section */
.data-table-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px; /* Kurangi dari 15px ke 12px */
    padding: 15px; /* Kurangi dari 25px ke 15px */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(120, 219, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-bottom: 15px; /* Kurangi dari 20px ke 15px */
    height: fit-content;
    position: relative;
    z-index: 2;
    overflow: hidden;
    /* animation: sectionFloat 6s ease-in-out infinite; - DIHAPUS */
    transition: all 0.4s ease;
}

.data-table-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    /* animation: shimmer 3s ease-in-out infinite; - DIHAPUS, HANYA HOVER */
    z-index: 1;
}

.data-table-section:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(120, 219, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(120, 219, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.data-table-section:hover::before {
    animation: shimmer 1s ease-in-out;
}

.table-header {
    margin-bottom: 15px; /* Kurangi dari 20px ke 15px */
    text-align: center;
    padding: 8px; /* Kurangi dari 12px ke 8px */
    background: linear-gradient(135deg, #0f0f23, #1a1a3a, #2d1b69, #1e3c72, #2a5298);
    border: 1px solid rgba(120, 219, 255, 0.3);
    border-radius: 8px; /* Kurangi dari 10px ke 8px */
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(120, 219, 255, 0.2);
}

.table-title {
    text-align: center;
    margin-bottom: 15px; /* Kurangi dari 20px ke 15px */
    padding: 8px; /* Kurangi dari 12px ke 8px */
    background: linear-gradient(135deg, #0f0f23, #1a1a3a, #2d1b69, #1e3c72, #2a5298);
    border: 1px solid rgba(120, 219, 255, 0.3);
    border-radius: 8px; /* Kurangi dari 10px ke 8px */
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    box-shadow: 0 4px 15px rgba(120, 219, 255, 0.2);
}

.table-title h2 {
    margin: 0;
    font-size: 1em; /* Kurangi dari 1.2em ke 1em */
    font-weight: bold;
    letter-spacing: 0.8px; /* Kurangi dari 1px ke 0.8px */
    text-transform: uppercase;
}

/* Table Container */
.table-container {
    overflow-x: auto;
    margin-bottom: 15px; /* Kurangi dari 20px ke 15px */
    border-radius: 8px; /* Kurangi dari 10px ke 8px */
    box-shadow: 0 4px 20px rgba(120, 219, 255, 0.15);
    border: 1px solid rgba(120, 219, 255, 0.2);
    background: rgba(255, 255, 255, 0.95); /* Berikan background putih pada tabel */
    backdrop-filter: blur(10px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    min-width: 800px;
    background: white; /* Pastikan tabel memiliki background putih */
}

.data-table th,
.data-table td {
    padding: 10px 8px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    white-space: nowrap;
    font-size: 0.85em;
}

.data-table th:nth-child(2),
.data-table td:nth-child(2) {
    text-align: left;
}

.data-table th {
    background: linear-gradient(135deg, #0f0f23, #1a1a3a, #2d1b69, #1e3c72, #2a5298);
    color: white;
    font-weight: 600;
    font-size: 0.75em; /* Kurangi dari 0.85em ke 0.75em */
    text-transform: uppercase;
    letter-spacing: 0.3px; /* Kurangi dari 0.5px ke 0.3px */
    border: 1px solid rgba(120, 219, 255, 0.3);
    box-shadow: 0 2px 8px rgba(120, 219, 255, 0.2);
}

.data-table tbody tr {
    background: white; /* Background putih untuk setiap baris */
}

.data-table tbody tr:hover {
    background: #e3f2fd;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

.status {
    padding: 4px 8px; /* Kurangi dari 6px 12px ke 4px 8px */
    border-radius: 12px; /* Kurangi dari 15px ke 12px */
    font-size: 0.7em; /* Kurangi dari 0.8em ke 0.7em */
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    min-width: 50px; /* Kurangi dari 60px ke 50px */
    text-align: center;
}

.status.hadir {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.status.terlambat {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: #333;
}

.status.tidak-hadir {
    background: linear-gradient(135deg, #dc3545 0%, #e74c3c 100%);
    color: white;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px; /* Kurangi dari 10px ke 6px */
    margin-top: 15px; /* Kurangi dari 20px ke 15px */
    flex-wrap: wrap;
}

.pagination button {
    padding: 6px 10px; /* Kurangi dari 8px 12px ke 6px 10px */
    border: 2px solid #17a2b8;
    background: white;
    color: #17a2b8;
    border-radius: 6px; /* Kurangi dari 8px ke 6px */
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 35px; /* Kurangi dari 40px ke 35px */
    font-size: 12px; /* Tambahkan ukuran font yang lebih kecil */
}

.pagination button:hover {
    background: #17a2b8;
    color: white;
    transform: translateY(-2px);
}

.pagination button.active {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination .page-info {
    color: #666;
    font-weight: 500;
    margin: 0 10px;
}

/* Schedule Section */
.schedule-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(120, 219, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    /* animation: sectionFloat 6s ease-in-out infinite; - DIHAPUS */
    transition: all 0.4s ease;
}

.schedule-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    /* animation: shimmer 3s ease-in-out infinite; - DIHAPUS, HANYA HOVER */
    z-index: 1;
}

.schedule-section:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(120, 219, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(120, 219, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.schedule-section:hover::before {
    animation: shimmer 1s ease-in-out;
}

.schedule-title {
    text-align: center;
    margin-bottom: 20px;
    padding: 12px;
    background: linear-gradient(135deg, #0f0f23, #1a1a3a, #2d1b69, #1e3c72, #2a5298);
    border-radius: 10px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid rgba(120, 219, 255, 0.3);
    box-shadow: 0 4px 15px rgba(120, 219, 255, 0.2);
}

.schedule-title h2 {
    margin: 0;
    font-size: 24px* Samakan dengan table-title h2 */
    font-weight: bold;
    letter-spacing: 0.8px; /* Samakan dengan table-title h2 */
}

.schedule-slider {
    position: relative;
    overflow: hidden;
}

.schedule-container {
    display: flex;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 15px;
    opacity: 1;
}

.schedule-item {
    min-width: calc(25% - 12px);
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 15px;
    border-left: 4px solid #4facfe;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 1;
    transform: translateY(0);
}

.schedule-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 172, 254, 0.2);
    border-left-color: #00f2fe;
}

.schedule-time {
    font-weight: bold;
    color: #4facfe;
    font-size: 0.85em;
    text-align: center;
    background: white;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 10px;
    display: block;
}

.schedule-subject {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1em;
    margin-bottom: 8px;
    text-align: center;
}

.schedule-teacher {
    color: #6c757d;
    font-size: 0.85em;
    text-align: center;
    font-style: italic;
}

.schedule-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.schedule-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.schedule-dot.active {
    background: #4facfe;
    transform: scale(1.2);
}

.schedule-dot:hover {
    background: #00f2fe;
}

/* Schedule Navigation Dots */
#scheduleDots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

#scheduleDots .schedule-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(79, 172, 254, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#scheduleDots .schedule-dot:hover {
    background: rgba(79, 172, 254, 0.5);
    transform: scale(1.2);
}

#scheduleDots .schedule-dot.active {
    background: #4facfe;
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
}

/* Schedule Navigation Container */
.schedule-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Schedule Navigation Buttons */
.schedule-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(79, 172, 254, 0.3);
    font-size: 16px;
}

.schedule-nav-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.4);
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
}

.schedule-nav-btn:active {
    transform: translateY(0) scale(1.05);
}

.schedule-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.schedule-nav-btn:disabled:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(79, 172, 254, 0.3);
}



/* Responsive Design */
@media (max-width: 1200px) {
    .content-area {
        flex-direction: column;
        padding: 12px 15px 25px 15px; /* Kurangi padding dari 15px 20px 30px 20px ke 12px 15px 25px 15px */
    }
    
    .stats-section {
        flex-direction: column;
        gap: 8px; /* Kurangi dari 10px ke 8px */
    }
    
    .bottom-stats {
        flex-direction: column;
        gap: 8px; /* Kurangi dari 10px ke 8px */
    }
    
    .table-container {
        margin: 0 -8px; /* Kurangi dari -10px ke -8px */
    }
    
    .data-table,
    .attendance-table {
        min-width: 650px; /* Kurangi dari 700px ke 650px */
        font-size: 0.75em; /* Kurangi dari 0.8em ke 0.75em */
    }
    
    .data-table th,
    .data-table td,
    .attendance-table th,
    .attendance-table td {
        padding: 8px 6px; /* Kurangi dari 10px 8px ke 8px 6px */
    }
    
    .pagination {
        gap: 4px; /* Kurangi dari 5px ke 4px */
    }
    
    .pagination button {
        padding: 5px 8px; /* Kurangi dari 6px 10px ke 5px 8px */
        font-size: 14px;
    }
    
    .header {
        padding: 15px 20px;
    }
    
    .header-left h1 {
        font-size: 1.5em;
    }
    
    .time {
        font-size: 2em;
    }
    
    .running-text span {
        font-size: 14px;
    }
    

}

/* Media query untuk tablet kecil dan mobile besar (768px ke bawah) */
@media (max-width: 768px) {
    .header {
        padding: 10px 15px;
        min-height: 60px;
        flex-wrap: nowrap;
    }
    
    .header-left {
        max-width: 70%;
        gap: 10px;
    }
    
    .logo-header {
        width: 70px;
        height: 70px;
    }
    
    .header-text {
        margin-left: 8px;
        max-width: calc(100% - 60px);
    }
    
    .header-left h1 {
        font-size: 1.3em;
    }
    
    .header-left p {
        font-size: 0.95em;
    }
    
    .header-left small {
        font-size: 0.8em;
    }
    
    .header-right {
        gap: 10px;
        max-width: 25%;
        flex-wrap: wrap;
    }
    
    /* Perkecil elemen header-right untuk tablet kecil */
    .time-display {
        padding: 8px 10px;
        min-height: 50px;
        font-size: 0.85em;
    }
    
    .time {
        font-size: 1.3em;
    }
    
    .date {
        font-size: 0.75em;
    }
    
    .stat-card {
        padding: 8px 10px;
        min-width: 80px;
    }
    
    .stat-card i {
        font-size: 1.1em;
        margin-right: 8px;
    }
    
    .stat-number {
        font-size: 1.2em;
    }
    
    .stat-label {
        font-size: 0.7em;
    }
    
    .exit-btn {
        padding: 6px 10px;
        font-size: 0.75em;
    }
    
    .stats-cards {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .stat-card {
        min-width: 100px;
        flex: 1;
    }
    
    .time-stats {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
    }
    
    /* Exit Button Mobile Styles */
    .exit-button-container {
        width: 100%;
        justify-content: center;
    }
    
    .exit-btn {
        padding: 10px 16px;
        font-size: 0.85em;
        width: auto;
        min-width: 120px;
    }
    
    .exit-text {
        display: inline;
    }
    
    .content-area {
        padding: 10px 15px 25px 15px; /* Tambah padding-bottom untuk mencegah scanner terpotong */
        gap: 20px;
        flex-direction: column;
    }
    
    .main-content {
        height: auto;
        min-height: 100vh;
    }
    
    .left-section {
        flex: 1 0 auto;
        width: 100%;
    }
    
    .right-section {
        flex: 1 0 auto;
        width: 100%;
    }
    
    .scanner-section,
    .data-table-section,
    .attendance-section {
        padding: 15px;
    }
    
    .scanner-camera-container {
        margin-bottom: 20px;
        width: 100%;
    }
    
    /* Scanner container untuk mobile */
    #scanner-container {
        width: calc(100% - 40px);
        max-width: 350px;
        height: calc(100% - 40px);
        aspect-ratio: 1;
        max-height: 350px;
        margin: 0 auto 20px;
    }
    
    /* Efek scanning sudah responsif dengan persentase */
    
    .scan-button {
        min-width: 150px;
    }
    
    /* Schedule Navigation untuk Mobile */
    .schedule-navigation {
        gap: 15px;
    }
    
    .schedule-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    #scheduleDots {
        gap: 8px;
    }
    
    #scheduleDots .schedule-dot {
         width: 10px;
         height: 10px;
     }
     
     .scan-button {
         padding: 12px 20px;
         font-size: 14px;
    }
    
    .scanner-controls {
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .camera-status {
        font-size: 12px;
        padding: 6px 12px;
    }
    

    
    /* Perbaiki tabel agar tidak melebihi container */
    .data-table-section {
        overflow: hidden;
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .data-table {
        font-size: 0.75em;
        min-width: 100%;
        width: 100%;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px 4px;
        font-size: 0.75em;
        white-space: nowrap;
    }
    
    .attendance-table {
        font-size: 0.75em;
        min-width: 100%;
        width: 100%;
    }
    
    .attendance-table th,
    .attendance-table td {
        padding: 6px 4px;
        font-size: 0.75em;
        white-space: nowrap;
    }
    
    .table-title {
        font-size: 1.1em;
        padding: 10px 0;
    }
    
    .schedule-title h2 {
        font-size: 1.1em;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* Jadwal 1 per halaman untuk mobile */
    .schedule-item {
        min-width: 100%;
        margin-bottom: 0;
        width: 100%;
    }
    
    .schedule-container {
        flex-direction: row;
        gap: 0;
        width: 100%;
    }
    
    .time-display {
        font-size: 1em;
        padding: 12px;
        min-height: 50px;
    }
}

@media (max-width: 480px) {
    .header-left h1 {
        font-size: 1.3em;
    }
    
    .header-left p {
        font-size: 1em;
    }
    
    .header-left small {
        font-size: 0.8em;
    }
    
    .time {
        font-size: 1.8em;
    }
    
    .stat-card {
        padding: 10px 15px;
    }
    
    .stat-number {
        font-size: 1.5em;
    }
    
    /* Exit Button Small Mobile Styles */
    .exit-btn {
        padding: 8px 12px;
        font-size: 0.8em;
        min-width: 100px;
    }
    
    .exit-btn i {
        font-size: 1em;
    }
    
    .exit-text {
        font-size: 0.8em;
    }
    
    .content-area {
        padding: 10px 10px 20px 10px; /* Tambah padding-bottom untuk mencegah scanner terpotong */
        gap: 15px;
    }
    
    .scanner-section,
    .data-table-section,
    .attendance-section {
        padding: 12px;
    }
    
    /* Scanner container untuk mobile kecil */
    #scanner-container {
        width: calc(100% - 30px);
        max-width: 280px;
        height: calc(100% - 30px);
        aspect-ratio: 1;
        max-height: 280px;
        margin: 0 auto 15px;
    }
    
    /* Efek scanning sudah responsif dengan persentase */
    
    .scan-button {
        min-width: 120px;
        padding: 10px 15px;
        font-size: 13px;
    }
    
    .scanner-controls {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .camera-status {
        font-size: 11px;
        padding: 5px 10px;
    }
    

    
    .running-text span {
        font-size: 12px;
    }
    

    
    /* Perbaiki tabel untuk mobile kecil */
    .data-table-section {
        overflow: hidden;
        width: 100%;
    }
    
    .table-container {
        overflow-x: auto;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    
    .data-table,
    .attendance-table {
        min-width: 100%;
        width: 100%;
        font-size: 0.9em; /* Diperbesar dari 0.7em ke 0.9em untuk mobile */
    }
    
    .data-table th,
    .data-table td,
    .attendance-table th,
    .attendance-table td {
        padding: 6px 4px; /* Diperbesar padding dari 4px 2px ke 6px 4px */
        font-size: 0.9em; /* Diperbesar dari 0.7em ke 0.9em untuk mobile */
        white-space: nowrap;
    }
    
    .pagination {
        gap: 5px; /* Diperbesar dari 3px ke 5px */
        margin-top: 15px;
    }
    
    .pagination button {
        padding: 6px 10px; /* Diperbesar dari 5px 8px ke 6px 10px */
        font-size: 14px; /* Diperbesar dari 12px ke 14px untuk mobile */
        min-width: 40px; /* Diperbesar dari 35px ke 40px */
    }
    
    .pagination .page-info {
        font-size: 14px; /* Diperbesar dari 12px ke 14px untuk mobile */
        margin: 0 8px; /* Diperbesar dari 0 5px ke 0 8px */
    }
    
    .table-title {
        font-size: 1em;
        padding: 8px 0;
    }
    
    .stat-card-large .stat-number {
        font-size: 2em;
    }
    
    .stat-card-small .stat-number {
        font-size: 1.5em;
    }
    
    .schedule-section {
        padding: 12px;
    }
    
    .schedule-title h2 {
        font-size: 1em;
    }
    
    /* Jadwal 1 per halaman untuk mobile kecil */
    .schedule-item {
        min-width: 100%;
        padding: 10px;
        width: 100%;
        margin-bottom: 0;
    }
    
    .schedule-container {
        flex-direction: row;
        gap: 0;
        width: 100%;
    }
    
    .schedule-time {
        font-size: 0.75em;
        padding: 4px 6px;
    }
    
    .schedule-subject {
        font-size: 0.85em;
    }
    
    .schedule-teacher {
        font-size: 0.75em;
    }
    
    .time-display {
        font-size: 0.9em;
        padding: 10px;
        min-height: 45px;
        letter-spacing: 0.5px;
    }
    
    .time {
        font-size: 1.8em;
    }
}

/* Status Badge Styles */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    min-width: 60px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-hadir {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-terlambat {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.status-alpha {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.status-alpa {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.status-izin {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.status-sakit {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.status-belum {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.status-tepat-waktu {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-belum-absen {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

.status-sudah-pulang {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.status-belum-pulang {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

/* Hover effects for status badges */
.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

/* Schedule Slider Styles */
.schedule-slider-container {
    position: relative;
    overflow: hidden;
}

.schedule-slider {
    position: relative;
    width: 100%;
    height: auto;
}

.schedule-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.schedule-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
}

.schedule-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.indicator.active {
    background: #000;
    transform: scale(1.2);
    border: 2px solid #333;
}

/* Pagination Styles */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 40px;
}

.pagination button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.pagination button.active {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    transform: scale(1.1);
}

.pagination .page-info {
    font-size: 14px;
    color: #666;
    margin: 0 10px;
    font-weight: 500;
}

/* CSS untuk menyembunyikan kolom berdasarkan tab aktif */
/* Default pada tab MASUK: tampilkan kolom masuk, sembunyikan kolom pulang */
.jam-pulang-col,
.status-pulang-col {
    display: none;
}

.jam-masuk-col,
.status-masuk-col {
    display: table-cell;
}

/* Pada tab PULANG: tampilkan kolom pulang, sembunyikan kolom masuk */
body.tab-pulang .jam-pulang-col,
body.tab-pulang .status-pulang-col {
    display: table-cell;
}

body.tab-pulang .jam-masuk-col,
body.tab-pulang .status-masuk-col {
    display: none;
}

/* CSS untuk stat-card yang bisa diklik */
.clickable-stat {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 5;
}

.clickable-stat:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.clickable-stat:hover .stat-detail {
    color: #fff;
    font-weight: 600;
}

.clickable-stat:active {
    transform: translateY(-2px) scale(0.98);
}

/* Hapus efek glass shimmer pada clickable-stat */
/* .clickable-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.clickable-stat:hover::before {
    left: 100%;
} */

/* CSS untuk popup detail siswa */
.student-detail-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.student-detail-popup.show {
    opacity: 1;
    visibility: visible;
}

.student-detail-popup.hide {
    opacity: 0;
    visibility: hidden;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.student-detail-popup .popup-content {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.7);
    transition: transform 0.3s ease;
}

.student-detail-popup.show .popup-content {
    transform: scale(1);
}

.popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.popup-body {
    padding: 0;
    flex: 1;
    overflow: hidden;
}

.student-table-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 0 0 15px 15px;
}

.student-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.student-detail-table thead {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.student-detail-table th,
.student-detail-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.student-detail-table th {
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.student-detail-table tbody tr {
    transition: all 0.3s ease;
}

.student-detail-table tbody tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f4fd 100%);
    transform: scale(1.01);
}

.student-detail-table tbody tr:nth-child(even) {
    background: #f8f9fa;
}

.student-detail-table tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #f0f8ff 0%, #e0f0ff 100%);
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 30px !important;
}

.loading-spinner {
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner i {
    font-size: 30px;
    margin-bottom: 15px;
    color: #667eea;
}

.loading-spinner p {
    margin: 0;
    font-size: 16px;
}

/* CSS untuk popup konfirmasi perpindahan tab */
.tab-switch-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tab-switch-popup.show {
    opacity: 1;
    visibility: visible;
}

.tab-switch-popup.hide {
    opacity: 0;
    visibility: hidden;
}

.tab-switch-popup .popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.tab-switch-popup .popup-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.7) translateY(50px);
    transition: transform 0.3s ease;
}

.tab-switch-popup.show .popup-content {
    transform: scale(1) translateY(0);
}

.tab-switch-popup .popup-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    padding: 25px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.tab-switch-popup .popup-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.tab-switch-popup .popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tab-switch-popup .popup-body {
    padding: 30px 25px;
}

.confirmation-message p {
    margin: 0 0 15px 0;
    color: #333;
    line-height: 1.6;
}

.confirmation-message p:first-child {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 20px;
}

.confirmation-message ul {
    margin: 15px 0;
    padding-left: 20px;
    color: #555;
}

.confirmation-message li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.warning-text {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    color: #856404;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.warning-text i {
    color: #f39c12;
    font-size: 18px;
}

.tab-switch-popup .popup-footer {
    padding: 20px 25px 25px;
    display: flex;
    gap: 15px;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
}

.tab-switch-popup .btn-cancel,
.tab-switch-popup .btn-confirm {
    padding: 12px 25px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    justify-content: center;
}

.tab-switch-popup .btn-cancel {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%);
    color: white;
}

.tab-switch-popup .btn-cancel:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #95a5a6 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(127, 140, 141, 0.4);
}

.tab-switch-popup .btn-confirm {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    color: white;
}

.tab-switch-popup .btn-confirm:hover {
    background: linear-gradient(135deg, #00a085 0%, #00b894 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.4);
}

.tab-switch-popup .btn-cancel:active,
.tab-switch-popup .btn-confirm:active {
    transform: translateY(0);
}

/* CSS untuk Attendance Popup */
.attendance-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    animation: popupSlideIn 0.3s ease-out forwards;
}

.attendance-popup.success {
    --popup-color: #00b894;
    --popup-bg: linear-gradient(135deg, #00b894 0%, #00a085 100%);
    --popup-shadow: rgba(0, 184, 148, 0.3);
}

.attendance-popup.error {
    --popup-color: #e74c3c;
    --popup-bg: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --popup-shadow: rgba(231, 76, 60, 0.3);
}

.attendance-popup .popup-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px var(--popup-shadow, rgba(0, 0, 0, 0.3));
    text-align: center;
    min-width: 350px;
    max-width: 500px;
    position: relative;
    overflow: hidden;
}

.attendance-popup .popup-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--popup-bg);
}

.attendance-popup .popup-icon {
    font-size: 60px;
    color: var(--popup-color);
    margin-bottom: 20px;
    /* animation: iconBounce 0.6s ease-out 0.2s both; - DIHAPUS */
}

.attendance-popup .popup-message {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.4;
}

.attendance-popup .popup-details {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #dee2e6;
}

.attendance-popup .siswa-info {
    text-align: left;
    color: #495057;
    line-height: 1.6;
    font-size: 14px;
}

.attendance-popup .siswa-info strong {
    color: #2c3e50;
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}

.attendance-popup .popup-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.attendance-popup .popup-close-btn:hover {
    background: rgba(108, 117, 125, 0.1);
    color: #495057;
    transform: rotate(90deg);
}

.attendance-popup .popup-actions {
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.attendance-popup .popup-ok-btn {
    background: var(--popup-bg);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--popup-shadow);
}

.attendance-popup .popup-ok-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--popup-shadow);
}

.attendance-popup .popup-ok-btn:active {
    transform: translateY(0);
}

/* Animasi untuk popup */
@keyframes popupSlideIn {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -50%) scale(0.7) translateY(30px);
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
}

@keyframes popupSlideOut {
    0% {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, -50%) scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, -50%) scale(0.7) translateY(-30px);
    }
}

/* @keyframes iconBounce - DIHAPUS */

/* Responsive untuk popup */
@media (max-width: 768px) {
    .attendance-popup .popup-content {
        min-width: 300px;
        max-width: 90vw;
        padding: 25px 20px;
        margin: 0 10px;
    }
    
    .attendance-popup .popup-icon {
        font-size: 50px;
        margin-bottom: 15px;
    }
    
    .attendance-popup .popup-message {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .attendance-popup .popup-details {
        padding: 15px;
        margin-top: 15px;
    }
    
    .popup-overlay {
        padding: 10px;
    }
    
    .student-detail-popup .popup-content {
        max-width: 100%;
        max-height: 90vh;
    }
    
    .popup-header {
        padding: 15px 20px;
    }
    
    .popup-header h3 {
        font-size: 16px;
    }
    
    .student-detail-table th,
    .student-detail-table td {
        padding: 8px 10px;
        font-size: 12px;
    }
    
    .student-table-container {
        max-height: 300px;
    }
    
    /* Responsive untuk popup konfirmasi tab */
    .tab-switch-popup .popup-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .tab-switch-popup .popup-header {
        padding: 20px 15px;
    }
    
    .tab-switch-popup .popup-header h3 {
        font-size: 18px;
    }
    
    .tab-switch-popup .popup-body {
        padding: 20px 15px;
    }
    
    .tab-switch-popup .popup-footer {
        padding: 15px;
        flex-direction: column;
    }
    
    .tab-switch-popup .btn-cancel,
    .tab-switch-popup .btn-confirm {
        width: 100%;
        min-width: auto;
    }
    
    /* Disable background animations on mobile */
    body {
        background-size: 100% 100%;
        animation: none;
    }
    
    body::before {
        animation: none;
        opacity: 0.3;
    }
    
    body::after {
        animation: none;
        opacity: 0.2;
    }
}

/* Floating Fullscreen Button */
.floating-fullscreen-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 9999;
    display: none; /* Hidden by default, will be shown via JavaScript */
}

.floating-fullscreen-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.floating-fullscreen-btn:active {
    transform: scale(0.95);
}

.floating-fullscreen-btn i {
    transition: transform 0.3s ease;
}

/* Responsive untuk mobile */
@media (max-width: 768px) {
    .floating-fullscreen-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
        bottom: 15px;
        right: 15px;
    }
}