/* Reset & Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding-top: 50px;
}

.container {
    width: 90%;
    max-width: 420px;
}

.card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    text-align: center;
    border-top: 6px solid #1a5f7a;
}

/* --- CSS UNTUK LOGO (REVISI) --- */
.logo-sekolah {
    max-width: 80px; /* Ukuran maksimal logo */
    height: auto;     /* Menjaga proporsi */
    margin: 0 auto 15px auto; /* Rata tengah dan jarak ke tulisan bawah */
    display: block;   /* Memastikan margin auto bekerja */
}

/* Header Sections - Dirapatkan */
.title-top {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
    letter-spacing: 1px;
    line-height: 1;
}

.school-name {
    font-size: 1.7rem;
    color: #1a5f7a;
    font-weight: 800;
    margin: 4px 0; /* Jarak sangat rapat */
    line-height: 1.1;
}

.subtitle {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 25px;
}

/* Form */
input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    text-align: center;
    transition: 0.3s;
}

input:focus {
    border-color: #1a5f7a;
    outline: none;
}

button {
    width: 100%;
    padding: 12px;
    background: #1a5f7a;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

button:hover {
    background: #13495e;
}

/* Result Section */
.hidden { display: none; }
.divider { height: 1px; background: #eee; margin: 15px 0; }

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.status-box {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    font-size: 1.4rem;
    font-weight: 800;
}

.lulus { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.tidak-lulus { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }

.pesan {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.btn-back { background: #95a5a6; margin-top: 15px; }

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #1a5f7a;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    animation: spin 1s linear infinite;
    margin: 15px auto;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

footer {
    margin-top: 20px;
    font-size: 0.75rem;
    color: #aaa;
    text-align: center;
}