/* --- GLOBAL STYLES --- */
body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', sans-serif;
    overflow-x: hidden;
    margin: 0;
}

/* --- GLASSMORPHISM CARD (Halaman Utama) --- */
.main-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

/* --- LOGIN CARD (Halaman Admin) --- */
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    background: white;
}

/* --- LOGO ANIMATION (Floating) --- */
.school-logo {
    width: 110px;
    margin-bottom: 25px;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px) scale(1); filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2)); }
    50% { transform: translateY(-15px) scale(1.02); filter: drop-shadow(0 25px 15px rgba(0,0,0,0.1)); }
    100% { transform: translateY(0px) scale(1); filter: drop-shadow(0 5px 5px rgba(0,0,0,0.2)); }
}

/* --- FOOTER --- */
.footer {
    margin-top: auto;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

.creator-name {
    color: #ffc107;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}
.creator-name:hover { color: #fff; text-shadow: 0 0 10px #ffc107; }

/* --- LOADER ANIMATION --- */
#loader-area {
    display: none; 
    padding: 40px;
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    color: #6c757d;
    font-weight: 500;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* --- RESULT FADE IN --- */
.result-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- ADMIN PANEL HELPERS --- */
.icon-btn { width: 35px; height: 35px; display: inline-flex; align-items: center; justify-content: center; }