/* =============================================
   SMKN 1 Banyumas — Pengumuman Kelulusan
   Dark Elegant Theme
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Lato:wght@300;400;700&display=swap');

/* ---- Variables ---- */
:root {
    --bg-primary: #07080f;
    --bg-secondary: #0d0f1c;
    --bg-card: rgba(255,255,255,0.04);
    --bg-card-hover: rgba(255,255,255,0.07);
    --border: rgba(255,255,255,0.08);
    --border-gold: rgba(212,175,55,0.3);

    --gold: #d4af37;
    --gold-light: #f0d060;
    --gold-dark: #9a7a1a;
    --silver: #c0c0c0;

    --text-primary: #e8e8f0;
    --text-secondary: #8890a8;
    --text-muted: #4a5068;

    --lulus-color: #22c55e;
    --lulus-bg: rgba(34,197,94,0.12);
    --lulus-border: rgba(34,197,94,0.3);

    --tidak-lulus-color: #ef4444;
    --tidak-lulus-bg: rgba(239,68,68,0.12);
    --tidak-lulus-border: rgba(239,68,68,0.3);

    --accent: #6366f1;
    --accent-glow: rgba(99,102,241,0.3);

    --radius: 16px;
    --radius-sm: 8px;
    --shadow: 0 25px 60px rgba(0,0,0,0.5);
    --shadow-gold: 0 0 40px rgba(212,175,55,0.15);

    --font-display: 'Cinzel', serif;
    --font-body: 'Lato', sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* =============================================
   BACKGROUND EFFECTS
   ============================================= */

/* Star particles */
.stars, .stars2, .stars3 {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.stars { background: transparent; animation: animStar 50s linear infinite; }
.stars2 { background: transparent; animation: animStar 100s linear infinite; opacity: 0.5; }
.stars3 { background: transparent; animation: animStar 150s linear infinite; opacity: 0.3; }

@keyframes animStar {
    from { transform: translateY(0); }
    to   { transform: translateY(-100vh); }
}

/* Floating gradient orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    top: -150px; right: -150px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(212,175,55,0.1) 0%, transparent 70%);
    bottom: -100px; left: -100px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat1 30s ease-in-out infinite reverse;
}

@keyframes orbFloat1 {
    0%,100% { transform: translate(0,0) scale(1); }
    33%  { transform: translate(-30px, 20px) scale(1.05); }
    66%  { transform: translate(20px, -30px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%,100% { transform: translate(0,0); }
    50% { transform: translate(40px, -40px); }
}

/* Confetti canvas */
#confetti-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* =============================================
   LOGIN PAGE
   ============================================= */

.login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1rem;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: rgba(13,15,28,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-top: 1px solid rgba(212,175,55,0.3);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow), var(--shadow-gold);
    animation: fadeInUp 0.7s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Emblem */
.school-emblem {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.emblem-ring {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.05));
    box-shadow: 0 0 30px rgba(212,175,55,0.2), inset 0 0 20px rgba(212,175,55,0.05);
    animation: emblemGlow 3s ease-in-out infinite;
}

@keyframes emblemGlow {
    0%,100% { box-shadow: 0 0 20px rgba(212,175,55,0.2), inset 0 0 20px rgba(212,175,55,0.05); }
    50%     { box-shadow: 0 0 40px rgba(212,175,55,0.35), inset 0 0 30px rgba(212,175,55,0.1); }
}

.emblem-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.emblem-text {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.15em;
}

.emblem-num {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

/* Login header */
.login-header { text-align: center; margin-bottom: 1.8rem; }

.school-name {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.login-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.gold-text {
    color: var(--gold);
    text-shadow: 0 0 30px rgba(212,175,55,0.4);
}

.tahun-ajaran {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    letter-spacing: 0.05em;
}

/* Alert */
.alert {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 1.2rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-10px); }
    to   { opacity: 1; transform: translateX(0); }
}

.alert-error {
    background: rgba(239,68,68,0.12);
    border: 1px solid rgba(239,68,68,0.3);
    color: #fca5a5;
}

/* Form */
.login-form { display: flex; flex-direction: column; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.form-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.9rem 0.75rem 2.8rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: var(--gold);
    background: rgba(212,175,55,0.04);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.1);
}

.form-input:focus + .input-icon { color: var(--gold); }
.input-wrapper:focus-within .input-icon { color: var(--gold); }

.form-input::placeholder { color: var(--text-muted); }

.toggle-pass {
    position: absolute;
    right: 0.9rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.2rem;
    transition: color 0.2s;
    line-height: 1;
}
.toggle-pass:hover { color: var(--text-secondary); }

