/* ============================================
   CEK KELULUSAN ONLINE - Custom Styles
   Premium SNBT-style Design
   ============================================ */

/* ---- Import Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Variables ---- */
:root {
    --primary: #1a237e;
    --primary-light: #3949ab;
    --primary-dark: #0d1642;
    --accent: #00bcd4;
    --accent-light: #4dd0e1;
    --accent-glow: rgba(0, 188, 212, 0.3);
    --success: #00c853;
    --success-light: #69f0ae;
    --danger: #ff1744;
    --warning: #ffc107;
    --dark: #0a0e27;
    --dark-card: rgba(255, 255, 255, 0.05);
    --dark-border: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --gradient-main: linear-gradient(135deg, #0d1642 0%, #1a237e 30%, #1b2a6e 60%, #0d2137 100%);
    --gradient-card: linear-gradient(135deg, rgba(26, 35, 126, 0.4), rgba(13, 33, 55, 0.4));
    --gradient-accent: linear-gradient(135deg, #00bcd4, #1a237e);
    --gradient-success: linear-gradient(135deg, #00c853, #00bcd4);
    --gradient-danger: linear-gradient(135deg, #ff1744, #d50000);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

/* ---- Reset & Base ---- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Inter', sans-serif;
    background: var(--gradient-main);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ---- Animated Background Particles ---- */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bg-particles .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 188, 212, 0.3);
    border-radius: 50%;
    animation: float-particle 15s infinite;
}

.bg-particles .particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 20s; }
.bg-particles .particle:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; animation-duration: 18s; }
.bg-particles .particle:nth-child(3) { top: 40%; left: 30%; animation-delay: 4s; animation-duration: 22s; }
.bg-particles .particle:nth-child(4) { top: 80%; left: 60%; animation-delay: 1s; animation-duration: 16s; }
.bg-particles .particle:nth-child(5) { top: 10%; left: 50%; animation-delay: 3s; animation-duration: 25s; }
.bg-particles .particle:nth-child(6) { top: 70%; left: 20%; animation-delay: 5s; animation-duration: 19s; }
.bg-particles .particle:nth-child(7) { top: 30%; left: 70%; animation-delay: 2.5s; animation-duration: 21s; }
.bg-particles .particle:nth-child(8) { top: 50%; left: 90%; animation-delay: 1.5s; animation-duration: 17s; }

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
    25% { transform: translate(50px, -80px) scale(1.5); opacity: 0.6; }
    50% { transform: translate(-30px, -120px) scale(1); opacity: 0.4; }
    75% { transform: translate(80px, -60px) scale(2); opacity: 0.5; }
}

/* ---- Glass Card ---- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 8px 40px rgba(0, 188, 212, 0.15);
}

/* ---- Navbar ---- */
.navbar-custom {
    background: rgba(10, 14, 39, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--dark-border);
    padding: 0.8rem 0;
    z-index: 1000;
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-custom .navbar-brand .brand-icon {
    width: 36px;
    height: 36px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.navbar-custom .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.navbar-custom .nav-link:hover {
    color: var(--accent) !important;
}

.realtime-clock {
    color: var(--accent);
    font-family: 'Inter', monospace;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 14px;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(0, 188, 212, 0.2);
}

/* ---- Hero Section ---- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 188, 212, 0.3); }
    50% { box-shadow: 0 0 20px 5px rgba(0, 188, 212, 0.15); }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #4dd0e1 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    line-height: 1.6;
}

.hero-school-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ---- Countdown Timer ---- */
.countdown-wrapper {
    margin: 2.5rem 0;
}

.countdown-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.countdown-grid {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1.2rem 1.5rem;
    min-width: 90px;
    text-align: center;
    transition: var(--transition);
}

.countdown-item:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.15);
}

.countdown-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    font-family: 'Inter', monospace;
}

.countdown-unit {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 6px;
    font-weight: 600;
}

/* ---- Buttons ---- */
.btn-primary-custom {
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    padding: 14px 40px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.btn-primary-custom::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;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.4);
    color: #fff;
}

.btn-primary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-glass {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-glass:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* ---- Mobile Friendly Tweak ---- */
@media (max-width: 768px) {
    .countdown-item {
        min-width: 70px;
        padding: 0.8rem 1rem;
    }
    .countdown-value {
        font-size: 1.5rem;
    }
    .hero-section {
        padding: 5rem 1rem 2rem 1rem;
    }
    .result-name {
        font-size: 1.4rem;
    }
    .result-card {
        padding: 2rem 1.5rem;
    }
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .table-responsive {
        border-radius: var(--radius-sm);
        border: 1px solid var(--dark-border);
    }
}


/* ---- Form Styles ---- */
.form-floating-custom .form-control,
.form-floating-custom .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 14px 18px;
    font-size: 0.95rem;
    transition: var(--transition);
    height: auto;
}

