/* Contenedor principal */
.registro-asistencia-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    padding: 2rem;
    height: calc(100vh - 4rem);
    background-color: #f8f9fa;
}

/* Sección de la cámara */
.camera-section {
    position: relative;
    background-color: #000;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.camera-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay y guía facial */
.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.facial-guide {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.guide-circle {
    width: 300px;
    height: 300px;
    border: 4px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: relative;
    transition: all 0.3s ease;
}

.facial-guide.detected .guide-circle {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.5);
}

.status-text {
    color: white;
    font-size: 1.25rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

/* Sección de información */
.info-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-card {
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.status-card.success {
    background-color: #10b981;
    color: white;
}

/* Animaciones */
.success-animation i {
    font-size: 4rem;
    color: white;
    animation: popIn 0.5s ease;
}

.error-animation i {
    font-size: 4rem;
    color: #ef4444;
    animation: shake 0.5s ease;
}

.waiting-animation i {
    font-size: 4rem;
    color: #6b7280;
    animation: pulse 2s infinite;
}

/* Estado de procesamiento */
.camera-section.processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.retry-button {
    background-color: #4b5563;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.retry-button:hover {
    background-color: #374151;
}

/* Animaciones keyframes */
@keyframes popIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .registro-asistencia-container {
        grid-template-columns: 1fr;
    }

    .camera-section {
        height: 60vh;
    }
}