.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: #0a0800;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-top: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(212,175,55,0.2);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(212,175,55,0.4);
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
}

.btn-login:active { transform: translateY(0); }

.login-hint {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.login-hint strong { color: var(--text-secondary); }

.announcement-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--gold-dark);
    margin-top: 1rem;
    text-align: center;
}

/* =============================================
   TOP NAVIGATION
   ============================================= */

.top-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    background: rgba(7,8,15,0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.nav-brand {
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--gold);
}

.nav-logo sup {
    font-size: 0.6rem;
    color: var(--gold-dark);
}

.nav-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-username {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-logout:hover {
    background: rgba(239,68,68,0.12);
    border-color: rgba(239,68,68,0.3);
    color: #fca5a5;
}

/* =============================================
   RESULT PAGE
   ============================================= */

.result-page, .waiting-page {
    padding-top: 60px;
}

.pengumuman-main {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 60px);
    padding: 2rem 1rem 4rem;
}

/* ---- WAITING ---- */
.waiting-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 120px);
}

.waiting-card {
    background: rgba(13,15,28,0.85);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    max-width: 550px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow), var(--shadow-gold);
    animation: fadeInUp 0.7s ease;
}

.waiting-icon {
    width: 100px; height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212,175,55,0.15), rgba(212,175,55,0.05));
    border: 2px solid var(--border-gold);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--gold);
    animation: emblemGlow 3s ease-in-out infinite;
}

.waiting-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.waiting-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.announcement-date-box {
    background: rgba(212,175,55,0.06);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    margin-bottom: 2rem;
}

.date-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.date-day {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
}

.date-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
    text-shadow: 0 0 30px rgba(212,175,55,0.4);
}

.date-month {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.time-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* Countdown */
.countdown-wrapper { margin-bottom: 1.5rem; }

.countdown-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.countdown {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 64px;
}

.count-num {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    font-weight: 900;
    color: var(--text-primary);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
    min-width: 64px;
    text-align: center;
    line-height: 1;
    transition: all 0.3s;
}

.count-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.countdown-sep {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 1rem;
}

.waiting-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ---- RESULT ---- */
.result-container {
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    animation: fadeInUp 0.7s ease;
}

.result-header {
    text-align: center;
    padding: 1rem 0 0.5rem;
}

.result-sekolah {
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.result-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    font-weight: 700;
    color: var(--text-primary);
}

.result-tahun {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

.result-card {
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--glow-color, rgba(212,175,55,0.1)) 0%, transparent 60%);
    pointer-events: none;
}

.card-lulus {
    background: var(--lulus-bg);
    border-color: var(--lulus-border);
    --glow-color: rgba(34,197,94,0.1);
}

.card-tidak-lulus {
    background: var(--tidak-lulus-bg);
    border-color: var(--tidak-lulus-border);
    --glow-color: rgba(239,68,68,0.1);
}

.result-status-icon {
    margin: 0 auto 1.25rem;
    width: 100px; height: 100px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}

.lulus-icon { 
    background: rgba(34,197,94,0.1); 
    animation: luluspulse 2.5s ease-in-out infinite;
}

.tidak-lulus-icon { 
    background: rgba(239,68,68,0.1); 
}

.status-ring {
    width: 80px; height: 80px;
    border-radius: 50%;
    border: 3px solid;
    display: flex; align-items: center; justify-content: center;
}

.lulus-icon .status-ring {
    border-color: var(--lulus-color);
    color: var(--lulus-color);
}

.tidak-lulus-icon .status-ring {
    border-color: var(--tidak-lulus-color);
    color: var(--tidak-lulus-color);
}

@keyframes luluspulse {
    0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
    50% { box-shadow: 0 0 0 20px rgba(34,197,94,0); }
}

.congratulations {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}

.condolence {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.status-headline {
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.lulus-headline { color: var(--lulus-color); }
.tidak-lulus-headline { color: var(--tidak-lulus-color); }

.big-status {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 10vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 0.75rem;
}

.lulus-status {
    color: var(--lulus-color);
    text-shadow: 0 0 40px rgba(34,197,94,0.5);
}

.tidak-lulus-status {
    color: var(--tidak-lulus-color);
    text-shadow: 0 0 40px rgba(239,68,68,0.5);
}

.status-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 360px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Student Info Card */
.student-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.info-card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.info-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 400;
}

.print-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    background: rgba(212,175,55,0.06);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.print-note svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

/* =============================================
   ADMIN PAGES
   ============================================= */

.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 240px;
    background: rgba(13,15,28,0.95);
    border-right: 1px solid var(--border);
    z-index: 200;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.sidebar-logo {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--gold);
    display: block;
}

