/* RESET */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

/* BODY */
body{
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('../Image/bunga.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
}

/* BACKGROUND OVERLAY */
body::before{
    content:"";
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.2);
    z-index:-1;
}

/* MAIN CONTAINER FOR FORM */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

/* FORM CARD */
.attendance-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    padding: 40px;
    width: 420px;
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3);
    color: #fff;
    animation: fadeUp 0.8s ease forwards;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* TITLE */
h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #000000;
    font-size: 28px;
}

/* INPUTS AND TEXTAREA */
input, textarea {
    width: 100%;
    padding: 12px;
    margin-top: 5px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    outline: none;
    background: rgba(57, 57, 57, 0.15);
    color: #fff;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    border-color: #000000;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.5);
}

/* STATUS BOX */
.status-box {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

/* RADIO BUTTONS (PRESENT / ABSENT) */
.status-box label {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    user-select: none;
    font-weight: 600;
}

.status-box input[type="radio"] {
    display: none;
}

/* HOVER & SELECTED EFFECT */
.status-box label.present:hover,
.status-box input[type="radio"]:checked + label.present {
    background: #28a745;
    color: #fff;
}

.status-box label.absent:hover,
.status-box input[type="radio"]:checked + label.absent {
    background: #dc3545;
    color: #fff;
}

/* SUBMIT BUTTON */
button {
    
    display:block;
    margin:auto;
    padding:12px 30px;
    background:#fff;
    border:none;
    border-radius:10px;
    font-weight:bold;
}

button:hover{
    transform:scale(1.05);
}

/* BACK BUTTON */
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    margin-top: 20px;
    margin-left: 20px;
    padding: 10px 18px;
    background: linear-gradient(135deg,#ff4d4d,#b30000);
    color:#fff;
    text-decoration:none;
    border-radius:8px;
    font-weight:600;
    transition: 0.3s;
}

.back-btn:hover {
    background:#fff;
    color:#b30000;
}

/* ANIMATIONS */
@keyframes fadeUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
