/* asset/style.css */

/* --- Dasar Halaman Ceria --- */
body {
    font-family: 'Comic Sans MS', 'Chalkboard SE', 'Ubuntu', sans-serif;
    background: linear-gradient(135deg, #fbc2eb 0%, #a6c1ee 100%);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* --- Kotak Utama Aplikasi --- */
.container {
    background-color: white;
    border-radius: 30px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    max-width: 480px;
    width: 100%;
    text-align: center;
    border: 6px solid #fff;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

/* Maskot / Logo Sekolah */
.logo-sekolah {
    font-size: 50px;
    margin-bottom: 10px;
    display: inline-block;
    animation: melayang 2.5s ease-in-out infinite;
}

h1 {
    color: #ff6b6b;
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 5px;
    text-shadow: 2px 2px #ffe3e3;
}

p.sub {
    color: #4ea8de;
    font-weight: bold;
    font-size: 15px;
    margin-top: 0;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Kotak Informasi Waktu Rilis */
.info-box {
    margin: 25px 0;
    padding: 20px;
    background: #fff3cd;
    border-radius: 20px;
    border: 2px dashed #ffc107;
    font-weight: bold;
    font-size: 15px;
    line-height: 1.6;
}

.waktu-rilis {
    color: #ff6b6b;
    font-size: 18px;
    display: inline-block;
    margin-top: 5px;
}

.form-group {
    margin-bottom: 25px;
}

/* --- Input dan Tombol Membal --- */
input[type="text"] {
    width: 85%;
    padding: 15px 20px;
    border: 4px solid #4ea8de;
    border-radius: 50px;
    font-size: 18px;
    text-align: center;
    outline: none;
    transition: all 0.3s;
    font-weight: bold;
    color: #4361ee;
}

input[type="text"]:focus {
    border-color: #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.4);
}

button {
    background: linear-gradient(135deg, #4cc9f0 0%, #4361ee 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 6px #3a0ca3;
    transition: transform 0.1s, box-shadow 0.1s;
}

button:active {
    box-shadow: 0 2px #3a0ca3;
    transform: translateY(4px);
}

.alert-error {
    background-color: #ffccd5;
    color: #c9184a;
    border: 3px dashed #ff758f;
    padding: 15px;
    border-radius: 20px;
    margin-top: 20px;
    font-weight: bold;
}

/* --- Hasil Kelulusan Mewah --- */
.box-hasil {
    margin-top: 30px;
    padding: 25px;
    border-radius: 25px;
    background: #f8f9fa;
    border: 3px dashed #4ea8de;
    animation: popUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.nama-siswa {
    font-size: 22px;
    color: #2b2d42;
    margin-bottom: 15px;
    font-weight: bold;
}

.status-lulus {
    background: linear-gradient(135deg, #52b788 0%, #74c69d 100%);
    color: white;
    padding: 20px;
    border-radius: 20px;
    font-size: 26px;
    font-weight: bold;
    box-shadow: 0 10px 20px rgba(82, 183, 136, 0.3);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.status-tidak {
    background: linear-gradient(135deg, #e63946 0%, #ffb5a7 100%);
    color: #641212;
    padding: 20px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: bold;
    border: 2px solid #e63946;
}

.tombol-kembali {
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
    color: #4361ee;
    font-size: 15px;
    font-weight: bold;
    transition: color 0.2s;
}

.tombol-kembali:hover {
    color: #ff6b6b;
}

/* --- Terompet Mengunci di Sudut Layar --- */
.trompet-kiri, .trompet-kanan {
    position: fixed;
    bottom: 10px;
    font-size: 55px;
    z-index: 999;
}

.trompet-kiri { left: 15px; transform: rotate(45deg); animation: hentakKiri 0.4s ease-out 1; }
.trompet-kanan { right: 15px; transform: rotate(-45deg); animation: hentakKanan 0.4s ease-out 1; }

/* --- Animasi --- */
@keyframes popUp {
    0% { transform: scale(0.6); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes hentakKiri {
    0% { transform: scale(0.4) rotate(45deg); }
    50% { transform: scale(1.4) rotate(30deg); }
    100% { transform: scale(1) rotate(45deg); }
}
@keyframes hentakKanan {
    0% { transform: scale(0.4) rotate(-45deg); }
    50% { transform: scale(1.4) rotate(-30deg); }
    100% { transform: scale(1) rotate(-45deg); }
}
@keyframes melayang {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
