/* ============================================
   PENGUMUMAN KELULUSAN DWISMA - STYLE SHEET
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #bbf7d0;
  --gold: #d97706;
  --gold-light: #fef3c7;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --bg: #f0fdf4;
  --surface: #ffffff;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }

/* CONFETTI */
#confettiCanvas { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }

/* NAVBAR */
.navbar { background: rgba(255,255,255,0.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.navbar-inner { max-width: 1400px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.navbar-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.brand-title { font-size: 18px; font-weight: 800; color: var(--primary); display: block; line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--text-muted); font-weight: 500; }
.navbar-actions { display: flex; align-items: center; gap: 10px; }
.clock-badge { display: flex; align-items: center; gap: 6px; background: var(--gold-light); color: var(--gold); padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* BUTTONS */
.btn-primary { background: var(--primary); color: #fff; border: none; border-radius: 10px; padding: 12px 24px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 8px; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(22,163,74,.35); }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); border-radius: 10px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all .2s; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--bg); }
.btn-danger { background: var(--danger); color: #fff; border: none; border-radius: 10px; padding: 12px 24px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s; }
.btn-danger:hover { background: #b91c1c; }
.btn-danger-sm { background: var(--danger-light); color: var(--danger); border: none; border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn-action { background: #f1f5f9; border: 1px solid var(--border); border-radius: 8px; padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--text); cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 6px; }
.btn-action:hover { background: var(--primary-light); border-color: var(--primary); color: var(--primary); }
.btn-check { width: 100%; padding: 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all .25s; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.btn-check:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(22,163,74,.4); }
.btn-check:disabled { opacity: .6; transform: none; cursor: not-allowed; }
.btn-download { flex: 1; padding: 14px; background: linear-gradient(135deg, var(--gold), #b45309); color: #fff; border: none; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(217,119,6,.4); }
.btn-reset { flex: 1; padding: 14px; background: #f1f5f9; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; color: var(--text-muted); }
.btn-reset:hover { border-color: var(--primary); color: var(--primary); background: var(--bg); }
.btn-save-ann { background: var(--primary); color: #fff; border: none; border-radius: 8px; padding: 10px 20px; font-size: 14px; font-weight: 600; cursor: pointer; margin-top: 8px; transition: all .2s; }
.w-full { width: 100%; }
.mt-2 { margin-top: 8px; }
.hidden { display: none !important; }

/* MAIN & PAGES */
#appMain { flex: 1; max-width: 1400px; margin: 0 auto; width: 100%; }
.page-section { display: none; padding: 0 24px 40px; }
.page-section.active { display: block; }

/* HERO SECTION */
.hero { 
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 100px 24px 140px;
    text-align: center;
    background: var(--primary-dark);
    background: radial-gradient(circle at top right, var(--primary) 0%, var(--primary-dark) 100%);
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6zM36 4V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}
@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hero-content { position: relative; z-index: 10; max-width: 800px; margin: 0 auto; }
.hero-icon { 
    font-size: 64px; 
    margin-bottom: 24px; 
    display: inline-block;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-icon img { width: 120px; height: 120px; object-fit: contain; }

.hero h1 { 
    font-size: clamp(32px, 5vw, 48px); 
    font-weight: 900; 
    color: #fff; 
    line-height: 1.1; 
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.hero p { 
    font-size: 18px; 
    color: rgba(255,255,255,0.9); 
    font-weight: 500;
    backdrop-filter: blur(5px);
    background: rgba(255,255,255,0.1);
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* CHECK SECTION */
.check-section { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 24px; 
    margin-top: -60px;
    position: relative;
    z-index: 20;
}
.check-card { 
    width: 100%; 
    max-width: 520px; 
    background: var(--surface); 
    border-radius: var(--radius); 
    box-shadow: var(--shadow-lg); 
    overflow: hidden; 
}
.check-card-header { padding: 32px 32px 16px; text-align: center; }
.check-card-header h2 { font-size: 22px; font-weight: 800; color: var(--text); }
.check-card-header p { color: var(--text-muted); font-size: 14px; margin-top: 6px; }
.check-form { padding: 0 32px 32px; }

/* FORM GROUPS */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea { 
    width: 100%; padding: 12px 14px; 
    border: 1.5px solid var(--border); 
    border-radius: 10px; font-size: 15px; 
    font-family: inherit; color: var(--text); 
    background: #f8fafc; transition: border-color .2s; 
    outline: none; 
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { 
    border-color: var(--primary); 
    background: #fff; 
    box-shadow: 0 0 0 3px rgba(22,163,74,.12); 
}
.required { color: var(--danger); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* SUSPENSE OVERLAY DRAMATIS */
.suspense-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.suspense-overlay.active { opacity: 1; pointer-events: all; }

.suspense-card-intense {
    width: 100%; max-width: 420px; background: #0f172a;
    border: 2px solid #334155; border-radius: 24px; padding: 40px 32px;
    text-align: center; box-shadow: 0 0 50px rgba(0,0,0,0.8);
    color: #fff; transform: scale(0.8);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.suspense-overlay.active .suspense-card-intense { transform: scale(1); }

.suspense-icon {
    font-size: 72px; color: #ef4444; margin-bottom: 24px;
    filter: drop-shadow(0 0 15px rgba(239,68,68,0.5)); display: inline-block;
}
.heartbeat-slow { animation: heartbeat 1s ease-in-out infinite both; }
.heartbeat-fast { animation: heartbeat 0.4s ease-in-out infinite both; color: #dc2626; filter: drop-shadow(0 0 25px rgba(220,38,38,0.8)); }
.heartbeat-extreme { animation: heartbeat 0.15s ease-in-out infinite both; color: #b91c1c; filter: drop-shadow(0 0 40px rgba(185,28,28,1)); }

@keyframes heartbeat {
    from { transform: scale(1); }
    10% { transform: scale(0.85); }
    20% { transform: scale(1.05); }
    30% { transform: scale(0.9); }
    40% { transform: scale(1); }
}

.suspense-card-intense h2 { font-size: 22px; font-weight: 900; letter-spacing: 2px; margin-bottom: 16px; color: #f8fafc; }
.suspense-progress { width: 100%; height: 8px; background: #1e293b; border-radius: 10px; margin: 24px 0 16px; overflow: hidden; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5); }
.suspense-bar { height: 100%; width: 0%; background: #ef4444; border-radius: 10px; transition: width 0.3s ease; box-shadow: 0 0 10px #ef4444; }

.terminal-logs {
    margin-top: 24px; height: 100px; background: #000; border-radius: 12px;
    padding: 12px; font-family: monospace; font-size: 11px; color: #22c55e;
    text-align: left; overflow: hidden; position: relative; border: 1px solid #334155;
    line-height: 1.5;
}
.terminal-logs::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 40px;
    background: linear-gradient(transparent, #000);
}
.terminal-logs div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0.8; }

.shake-screen { animation: screenShake 0.1s infinite; }
@keyframes screenShake {
    0% { transform: translate(2px, 1px) rotate(0deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* NOT PUBLISHED CARD */
.not-published-card { width: 100%; max-width: 520px; background: var(--surface); border-radius: var(--radius); padding: 48px 32px; text-align: center; box-shadow: var(--shadow); }
.np-icon { font-size: 64px; margin-bottom: 16px; }
.not-published-card h2 { font-size: 22px; font-weight: 800; color: var(--gold); }
.not-published-card p { color: var(--text-muted); margin-top: 8px; }

/* COUNTDOWN PREMIUM */
.countdown-wrap { 
    margin-top: 40px; 
    padding-top: 32px; 
    border-top: 2px dashed var(--border); 
}
.countdown-label { 
    font-size: 12px; 
    font-weight: 800; 
    color: var(--text-muted); 
    letter-spacing: 2px; 
    margin-bottom: 20px; 
    text-transform: uppercase;
}
.countdown-timer { 
    display: flex; 
    justify-content: center; 
    gap: 16px; 
}
.cd-item { 
    background: #fff; 
    padding: 16px; 
    border-radius: 20px; 
    min-width: 85px; 
    border: 1px solid var(--border); 
    box-shadow: var(--shadow);
}
.cd-item span { 
    display: block; 
    font-size: 32px; 
    font-weight: 900; 
    color: var(--primary); 
    font-family: 'Inter', monospace;
    line-height: 1;
}
.cd-item small { 
    font-size: 11px; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    font-weight: 700; 
    margin-top: 8px; 
    display: block; 
}

/* ADMIN PUBLISH ACTIONS */
.pt-actions { display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.manual-toggle, .schedule-toggle { display: flex; align-items: center; gap: 12px; }
.manual-toggle small, .schedule-toggle small { font-weight: 700; color: var(--text-muted); font-size: 12px; }
.schedule-input-group { display: flex; gap: 8px; }
.schedule-input-group input { padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 13px; outline: none; }
.btn-sm-save { padding: 6px 12px; background: var(--primary); color: #fff; border: none; border-radius: 8px; font-size: 12px; font-weight: 600; cursor: pointer; }
.btn-sm-save:hover { background: var(--primary-dark); }
@media (max-width: 600px) { .pt-actions { align-items: stretch; } .schedule-input-group { flex-direction: column; } }

/* HASIL CARD PREMIUM */
.hasil-card { 
    width: 100%; 
    max-width: 600px; 
    background: var(--surface); 
    border-radius: 30px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.15); 
    overflow: hidden; 
    border: 1px solid rgba(255,255,255,0.8);
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.hasil-banner { 
    padding: 60px 24px; 
    text-align: center; 
    position: relative;
    overflow: hidden;
}
.hasil-banner.lulus { 
    background: linear-gradient(135deg, #064e3b 0%, #15803d 100%); 
}
.hasil-banner.lulus::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% -20%, rgba(255,255,255,0.3) 0%, transparent 70%);
}
.hasil-banner.tidak-lulus { 
    background: linear-gradient(135deg, #7f1d1d 0%, #dc2626 100%); 
}
.hasil-banner.tidak-lulus::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle at 50% -20%, rgba(255,255,255,0.2) 0%, transparent 70%);
}
.hasil-emoji { 
    font-size: 80px; 
    margin-bottom: 24px; 
    display: block; 
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2));
}
.hasil-name-banner { 
    font-size: clamp(20px, 4.5vw, 28px); 
    font-weight: 900; 
    color: white; 
    line-height: 1.2;
    margin: 0 auto 8px;
    max-width: 90%;
    text-transform: uppercase; 
    text-shadow: 0 2px 10px rgba(0,0,0,0.2); 
}
.hasil-info-banner { 
    font-size: 14px; 
    font-weight: 500; 
    color: rgba(255,255,255,0.8); 
    margin-bottom: 16px; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}
.hasil-nilai-banner { 
    font-size: 13px; 
    font-weight: 700; 
    color: white; 
    margin-bottom: 32px; 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 14px; 
    border-radius: 20px; 
    display: inline-block; 
}
.hasil-status-text { 
    font-size: 13px; 
    font-weight: 800; 
    color: rgba(255,255,255,0.85); 
    letter-spacing: 3px; 
    text-transform: uppercase;
    margin-bottom: 12px;
}
.hasil-lulus-badge { 
    display: inline-block; 
    padding: 12px 48px; 
    border-radius: 100px; 
    font-size: 42px; 
    font-weight: 950; 
    color: #fff; 
    letter-spacing: 4px; 
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255,255,255,0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hasil-detail { padding: 40px; background: #fff; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 30px; }

.detail-item { 
    background: #f8fafc; 
    border-radius: 16px; 
    padding: 18px 20px; 
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}
.detail-item:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-color: var(--primary-light); }
.detail-item.full-width { grid-column: 1 / -1; }

.detail-label { 
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px; 
    color: var(--text-muted); 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    margin-bottom: 6px; 
}
.detail-label i { color: var(--primary); font-size: 14px; }
.detail-value { 
    display: block; 
    font-size: 18px; 
    font-weight: 800; 
    color: var(--text); 
}

.hasil-actions { display: flex; flex-direction: column; gap: 12px; }
.btn-download { 
    width: 100%;
    padding: 16px; 
    background: var(--primary); 
    color: #fff; 
    border: none; 
    border-radius: 14px; 
    font-size: 16px; 
    font-weight: 800; 
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    box-shadow: 0 10px 25px rgba(22,163,74,0.3);
    transition: all 0.3s;
}
.btn-download:hover { transform: translateY(-2px); box-shadow: 0 15px 30px rgba(22,163,74,0.4); background: var(--primary-dark); }

.btn-reset { 
    padding: 12px; 
    background: transparent; 
    color: var(--text-muted); 
    border: 2px solid var(--border); 
    border-radius: 14px; 
    font-size: 14px; 
    font-weight: 700; 
    cursor: pointer;
    transition: all 0.3s;
}
.btn-reset:hover { background: var(--bg); color: var(--primary); border-color: var(--primary); }
.hasil-actions { display: flex; gap: 10px; }

/* ANNOUNCEMENT BOX */
.announcement-box { width: 100%; max-width: 520px; background: var(--gold-light); border: 1.5px solid #fcd34d; border-radius: var(--radius); padding: 16px 20px; display: flex; align-items: flex-start; gap: 12px; color: #92400e; font-size: 14px; font-weight: 500; }

/* === ADMIN DASHBOARD MODERN === */
.admin-tabs { 
    display: flex; gap: 8px; margin: 24px 0 30px; 
    background: #f1f5f9; padding: 6px; border-radius: 14px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.tab-btn { 
    flex: 1; padding: 12px 20px; border: none; border-radius: 10px;
    background: transparent; color: #64748b;
    font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 14px;
}
.tab-btn i { font-size: 16px; opacity: 0.7; }
.tab-btn.active { 
    background: white; color: var(--primary); 
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}
.tab-btn.active i { opacity: 1; color: var(--primary); }
.tab-btn:hover:not(.active) { color: var(--text-dark); background: rgba(255,255,255,0.5); }

.tab-content { display: none; }
.tab-content.active { display: block; }

.stats-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
    gap: 20px; margin-bottom: 30px; 
}
.stat-card { 
    background: white; padding: 24px; border-radius: 20px; 
    display: flex; align-items: center; gap: 20px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02), 0 2px 4px -1px rgba(0,0,0,0.01);
    border: 1px solid #f1f5f9; transition: all 0.3s ease;
}
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05); border-color: #e2e8f0; }
.stat-icon { 
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; flex-shrink: 0;
}
.stat-total .stat-icon { background: #eff6ff; color: #3b82f6; }
.stat-lulus .stat-icon { background: #f0fdf4; color: #22c55e; }
.stat-tidak .stat-icon { background: #fef2f2; color: #ef4444; }
.stat-publish .stat-icon { background: #faf5ff; color: #a855f7; }

.stat-number { display: block; font-size: 32px; font-weight: 900; color: #1e293b; line-height: 1; letter-spacing: -1px; }
.stat-label { font-size: 13px; color: #64748b; font-weight: 600; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }

.publish-toggle-card { 
    background: white; padding: 24px 30px; border-radius: 20px;
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02); flex-wrap: wrap; gap: 20px;
}
.pt-info { display: flex; align-items: center; gap: 18px; }
.pt-info i { font-size: 36px; color: var(--primary); background: #f0fdf4; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.pt-info h3 { margin: 0; font-size: 20px; font-weight: 800; color: #1e293b; }
.pt-info p { margin: 4px 0 0; font-size: 14px; color: #64748b; }

.pt-actions { display: flex; gap: 30px; align-items: center; flex-wrap: wrap; }
.manual-toggle { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 0 15px; }
.manual-toggle small { font-weight: 800; color: #94a3b8; text-transform: uppercase; font-size: 10px; letter-spacing: 1.5px; }

.schedule-toggle { padding-left: 30px; border-left: 2px solid #f1f5f9; }
.schedule-toggle small { display: block; margin-bottom: 10px; font-weight: 800; color: #94a3b8; text-transform: uppercase; font-size: 10px; letter-spacing: 1.5px; }
.schedule-input-group { display: flex; gap: 10px; }
.schedule-input-group input { 
    padding: 10px 15px; border: 2px solid #f1f5f9; border-radius: 12px;
    font-family: inherit; font-size: 14px; outline: none; transition: all 0.3s; background: #f8fafc;
}
.schedule-input-group input:focus { border-color: var(--primary); background: white; }
.btn-sm-save { 
    background: #1e293b; color: white; border: none; padding: 10px 20px;
    border-radius: 12px; font-weight: 700; cursor: pointer; font-size: 13px; transition: all 0.3s;
}
.btn-sm-save:hover { background: #0f172a; transform: translateY(-2px); }

.siswa-toolbar { 
    display: flex; justify-content: space-between; align-items: center; 
    margin-bottom: 30px; gap: 20px; flex-wrap: wrap;
    background: white; padding: 24px; border-radius: 20px;
    border: 1px solid #f1f5f9;
}
.filter-group { display: flex; gap: 12px; flex: 1; max-width: 650px; }
.search-input { 
    flex: 2; padding: 12px 20px; border: 2px solid #f1f5f9; border-radius: 12px;
    font-size: 14px; outline: none; transition: all 0.3s; background: #f8fafc;
}
.search-input:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(22,163,74,0.1); }
.filter-select { 
    width: 150px; padding: 12px; border: 2px solid #f1f5f9; border-radius: 12px;
    font-size: 14px; outline: none; cursor: pointer; background: #f8fafc; font-weight: 600;
}
.filter-select:focus { border-color: var(--primary); background: white; }

.toolbar-right { display: flex; gap: 10px; align-items: center; }

.btn-action { 
    white-space: nowrap;
    padding: 12px 18px; border: none; border-radius: 12px; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 14px;
    transition: all 0.3s; background: #f1f5f9; color: #475569;
}
.btn-action:hover { background: #e2e8f0; transform: translateY(-2px); }
.btn-import { background: #eff6ff; color: #3b82f6; }
.btn-import:hover { background: #3b82f6; color: white; box-shadow: 0 10px 15px -3px rgba(59,130,246,0.3); }
.btn-add { background: var(--primary); color: white; }
.btn-add:hover { background: #15803d; box-shadow: 0 10px 15px -3px rgba(22,163,74,0.3); }

.table-wrapper { 
    background: white; border-radius: 20px; overflow: hidden; 
    border: 1px solid #f1f5f9; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { 
    background: #f8fafc; padding: 18px 20px; text-align: left; 
    font-weight: 800; color: #64748b; text-transform: uppercase;
    font-size: 11px; letter-spacing: 1.5px; border-bottom: 2px solid #f1f5f9;
}
.data-table td { padding: 18px 20px; border-bottom: 1px solid #f1f5f9; color: #334155; font-weight: 500; }
.data-table tr:hover td { background: #fcfdfe; }
.data-table tr:last-child td { border-bottom: none; }

.badge { padding: 6px 14px; border-radius: 30px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.badge-lulus { background: #dcfce7; color: #166534; }
.badge-tidak { background: #fee2e2; color: #991b1b; }

.table-footer { 
    margin-top: 20px; display: flex; justify-content: space-between; align-items: center; 
    padding: 0 10px;
}
.total-info { font-size: 14px; color: #64748b; font-weight: 600; }

.settings-grid { 
    display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); 
    gap: 30px; 
}
.settings-card { 
    background: white; padding: 30px; border-radius: 24px;
    border: 1px solid #f1f5f9; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.settings-card h3 { 
    margin: 0 0 24px; font-size: 20px; font-weight: 800; color: #1e293b;
    display: flex; align-items: center; gap: 12px; border-bottom: 2px solid #f8fafc;
    padding-bottom: 16px;
}
.settings-card .form-group { margin-bottom: 20px; }
.settings-card label { display: block; margin-bottom: 10px; font-weight: 800; color: #94a3b8; font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; }
.settings-card input, .settings-card select { 
    width: 100%; padding: 12px 16px; border: 2px solid #f1f5f9; border-radius: 12px;
    font-size: 14px; outline: none; transition: all 0.3s; background: #f8fafc; font-weight: 600;
}
.settings-card input:focus, .settings-card select:focus { border-color: var(--primary); background: white; box-shadow: 0 0 0 4px rgba(22,163,74,0.1); }

.btn-save-settings { 
    background: var(--primary); color: white; border: none; padding: 14px 28px;
    border-radius: 14px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 12px;
    transition: all 0.3s; margin-top: 10px; font-size: 15px;
}
.btn-save-settings:hover { transform: translateY(-3px); box-shadow: 0 10px 15px -3px rgba(22,163,74,0.3); }

.logo-preview-box { 
    margin: 20px 0; padding: 30px; background: #f8fafc; border-radius: 20px; 
    border: 2px dashed #e2e8f0; text-align: center;
}
.logo-preview-box img { max-height: 100px; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1)); }

.ba-upload-box { 
    margin: 20px 0; padding: 30px; background: #f8fafc; border-radius: 20px;
    border: 2px dashed var(--primary); text-align: center; cursor: pointer;
    transition: all 0.3s;
}
.ba-upload-box:hover { background: #f0fdf4; border-color: #15803d; }
.ba-upload-box i { font-size: 40px; color: var(--primary); margin-bottom: 15px; opacity: 0.8; }
.ba-upload-box p { margin: 0; font-size: 16px; font-weight: 800; color: #1e293b; }
.ba-upload-box small { color: #64748b; font-weight: 600; margin-top: 5px; display: block; }

.announcement-admin-card { 
    background: white; padding: 30px; border-radius: 24px;
    border: 1px solid #f1f5f9; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
}
.announcement-admin-card h3 { margin: 0 0 20px; font-size: 20px; font-weight: 800; color: #1e293b; display: flex; align-items: center; gap: 12px; }
.announcement-admin-card textarea { 
    width: 100%; padding: 18px; border: 2px solid #f1f5f9; border-radius: 16px;
    font-family: inherit; font-size: 15px; margin-bottom: 20px; resize: vertical;
    outline: none; transition: all 0.3s; background: #f8fafc; font-weight: 500; color: #334155;
}
.announcement-admin-card textarea:focus { border-color: var(--primary); background: white; }

/* MODAL MODERN */
.modal-overlay { 
    background: rgba(15, 23, 42, 0.6); 
    backdrop-filter: blur(8px);
}
.modal-box { 
    background: white; border-radius: 24px; padding: 40px; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.1);
}
.modal-box h2 { font-size: 24px; font-weight: 800; color: #1e293b; margin-bottom: 10px; }
.modal-sub { color: #64748b; font-size: 15px; margin-bottom: 30px; }
.modal-icon { width: 80px; height: 80px; border-radius: 24px; font-size: 32px; margin: 0 auto 24px; }

/* FOOTER LOGO */
.footer-logo { max-height: 40px; opacity: 0.8; margin-bottom: 10px; }

/* MODAL */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal-box { background: var(--surface); border-radius: 20px; padding: 36px; max-width: 440px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.2); display: flex; flex-direction: column; gap: 14px; }
.modal-icon { width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 26px; margin: 0 auto; }
.modal-icon-lock { background: #fef2f2; color: var(--danger); }
.modal-box { 
    background: var(--surface); 
    width: 95%; 
    max-width: 500px; 
    border-radius: 20px; 
    padding: 32px; 
    position: relative; 
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    max-height: 90vh;
    overflow-y: auto;
}
.modal-box-lg { max-width: 700px; }
.modal-box h2 { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 24px; display: flex; align-items: center; gap: 10px; }
.modal-sub { font-size: 14px; color: var(--text-muted); text-align: center; margin-top: -6px; }
.modal-section-title { font-size: 11px; font-weight: 800; color: var(--primary); letter-spacing: 1px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }

/* GRID UNTUK MODAL FORM */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
#modalAlert p, #modalConfirm p { font-size: 14px; color: var(--text-muted); text-align: center; }

/* FOOTER */
.app-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-muted); font-weight: 500; margin-top: auto; }

/* SPINNER */
.spinner { width: 20px; height: 20px; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* RESPONSIVE */
@media (max-width: 640px) {
  .check-card, .hasil-card { max-width: 100%; }
  .check-card-header { padding: 24px 20px 12px; }
  .check-form { padding: 0 20px 24px; }
  .detail-grid { grid-template-columns: 1fr; }
  .hasil-actions { flex-direction: column; }
  .modal-grid { grid-template-columns: 1fr; }
  .siswa-toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: flex-start; }
  .admin-tabs { overflow-x: auto; }
}
/* SCARY MODAL */
.scary-modal { border: 2px solid #ef4444 !important; background: #0f172a !important; color: #f1f5f9 !important; }
.scary-text { text-align: left; background: rgba(239, 68, 68, 0.05); padding: 20px; border-radius: 12px; margin: 20px 0; border-left: 4px solid #ef4444; }
.scary-text p { margin-bottom: 12px; font-weight: 600; }
.scary-text ol { padding-left: 20px; margin-bottom: 12px; }
.scary-text li { margin-bottom: 8px; font-size: 14px; color: #cbd5e1; }
.agreement-box { margin: 24px 0; padding: 16px; background: rgba(255,255,255,0.05); border-radius: 12px; text-align: left; }
.checkbox-container { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 700; font-size: 14px; color: #ef4444; }
.checkbox-container input { width: 20px; height: 20px; cursor: pointer; accent-color: #ef4444; }

/* RESPONSIVE TOOLBAR */
@media (max-width: 992px) {
    .siswa-toolbar { flex-direction: column; align-items: stretch; }
    .filter-group { max-width: 100%; flex-direction: column; }
    .filter-select, .search-input { width: 100% !important; }
    .toolbar-right { justify-content: space-between; }
    .toolbar-right .btn-action { flex: 1; justify-content: center; font-size: 12px; padding: 12px 8px; }
}

/* ACTION BUTTONS */
.action-btns { display: flex; gap: 8px; justify-content: center; }
.btn-edit, .btn-del {
    width: 34px; height: 34px; border: none; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
}
.btn-edit { background: #eff6ff; color: #3b82f6; }
.btn-edit:hover { background: #3b82f6; color: white; transform: translateY(-2px) rotate(8deg); box-shadow: 0 4px 12px rgba(59,130,246,0.3); }
.btn-del { background: #fef2f2; color: #ef4444; }
.btn-del:hover { background: #ef4444; color: white; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(239,68,68,0.3); }