.sidebar-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    letter-spacing: 0.05em;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0.8rem;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
}

.nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: rgba(212,175,55,0.1);
    color: var(--gold);
    border-left: 2px solid var(--gold);
}

.nav-section-label {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 1rem 0.8rem 0.25rem;
}

.sidebar-footer {
    padding: 1rem 0.75rem;
    border-top: 1px solid var(--border);
}

/* Admin content */
.admin-content {
    margin-left: 240px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: rgba(7,8,15,0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    gap: 1rem;
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.admin-main {
    padding: 1.5rem;
    flex: 1;
}

/* Stats cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: all 0.2s;
}

.stat-card:hover {
    border-color: rgba(212,175,55,0.2);
    background: var(--bg-card-hover);
}

.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-value.gold { color: var(--gold); }
.stat-value.green { color: var(--lulus-color); }
.stat-value.red { color: var(--tidak-lulus-color); }

/* Data table */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.table-title {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    background: rgba(255,255,255,0.03);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}

tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.03); }

tbody td {
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

tbody td:first-child { color: var(--text-primary); }

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-lulus {
    background: var(--lulus-bg);
    border: 1px solid var(--lulus-border);
    color: var(--lulus-color);
}

.badge-tidak-lulus {
    background: var(--tidak-lulus-bg);
    border: 1px solid var(--tidak-lulus-border);
    color: var(--tidak-lulus-color);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold);
    color: #0a0800;
}
.btn-primary:hover {
    box-shadow: 0 4px 20px rgba(212,175,55,0.3);
    filter: brightness(1.1);
}

.btn-secondary {
    background: rgba(255,255,255,0.06);
    border-color: var(--border);
    color: var(--text-secondary);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.btn-danger {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.3);
    color: #fca5a5;
}
.btn-danger:hover {
    background: rgba(239,68,68,0.2);
    border-color: rgba(239,68,68,0.5);
}

.btn-sm {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
}

/* Search input */
.search-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.9rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s;
    width: 220px;
}

.search-input:focus {
    border-color: var(--gold);
    background: rgba(212,175,55,0.04);
}

.search-input::placeholder { color: var(--text-muted); }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: #0d0f1c;
    border: 1px solid var(--border);
    border-top: 2px solid var(--gold);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.25s;
}

.modal-overlay.open .modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    line-height: 1;
    font-size: 1.1rem;
}
.modal-close:hover { background: rgba(239,68,68,0.2); color: #fca5a5; }

.modal-body { padding: 1.25rem 1.5rem; }

.modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Form groups in modal */
.modal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.modal-form-grid .form-group.full { grid-column: 1 / -1; }

.form-select {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.9rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
    appearance: none;
    cursor: pointer;
}

.form-select:focus {
    border-color: var(--gold);
    background: rgba(212,175,55,0.04);
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 1rem;
}

.page-btn {
    min-width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.page-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.page-btn.active { background: rgba(212,175,55,0.15); border-color: var(--gold); color: var(--gold); }
.page-btn:disabled { opacity: 0.4; pointer-events: none; }

/* Sidebar toggle for mobile */
.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.25rem;
}

/* Empty state */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
}

.empty-state svg { margin-bottom: 0.75rem; opacity: 0.4; }
.empty-state p { font-size: 0.9rem; }

/* Alert success */
.alert-success {
    background: rgba(34,197,94,0.12);
    border: 1px solid rgba(34,197,94,0.3);
    color: #86efac;
}

/* =============================================
   FOOTER
   ============================================= */

.site-footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 1.5rem 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: auto;
}

/* =============================================
   MOBILE HAMBURGER MENU
   ============================================= */

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 199;
    }

    .sidebar-overlay.open { display: block; }

    .sidebar-toggle { display: flex; }

    .admin-content {
        margin-left: 0;
    }

    .modal-form-grid {
        grid-template-columns: 1fr;
    }

    .nav-username { display: none; }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-header { flex-direction: column; align-items: stretch; }
    .table-actions { width: 100%; }
    .search-input { width: 100%; }
}

@media (max-width: 480px) {
    .login-card { padding: 2rem 1.25rem; }
    .waiting-card { padding: 2rem 1.25rem; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .countdown { gap: 0.3rem; }
    .countdown-item { min-width: 52px; }
    .count-num { min-width: 52px; font-size: 1.5rem; }
}