/* Face Detection Styles */
.face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px dashed #ffffff;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.5);
    z-index: 10;
    pointer-events: none;
}

.face-detection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 15;
    pointer-events: none;
}

.face-detection-box {
    position: absolute;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.7);
}

.face-detection-box.error {
    border-color: #F44336;
    box-shadow: 0 0 10px rgba(244, 67, 54, 0.7);
}

.face-detection-message {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 20;
    pointer-events: none;
}

.face-detection-message.error {
    background: rgba(244, 67, 54, 0.8);
}

.face-detection-message.success {
    background: rgba(76, 175, 80, 0.8);
}

/* Camera Canvas Styles */
.camera-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto;
    background: #000;
}

#camera-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Face Status Indicator */
.face-status-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 15px;
    border-radius: 20px;
    margin: 10px auto;
    max-width: fit-content;
    font-size: 14px;
    font-weight: 500;
    background: #F5F5F5;
}

.face-status-indicator.detected {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.face-status-indicator.not-detected {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.face-status-indicator.partial {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

/* Animation for scanning */
@keyframes scanning {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 0% 100%;
    }
}

.scanning-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, 
                transparent 0%, 
                rgba(76, 175, 80, 0.2) 50%, 
                transparent 100%);
    background-size: 100% 200%;
    animation: scanning 2s linear infinite;
    pointer-events: none;
    z-index: 5;
    opacity: 0.7;
}
