/* ============================================================
   SISMANSAKA Color System
   Primary  : #09656F (teal gelap)
   Secondary: #1B5E8E (biru laut)
   Accent   : #C97A14 (amber emas)
   Neutral  : #1E3335 (teal sangat gelap)
   ============================================================ */

:root {
    --primary:   #09656F;
    --primary-l: #0d8597;
    --primary-d: #064d55;
    --secondary: #1B5E8E;
    --accent:    #C97A14;
    --neutral:   #1E3335;
    --neutral-d: #101e1f;
}

*, *::before, *::after { box-sizing: border-box; }

/* ── Backgrounds ────────────────────────────────────────── */
.hero-bg {
    background:
        radial-gradient(ellipse 80% 60% at 0% 0%,   rgba(9,101,111,.6)  0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 100% 100%, rgba(27,94,142,.7) 0%, transparent 55%),
        linear-gradient(145deg, #0d1f21 0%, #1a2e30 50%, #0d1826 100%);
    min-height: 100vh;
}

/* ── Glass card ─────────────────────────────────────────── */
.glass-card {
    background: rgba(255,255,255,.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 8px 40px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.1);
}

/* ── Logo placeholder ───────────────────────────────────── */
.logo-placeholder {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 3px solid rgba(201,122,20,.5);
}

/* ── Countdown units ────────────────────────────────────── */
.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.flip-card {
    background: rgba(9,101,111,.25);
    border: 1px solid rgba(201,122,20,.3);
    border-radius: 14px;
    width: 72px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1);
    position: relative;
    overflow: hidden;
}

.flip-card span {
    font-size: 2.25rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    transition: transform .15s, opacity .15s;
}

.flip-card.flip span {
    animation: flipNum .35s ease-out;
}

@keyframes flipNum {
    0%   { transform: translateY(-6px); opacity: .3; }
    100% { transform: translateY(0);    opacity: 1;  }
}

.flip-card::after {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: rgba(201,122,20,.2);
}

.pulse-seconds {
    animation: glowPulse 1s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    from { box-shadow: 0 4px 20px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1); }
    to   { box-shadow: 0 4px 20px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.1), 0 0 12px rgba(201,122,20,.4); }
}

.countdown-sep {
    color: rgba(201,122,20,.6);
    font-size: 2rem;
    font-weight: 900;
    line-height: 80px;
    margin-top: -20px;
}

.unit-label {
    color: rgba(255,255,255,.45);
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin: 0;
}

@media (max-width: 360px) {
    .flip-card { width: 58px; height: 66px; }
    .flip-card span { font-size: 1.75rem; }
    .countdown-sep { line-height: 66px; font-size: 1.6rem; }
}

/* ── Fade-up animation (form reveal) ───────────────────── */
.fade-up {
    animation: fadeUp .55s ease-out both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Form elements (public) ─────────────────────────────── */
.form-label {
    display: block;
    font-size: .8rem;
    font-weight: 600;
    color: rgba(255,255,255,.6);
    margin-bottom: 6px;
    letter-spacing: .02em;
}

.form-input {
    width: 100%;
    padding: .65rem 1rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 12px;
    color: #fff;
    font-size: .9rem;
    transition: border-color .2s, background .2s, box-shadow .2s;
    outline: none;
}

.form-input::placeholder { color: rgba(255,255,255,.3); }

.form-input:focus {
    border-color: var(--accent);
    background: rgba(255,255,255,.13);
    box-shadow: 0 0 0 3px rgba(201,122,20,.2);
}

/* date input calendar icon tint */
.form-input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(.7);
    cursor: pointer;
}

/* ── Buttons (public) ───────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(9,101,111,.4);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(9,101,111,.5);
}

.btn-primary:active { transform: translateY(0); }

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1.25rem;
    background: linear-gradient(135deg, var(--accent), #a6630e);
    color: #fff;
    font-weight: 700;
    font-size: .875rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s;
    box-shadow: 0 4px 16px rgba(201,122,20,.4);
}

.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,122,20,.5); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1.25rem;
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.7);
    font-weight: 600;
    font-size: .875rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.12);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ── Hasil page backgrounds ─────────────────────────────── */
