* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(
        135deg,
        #e8eff7,
        #f5f7fb
    );
    min-height: 100vh;
    color: #243247;
}

.container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 15px;
}

.main-card {
    width: 100%;
    max-width: 560px;
    background: white;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0,0,0,0.10);
}

.header {
    background: linear-gradient(
        135deg,
        #102f50,
        #164c80
    );
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.logo {
    width: 85px;
    height: 85px;
    object-fit: contain;
    margin-bottom: 15px;
}

.header h2 {
    font-size: 20px;
    margin-bottom: 8px;
}

.header p {
    font-size: 12px;
    letter-spacing: 1px;
}

.content {
    padding: 30px;
}

.content h1 {
    font-size: 25px;
    color: #102f50;
    text-align: center;
    margin-bottom: 15px;
    line-height: 1.4;
}

.description {
    text-align: center;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 30px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 10px;
}

input[type="text"] {
    width: 100%;
    padding: 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 16px;
    outline: none;
    transition: 0.2s;
}

input[type="text"]:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.btn-primary {
    width: 100%;
    background: #164c80;
    color: white;
    padding: 16px;
    margin-top: 16px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.btn-primary:hover {
    background: #102f50;
}

.information {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    border-radius: 8px;
    padding: 16px;
    margin-top: 25px;
    font-size: 13px;
    line-height: 1.7;
    color: #334155;
}

footer {
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 12px;
    line-height: 1.8;
}

#result {
    margin-top: 20px;
}

@media (max-width: 480px) {

    .content {
        padding: 22px;
    }

    .content h1 {
        font-size: 21px;
    }

    .header h2 {
        font-size: 17px;
    }

    .main-card {
        border-radius: 15px;
    }

}
/* Data Calon Murid */

.data-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
    margin-top: 20px;
}

.data-card h3 {
    color: #164c80;
    margin-bottom: 15px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.data-row:last-child {
    border-bottom: none;
}

.data-row span {
    color: #64748b;
}

.data-row strong {
    text-align: right;
}

/* Pilihan Kehadiran */

.attendance-title {
    font-size: 16px;
    line-height: 1.5;
    margin: 25px 0 15px;
}

.attendance-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    margin-bottom: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: normal;
    transition: 0.2s;
}

.attendance-option:hover {
    background: #eff6ff;
}

.attendance-option:has(input:checked) {
    background: #eff6ff;
    border-color: #2563eb;
}

.attendance-option input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #164c80;
}

.attendance-option span {
    flex: 1;
}

.attendance-option small {
    color: #64748b;
    white-space: nowrap;
}

/* Jumlah Peserta */

.total-box {
    display: flex;
    justify-content: space-between;
    padding: 18px;
    margin-top: 20px;
    border-radius: 10px;
    background: #eff6ff;
    color: #164c80;
}

.btn-success {
    width: 100%;
    background: #15803d;
    color: white;
    padding: 16px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 15px;
}

.btn-success:hover {
    background: #166534;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
    text-align: center;
    line-height: 1.8;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
    text-align: center;
}