.form-floating-custom .form-control:focus,
.form-floating-custom .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.15);
    color: var(--text-primary);
}

.form-floating-custom .form-control::placeholder {
    color: var(--text-muted);
}

.form-floating-custom label {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 6px;
}

/* ---- Loading Page ---- */
.loading-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    position: relative;
}

.loading-spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--dark-border);
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-progress-bar {
    width: 320px;
    max-width: 90%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.loading-progress-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    position: relative;
}

.loading-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 20px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    filter: blur(3px);
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 0.5rem;
    transition: opacity 0.3s;
}

.loading-percentage {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Inter', monospace;
}

/* ---- Result Page ---- */
.result-card {
    max-width: 560px;
    margin: 0 auto;
    padding: 3rem 2.5rem;
    text-align: center;
}

.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.result-badge-lulus {
    background: linear-gradient(135deg, rgba(0, 200, 83, 0.2), rgba(0, 188, 212, 0.2));
    color: var(--success-light);
    border: 2px solid rgba(0, 200, 83, 0.4);
    animation: badge-glow-success 2s ease-in-out infinite;
}

@keyframes badge-glow-success {
    0%, 100% { box-shadow: 0 0 10px rgba(0, 200, 83, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 200, 83, 0.4); }
}

.result-badge-tidak {
    background: linear-gradient(135deg, #ff1744, #d50000);
    color: #fff;
    border: none;
    animation: badge-glow-danger-strong 2s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 23, 68, 0.4);
}

@keyframes badge-glow-danger-strong {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 23, 68, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(255, 23, 68, 0.6); }
}

.hero-section.bg-tidak-lulus {
    background: linear-gradient(135deg, #4a0000 0%, #8b0000 40%, #b22222 70%, #4a0000 100%) !important;
    background-size: 400% 400% !important;
    animation: gradient-red-shift 10s ease infinite !important;
}

@keyframes gradient-red-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.result-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.result-no-peserta {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-family: 'Inter', monospace;
    margin-bottom: 2rem;
}

.result-detail {
    text-align: left;
    margin: 1.5rem 0;
}

.result-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--dark-border);
}

.result-detail-item:last-child {
    border-bottom: none;
}

.result-detail-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.result-detail-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.result-message {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 1.5rem 0;
}

/* ---- Admin Specific ---- */
.admin-sidebar {
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(25px);
    border-right: 1px solid var(--dark-border);
    min-height: 100vh;
    width: 260px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1100;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.admin-sidebar.show {
    transform: translateX(0) !important;
}

@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-content {
        margin-left: 0 !important;
        padding: 1.5rem !important;
        padding-top: 5rem !important;
    }
    .sidebar-overlay.show {
        display: block !important;
    }
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    display: none;
}


/* ---- Sidebar Toggle (Mobile) ---- */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1200;
    width: 45px;
    height: 45px;
    background: var(--gradient-accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    cursor: pointer;
}

@media (max-width: 991.98px) {
    .sidebar-toggle {
        display: flex;
    }
}

.admin-sidebar .sidebar-brand {
    padding: 1.5rem;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar .sidebar-brand .brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.admin-sidebar .sidebar-brand .brand-text {
    font-size: 1rem;
    font-weight: 700;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-nav .nav-item {
    margin: 2px 8px;
}

.sidebar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 10px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background: rgba(0, 188, 212, 0.1);
    color: var(--accent) !important;
}

.sidebar-nav .nav-link.active {
    background: rgba(0, 188, 212, 0.15);
    border: 1px solid rgba(0, 188, 212, 0.2);
}

.sidebar-nav .nav-link i {
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.admin-content {
    margin-left: 260px;
    padding: 2rem;
    min-height: 100vh;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
}

/* ---- Stat Cards ---- */
.stat-card {
    padding: 1.5rem;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
    font-family: 'Inter', sans-serif;
}

.stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-card-total .stat-icon { background: rgba(0, 188, 212, 0.15); color: var(--accent); }
.stat-card-lulus .stat-icon { background: rgba(0, 200, 83, 0.15); color: var(--success); }
.stat-card-tidak .stat-icon { background: rgba(255, 23, 68, 0.15); color: var(--danger); }
.stat-card-persen .stat-icon { background: rgba(255, 193, 7, 0.15); color: var(--warning); }

/* ---- Tables ---- */
.table-custom {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table-custom thead th {
    background: rgba(0, 188, 212, 0.08);
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dark-border);
}

.table-custom thead th:first-child {
    border-radius: 10px 0 0 0;
}

.table-custom thead th:last-child {
    border-radius: 0 10px 0 0;
}

.table-custom tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--dark-border);
    font-size: 0.9rem;
    vertical-align: middle;
}