.hasil-lulus-bg {
    background:
        radial-gradient(ellipse 90% 70% at 50% -20%, rgba(9,101,111,.5) 0%, transparent 60%),
        linear-gradient(160deg, #0d1f21 0%, #0d2820 60%, #0d1826 100%);
    min-height: 100vh;
}

.hasil-tidak-lulus-bg {
    background: linear-gradient(160deg, #141822 0%, #1a1f28 100%);
    min-height: 100vh;
}

.hasil-tunda-bg {
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,122,20,.2) 0%, transparent 55%),
        linear-gradient(160deg, #1a1710 0%, #1a1a1a 100%);
    min-height: 100vh;
}

/* ── Hasil card headers ─────────────────────────────────── */
.card-header-lulus {
    background: linear-gradient(135deg, rgba(9,101,111,.8) 0%, rgba(27,94,142,.6) 100%);
    border-bottom: 1px solid rgba(201,122,20,.25);
}

.card-header-tidak_lulus {
    background: linear-gradient(135deg, rgba(45,55,72,.9) 0%, rgba(30,40,55,.9) 100%);
    border-bottom: 1px solid rgba(100,116,139,.2);
}

.card-header-tunda {
    background: linear-gradient(135deg, rgba(120,60,10,.7) 0%, rgba(90,55,10,.6) 100%);
    border-bottom: 1px solid rgba(201,122,20,.3);
}

/* ── Data rows (hasil) ──────────────────────────────────── */
.data-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.data-row:last-child { border-bottom: none; }

.data-label {
    color: rgba(255,255,255,.4);
    font-size: .78rem;
    font-weight: 500;
    flex-shrink: 0;
}

.data-value {
    color: rgba(255,255,255,.9);
    font-size: .875rem;
    text-align: right;
}

/* ── Sambutan boxes ─────────────────────────────────────── */
.sambutan-lulus {
    background: rgba(9,101,111,.15);
    border: 1px solid rgba(9,101,111,.3);
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    line-height: 1.6;
}

.sambutan-tidak_lulus {
    background: rgba(100,116,139,.12);
    border: 1px solid rgba(100,116,139,.2);
    color: rgba(255,255,255,.65);
    font-size: .82rem;
    line-height: 1.6;
}

.sambutan-tunda {
    background: rgba(201,122,20,.1);
    border: 1px solid rgba(201,122,20,.25);
    color: rgba(255,255,255,.7);
    font-size: .82rem;
    line-height: 1.6;
}

/* ── Admin sidebar ──────────────────────────────────────── */
.admin-sidebar {
    background: linear-gradient(180deg, var(--neutral) 0%, var(--neutral-d) 100%);
    border-right: 1px solid rgba(255,255,255,.06);
}

.nav-item {
    color: rgba(255,255,255,.55);
    transition: background .15s, color .15s;
}

.nav-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.9); }
.nav-item-active { background: rgba(9,101,111,.35) !important; color: #fff !important; }

/* ── Admin card ─────────────────────────────────────────── */
.admin-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}

/* ── Admin form elements ────────────────────────────────── */
.admin-label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 5px;
    letter-spacing: .01em;
}

.admin-input {
    width: 100%;
    padding: .55rem .85rem;
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: .875rem;
    color: #1f2937;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}

.admin-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(9,101,111,.12);
}

textarea.admin-input { resize: vertical; min-height: 80px; }

