/* Kotak utama form pencarian kelulusan */
.pencarian-kelulusan {
    max-width: 600px;
    margin: 40px auto;
    padding: 25px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    font-family: Arial, sans-serif;
}

/* Baris input + tombol */
.search-form {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-bottom: 20px;
}

#nisn-input {
    flex: 1;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Tombol cek status */
#cari-kelulusan {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}
#cari-kelulusan:hover {
    background: #005f8d;
}

/* Label status kelulusan */
.status-label {
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* Warna untuk status */
.status-lulus {
    background: #d4edda;
    color: #155724;
}

.status-tidak {
    background: #f8d7da;
    color: #721c24;
}

/* Pesan error */
#error-message {
    color: #dc3545;
    font-weight: bold;
}


.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive */
@media screen and (max-width: 600px) {
    .search-form {
        flex-direction: column;
    }

    #cari-kelulusan {
        width: 100%;
    }
}