.table-custom tbody tr {
    transition: var(--transition);
}

.table-custom tbody tr:hover {
    background: rgba(0, 188, 212, 0.05);
}

/* ---- Status Badge ---- */
.badge-status {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge-lulus {
    background: rgba(0, 200, 83, 0.15);
    color: var(--success-light);
    border: 1px solid rgba(0, 200, 83, 0.3);
}

.badge-tidak {
    background: rgba(255, 23, 68, 0.15);
    color: #ff6b8a;
    border: 1px solid rgba(255, 23, 68, 0.3);
}

/* ---- Pagination ---- */
.pagination-custom .page-link {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 8px;
    font-size: 0.85rem;
    transition: var(--transition);
}

.pagination-custom .page-link:hover {
    background: rgba(0, 188, 212, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

.pagination-custom .page-item.active .page-link {
    background: var(--gradient-accent);
    border-color: transparent;
    color: #fff;
}

.pagination-custom .page-item.disabled .page-link {
    opacity: 0.3;
}

/* ---- Upload Zone ---- */
.upload-zone {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--accent);
    background: rgba(0, 188, 212, 0.05);
}

.upload-zone .upload-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.upload-zone .upload-text {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.upload-zone .upload-hint {
    color: var(--text-muted);
    font-size: 0.82rem;
}

.upload-zone input[type="file"] {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* ---- Footer ---- */
.footer-custom {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--dark-border);
    margin-top: 3rem;
}

/* ---- Maintenance Page ---- */
.maintenance-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.maintenance-icon {
    font-size: 4rem;
    color: var(--warning);
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* ---- Print Styles ---- */
@media print {
    body {
        background: white !important;
        color: #000 !important;
    }
    .no-print {
        display: none !important;
    }
    .print-only {
        display: block !important;
    }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
        width: 240px;
    }

    .admin-sidebar.show {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }

    .countdown-grid {
        gap: 8px;
    }

    .countdown-item {
        padding: 1rem;
        min-width: 70px;
    }

    .countdown-value {
        font-size: 1.6rem;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .result-card {
        padding: 2rem 1.5rem;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .countdown-item {
        min-width: 60px;
        padding: 0.8rem;
    }

    .countdown-value {
        font-size: 1.3rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ---- Selection ---- */
::selection {
    background: rgba(0, 188, 212, 0.3);
    color: #fff;
}

/* ---- SweetAlert Dark Theme Override ---- */
.swal2-popup {
    background: #1a1e3a !important;
    color: #fff !important;
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--radius) !important;
}

.swal2-title {
    color: #fff !important;
}

.swal2-html-container {
    color: var(--text-secondary) !important;
}

.swal2-confirm {
    background: var(--gradient-accent) !important;
    border: none !important;
    border-radius: 10px !important;
}

/* ---- Hamburger Menu ---- */
.sidebar-toggle {
    display: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 200;
}

@media (max-width: 768px) {
    .sidebar-toggle {
        display: block;
    }
}

/* ---- Overlay ---- */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
}

.sidebar-overlay.show {
    display: block;
}

.result-card-tidak {
    background: linear-gradient(135deg, #d50000, #8b0000) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff !important;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4) !important;
}

.result-card-tidak .result-name,
.result-card-tidak .result-message,
.result-card-tidak .result-no-peserta,
.result-card-tidak .result-detail-label,
.result-card-tidak .result-detail-value {
    color: #fff !important;
}

.result-card-tidak .result-detail-item {
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

/* ---- Theme Tidak Lulus (Global) ---- */
.theme-tidak-lulus .navbar-custom {
    background: linear-gradient(135deg, #b22222, #8b0000) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.theme-tidak-lulus .footer-custom {
    background: linear-gradient(135deg, #8b0000, #4a0000) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
}

.theme-tidak-lulus .brand-icon {
    background: #fff !important;
    color: #8b0000 !important;
}

.theme-tidak-lulus .navbar-custom .nav-link,
.theme-tidak-lulus .navbar-custom .navbar-brand {
    color: #fff !important;
}

.theme-tidak-lulus .bg-particles .particle {
    background: rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.theme-tidak-lulus .realtime-clock {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.theme-tidak-lulus {
    background: #4a0000 !important;
}
