* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/images/login.png');
    background-size: contain;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* .attendance-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 3rem;
    max-width: 800px;
    width: 95%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
} */

.attendance-container {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(135, 36, 31, 0.37);
    padding: 3rem 2.5rem;
    width: 95%;
    max-width: 800px;
    text-align: center;
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.institute-logo {
    background: linear-gradient(135deg, #ff4e50 0%, #c31432 100%);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: rotate(-5deg);
    transition: transform 0.3s ease;
}

.institute-logo:hover {
    transform: rotate(0deg) scale(1.05);
    cursor: pointer;
}


.institute-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.institute-subtitle {
    color: #f2f2f2;
    font-size: 1rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.time-display {
    background: linear-gradient(45deg, #dc2626, #ef4444);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.3);
}

.current-time {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
}

.current-date {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

.input-replacement-row {
    display: flex;
    gap: 1.5rem;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.cedula-group {
    flex: 2;
    text-align: left;
}

.replacement-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    min-height: 80px;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-label {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.25);
    background: white;
}

.replacement-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 1.2rem;
    border: 2px solid #e5e7eb;
    height: fit-content;
}

.replacement-title {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    text-align: center;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
    display: none;
}

.checkbox-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid #dc2626;
    border-radius: 6px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: white;
}

.custom-checkbox input[type="checkbox"]:checked+.checkbox-indicator {
    background: #dc2626;
    border-color: #dc2626;
}

.custom-checkbox input[type="checkbox"]:checked+.checkbox-indicator::after {
    content: '✓';
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-label {
    color: #374151;
    font-weight: 500;
    font-size: 1rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-attendance {
    flex: 1;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-entrada {
    background: linear-gradient(45deg, #059669, #10b981);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-entrada:hover {
    background: linear-gradient(45deg, #047857, #059669);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-salida {
    background: linear-gradient(45deg, #dc2626, #ef4444);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-salida:hover {
    background: linear-gradient(45deg, #b91c1c, #dc2626);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.status-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 500;
    display: none;
}

.status-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.status-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.footer-info {
    margin-top: 2rem;
    color: #f2f2f2;
    font-size: 1rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .input-replacement-row {
        flex-direction: column;
        gap: 1rem;
    }

    .cedula-group,
    .replacement-group {
        width: 100%;
    }

    .replacement-group {
        min-height: auto;
    }
}

@media (max-width: 576px) {
    .attendance-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
        width: 98%;
    }

    .current-time {
        font-size: 2rem;
    }

    .btn-group {
        flex-direction: column;
    }

    .input-replacement-row {
        gap: 0.8rem;
    }
}
