@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

/* ═══════════════════════════════════════════════════
   Design Tokens
   ═══════════════════════════════════════════════════ */
:root {
    --color-primary: #1e40af;
    --color-secondary: #3b82f6;
    --color-success: #10b981;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-text-dark: #1e293b;
    --color-text-light: #64748b;
    --color-bg-body: #f0f4ff;
    --color-surface: rgba(255, 255, 255, 0.82);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 14px rgba(0,0,0,.06);
    --shadow-lg: 0 12px 32px rgba(30,64,175,.08);
    --shadow-glow: 0 0 28px rgba(59,130,246,.22);
}

/* ═══════════════════════════════════════════════════
   Reset & Base
   ═══════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(160deg, #eef2ff 0%, #dbeafe 50%, #ede9fe 100%);
    color: var(--color-text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--color-text-dark);
    line-height: 1.3;
}

/* ═══════════════════════════════════════════════════
   Animated Background Blobs
   ═══════════════════════════════════════════════════ */
.particles {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.particles::before, .particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: .35;
    animation: blobFloat 14s infinite alternate ease-in-out;
}
.particles::before {
    width: 420px; height: 420px;
    background: var(--color-secondary);
    top: -120px; left: -80px;
}
.particles::after {
    width: 360px; height: 360px;
    background: #8b5cf6;
    bottom: -100px; right: -60px;
    animation-delay: -7s;
}
@keyframes blobFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 30px) scale(1.08); }
}

/* ═══════════════════════════════════════════════════
   Navbar
   ═══════════════════════════════════════════════════ */
.navbar {
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,.5);
    padding: .75rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.navbar-brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    max-width: 900px;
    margin: 0 auto;
}
.navbar-logo {
    width: 42px; height: 42px;
    object-fit: contain;
    border-radius: 8px;
}
.navbar-logo-placeholder { font-size: 1.8rem; }
.navbar-info { display: flex; flex-direction: column; min-width: 0; }
.navbar-school {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.navbar-address {
    font-size: .78rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════
   Layout
   ═══════════════════════════════════════════════════ */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════
   Glass Card
   ═══════════════════════════════════════════════════ */
.glass-card {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.glass-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

/* ═══════════════════════════════════════════════════
   Utilities
   ═══════════════════════════════════════════════════ */
.text-center { text-align: center; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }

.subtitle {
    color: var(--color-text-light);
    font-size: .92rem;
}

/* ═══════════════════════════════════════════════════
   Countdown
   ═══════════════════════════════════════════════════ */
.countdown-wrapper {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(30,64,175,.06), rgba(139,92,246,.06));
    border: 1px solid rgba(30,64,175,.1);
    text-align: center;
}
.countdown-wrapper .countdown-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: .92rem;
    color: var(--color-primary);
    margin-bottom: .75rem;
}
.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
}
.countdown-item {
    background: white;
    border-radius: var(--radius-sm);
    padding: .6rem .25rem;
    box-shadow: var(--shadow-sm);
}
.countdown-number {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--color-primary);
    line-height: 1.2;
}
.countdown-label {
    font-size: .65rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   Form
   ═══════════════════════════════════════════════════ */
.form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}
.form-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--color-text-dark);
}
.form-control {
    width: 100%;
    padding: .8rem 1rem;
    font-size: .95rem;
    font-family: 'Inter', sans-serif;
    border: 1.5px solid #d1d5db;
    border-radius: var(--radius-md);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.form-control:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}
.form-control:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
    opacity: .6;
}

/* ═══════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.5rem;
    font-size: .95rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all .25s ease;
    text-decoration: none;
    width: 100%;
}
.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: #fff;
    box-shadow: 0 4px 12px rgba(59,130,246,.35);
}
.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(59,130,246,.45);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
}
.btn-outline:hover:not(:disabled) {
    background: var(--color-primary);
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   Alerts
   ═══════════════════════════════════════════════════ */
.alert {
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: .88rem;
    line-height: 1.5;
    animation: slideDown .3s ease-out;
}
.alert-danger {
    background: rgba(239,68,68,.08);
    color: #b91c1c;
    border: 1px solid rgba(239,68,68,.15);
}
.alert-warning {
    background: rgba(245,158,11,.08);
    color: #92400e;
    border: 1px solid rgba(245,158,11,.15);
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════════════════════
   Result Page — Student Info
   ═══════════════════════════════════════════════════ */
.student-info {
    text-align: left;
    background: rgba(255,255,255,.6);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,.04);
}
.info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: .6rem 0;
    border-bottom: 1px dashed rgba(0,0,0,.07);
}
.info-row:last-child { border-bottom: none; }
.info-label { font-weight: 500; color: var(--color-text-light); font-size: .9rem; }
.info-value { font-weight: 600; color: var(--color-text-dark); text-align: right; font-size: .9rem; }

/* ═══════════════════════════════════════════════════
   Result Page — Status Badge
   ═══════════════════════════════════════════════════ */
.result-status {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
    margin-top: 1.25rem;
    text-align: center;
    animation: scaleIn .45s cubic-bezier(.175,.885,.32,1.275);
}
.status-lulus {
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 24px rgba(16,185,129,.25);
}
.status-tidak-lulus {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 8px 24px rgba(239,68,68,.25);
}
.status-icon { font-size: 3.5rem; display: block; margin-bottom: .25rem; }
.result-status h3 { color: #fff; margin-bottom: .4rem; font-size: 1.75rem; }
.result-status p  { color: rgba(255,255,255,.9); font-size: .9rem; }

@keyframes scaleIn {
    from { opacity: 0; transform: scale(.92); }
    to   { opacity: 1; transform: scale(1); }
}

/* ═══════════════════════════════════════════════════
   Footer
   ═══════════════════════════════════════════════════ */
.footer {
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(8px);
    padding: 1.25rem 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(0,0,0,.04);
    margin-top: auto;
}
.footer-copyright {
    font-size: .8rem;
    color: var(--color-text-light);
}

/* ═══════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════ */
.hero-section {
    text-align: center;
    margin-bottom: 2rem;
}
.hero-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 1rem auto;
    display: block;
    animation: scaleIn .6s cubic-bezier(.175,.885,.32,1.275);
}
.hero-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════
   Countdown Card
   ═══════════════════════════════════════════════════ */
.countdown-card {
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,.55);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 550px;
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease;
    animation: slideDown .5s ease-out;
}
.countdown-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.countdown-header-text {
    font-weight: 600;
    color: var(--color-warning);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}
.countdown-pulse {
    width: 10px;
    height: 10px;
    background-color: var(--color-warning);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
    animation: pulse 1.5s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulse {
    to { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
}
.countdown-date {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 2rem;
}
.countdown-note {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-top: 2rem;
}
.countdown-number-wrap {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-md);
    padding: 1rem 0;
    margin-bottom: 0.5rem;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}
.countdown-number {
    font-size: 2.2rem;
}

/* ═══════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════ */
@media (max-width: 600px) {
    .glass-card, .countdown-card { padding: 1.75rem 1.25rem; }
    .navbar { padding: .65rem 1rem; }
    .navbar-school { font-size: .95rem; }
    .navbar-address { font-size: .72rem; }
    .info-row { flex-direction: column; gap: .15rem; }
    .info-value { text-align: left; }
    .countdown-number { font-size: 1.6rem; }
    .countdown-label { font-size: .6rem; }
    .main-content { padding: 1.5rem 1rem; flex-direction: column; }
    .hero-title { font-size: 1.5rem; }
    .hero-subtitle { font-size: 1rem; }
}