/* ── Admin buttons ──────────────────────────────────────── */
.btn-sm-primary {
    display: inline-flex;
    align-items: center;
    padding: .45rem 1rem;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: .82rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.btn-sm-primary:hover { background: var(--primary-l); }

.btn-sm-ghost {
    display: inline-flex;
    align-items: center;
    padding: .45rem 1rem;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    font-size: .82rem;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s;
}
.btn-sm-ghost:hover { background: #e5e7eb; }

/* ── Drop zone ──────────────────────────────────────────── */
.drop-zone { min-height: 120px; }
.drop-zone[style*="scale"] { transition: transform .15s, border-color .15s, background .15s; }

/* ── Admin table ────────────────────────────────────────── */
.th-cell {
    padding: 10px 16px;
    text-align: left;
    font-size: .75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

.td-cell {
    padding: 10px 16px;
    color: #374151;
    font-size: .875rem;
}

/* ── Tab buttons (settings) ─────────────────────────────── */
.tab-active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.tab-btn { color: #6b7280; }
.tab-btn:hover { color: #374151; }

/* ── Scrollbar (admin) ──────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,.25); }

/* ── Tidak Lulus — Surat Pemberitahuan ─────────────────── */
.notif-card {
    background: linear-gradient(160deg, #111827 0%, #0f172a 100%);
    border: 1px solid rgba(99,102,241,.18);
    box-shadow: 0 12px 48px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
}

.notif-topbar {
    background: linear-gradient(90deg, #3730a3, #1e3a8a, #1e40af);
}

.notif-header {
    background: linear-gradient(135deg, rgba(30,27,75,.6) 0%, rgba(15,23,42,.8) 100%);
    border-bottom: 1px solid rgba(99,102,241,.12);
}

.notif-badge {
    background: rgba(99,102,241,.15);
    border: 1px solid rgba(99,102,241,.3);
    color: #a5b4fc;
    letter-spacing: .12em;
}

.notif-icon-wrap {
    background: rgba(99,102,241,.12);
    border: 1px solid rgba(99,102,241,.25);
}

.notif-icon-color  { color: #818cf8; }
.notif-pre-title   { color: rgba(165,180,252,.6); }
.notif-title       { color: #e2e8f0; }
.notif-subtitle    { color: rgba(148,163,184,.5); }

.notif-body { background: transparent; }

.notif-to-block {
    background: rgba(99,102,241,.07);
    border: 1px solid rgba(99,102,241,.15);
}

.notif-to-label  { color: rgba(165,180,252,.5); }
.notif-to-name   { color: #e2e8f0; }
.notif-to-detail { color: rgba(148,163,184,.55); }

.notif-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99,102,241,.2), transparent);
}

.notif-message {
    color: rgba(203,213,225,.7);
    line-height: 1.75;
}

.notif-steps {
    background: rgba(15,23,42,.5);
    border: 1px solid rgba(99,102,241,.1);
}

.notif-steps-title { color: rgba(165,180,252,.45); }

.notif-step-num {
    background: rgba(99,102,241,.2);
    color: #a5b4fc;
    font-size: .65rem;
}

.notif-step-text { color: rgba(148,163,184,.7); }

.notif-footer-kepsek {
    border-top: 1px solid rgba(99,102,241,.1);
    padding-top: 1rem;
}

.notif-footer {
    border-top: 1px solid rgba(99,102,241,.08);
    color: rgba(100,116,139,.4);
    font-size: .7rem;
}

.btn-ghost-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .65rem 1.25rem;
    background: rgba(99,102,241,.08);
    color: rgba(165,180,252,.6);
    font-weight: 600;
    font-size: .875rem;
    border-radius: 12px;
    border: 1px solid rgba(99,102,241,.15);
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, color .15s;
}

.btn-ghost-dark:hover {
    background: rgba(99,102,241,.14);
    color: #a5b4fc;
}

/* ── Print (hasil page kartu) ───────────────────────────── */
@media print {
    body { background: #fff !important; }
    #btn-download, a[href="/"] { display: none !important; }
    .glass-card { background: #fff !important; border: 1px solid #ccc !important; box-shadow: none !important; }
    .data-label { color: #666 !important; }
    .data-value { color: #000 !important; }
}
