*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, sans-serif;
}

body{
    background:#f3f5f9;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.container{
    width:100%;
    max-width:420px;
}

.card{
    background:white;
    padding:40px 30px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    text-align:center;
}

.logo-area img{
    width:90px;
    margin-bottom:20px;
}

h1{
    font-size:28px;
    color:#222;
    margin-bottom:10px;
}

.subtitle{
    color:#666;
    margin-bottom:30px;
    line-height:1.5;
}
.subtitle-area{
    margin-bottom:30px;
}

.school-name{
    font-size:20px;
    font-weight:700;
    color:#222;
    margin-bottom:6px;
}

.school-year{
    font-size:14px;
    color:#777;
    letter-spacing:0.5px;
}

.alert-box{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.5);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999;
}

.alert-content{
    background:white;
    padding:30px;
    border-radius:15px;
    width:90%;
    max-width:350px;
    text-align:center;
    animation:popup 0.3s ease;
}

.alert-content h3{
    margin-bottom:10px;
    color:#d32f2f;
}

.alert-content p{
    margin-bottom:20px;
    color:#555;
}

.alert-content button{
    background:#2e7d32;
    color:white;
    border:none;
    padding:12px 25px;
    border-radius:8px;
    cursor:pointer;
}

@keyframes popup{
    from{
        transform:scale(0.8);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }
}

form{
    display:flex;
    flex-direction:column;
    gap:15px;
}

input{
    padding:15px;
    border:1px solid #ccc;
    border-radius:10px;
    font-size:16px;
}

input:focus{
    outline:none;
    border-color:#2e7d32;
}

button{
    background:#2e7d32;
    color:white;
    border:none;
    padding:15px;
    border-radius:10px;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}

button:hover{
    background:#256428;
}

button:disabled{
    opacity:0.7;
    cursor:not-allowed;
}

#loadingBox{
    display:none;
    margin-top:30px;
}

.spinner{
    width:60px;
    height:60px;
    border:6px solid #ddd;
    border-top:6px solid #2e7d32;
    border-radius:50%;
    animation:spin 1s linear infinite;
    margin:0 auto 20px;
}

@keyframes spin{
    100%{
        transform:rotate(360deg);
    }
}

.hasil-card{
    animation:fadeIn 0.5s ease;
}

.success-icon{
    font-size:70px;
    margin-bottom:20px;
}

.lulus{
    color:#2e7d32;
    margin-bottom:20px;
}

.gagal{
    color:#d32f2f;
    margin-bottom:20px;
}

.nama{
    font-size:24px;
    font-weight:bold;
    margin-bottom:10px;
}

.kelas{
    color:#666;
    margin-bottom:30px;
}

.pdf-btn,
.back-btn{
    display:inline-block;
    background:#2e7d32;
    color:white;
    text-decoration:none;
    padding:14px 25px;
    border-radius:10px;
    transition:0.3s;
}

.pdf-btn:hover,
.back-btn:hover{
    background:#256428;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(10px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }
}