/* ========== VERIFICAÇÃO FACIAL ========== */
.verificacao-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.verificacao-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.verificacao-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.verificacao-header .subtitulo {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.etapa-container {
    display: none;
    animation: fadeIn 0.5s ease;
}

.etapa-container.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== INSTRUÇÕES ========== */
.instrucoes-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.instrucoes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.instrucao-card {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    border-left: 5px solid #667eea;
    transition: transform 0.3s ease;
}

.instrucao-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.instrucao-card h4 {
    color: #667eea;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requisitos-section {
    background: #f0f4ff;
    border-radius: 15px;
    padding: 30px;
}

.requisitos-section h3 {
    color: #667eea;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requisitos-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.requisito-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
}

.requisito-item i {
    color: #10b981;
}

/* ========== CÂMERA ========== */
.camera-content {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.camera-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 4/3;
}

#cameraPreview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1); /* CORREÇÃO: Mantido para parecer com espelho */
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.guide-text {
    margin-top: 20px;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 30px;
    border-radius: 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    z-index: 3;
}

.guide-text i {
    color: #667eea;
    font-size: 1.5rem;
}

.camera-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.camera-status {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: white;
    border-radius: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.status-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f59e0b;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

/* ========== PREVIEW ========== */
.preview-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.foto-preview-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.foto-preview-img {
    width: 100%;
    height: auto;
    display: block;
    /* CORREÇÃO: Removida transformação scaleX(-1) */
    transform: none !important;
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 70%, rgba(0,0,0,0.7));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px;
}

.preview-check {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(16, 185, 129, 0.9);
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
}

.preview-dicas {
    background: #f0f4ff;
    border-radius: 15px;
    padding: 30px;
    width: 100%;
    max-width: 600px;
}

.preview-dicas h4 {
    color: #667eea;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.checklist {
    list-style: none;
    padding: 0;
}

.checklist li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.checklist li:last-child {
    border-bottom: none;
}

.checklist li i {
    color: #10b981;
}

/* ========== STATUS ========== */
.status-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    text-align: center;
}

.status-section {
    max-width: 600px;
    margin: 0 auto;
}

.status-icon {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 4rem;
}

.status-icon.status-pendente {
    background: #f0f4ff;
    color: #667eea;
    border: 5px solid #667eea;
}

.status-icon.status-aprovada {
    background: #f0fff4;
    color: #10b981;
    border: 5px solid #10b981;
}

.status-icon.status-rejeitada {
    background: #fff0f0;
    color: #ef4444;
    border: 5px solid #ef4444;
}

.status-icon.status-bloqueado {
    background: #f8f9fa;
    color: #6b7280;
    border: 5px solid #6b7280;
}

.status-desc {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.status-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 30px 0;
    text-align: left;
}

.status-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.status-info p:last-child {
    margin-bottom: 0;
}

.foto-aprovada-preview {
    width: 200px;
    height: 250px;
    margin: 0 auto 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #10b981;
}

.foto-aprovada-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Foto aprovada não deve ser espelhada */
    transform: none;
}

.rejeicao-detalhes {
    background: #fff0f0;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
    text-align: left;
}

.rejeicao-detalhes h4 {
    color: #ef4444;
    margin: 15px 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.motivo-texto, .observacao-texto {
    background: white;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #ef4444;
}

.tentativas-info {
    background: #fef3c7;
    border-radius: 15px;
    padding: 20px;
    margin: 20px 0;
}

.alerta-bloqueio {
    color: #d97706;
    background: #fffbeb;
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #d97706;
    margin-top: 15px;
}

.bloqueado-info {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin: 20px 0;
}

.bloqueado-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* ========== BOTÕES ========== */
.verificacao-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 18px 35px;
    font-size: 1.2rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-lg:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

/* ========== LOADING ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #667eea;
}

#loadingText {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* ========== RESPONSIVO ========== */
@media (max-width: 768px) {
    .verificacao-container {
        padding: 10px;
    }

    .verificacao-header h1 {
        font-size: 2rem;
    }

    .instrucoes-content,
    .camera-content,
    .preview-content,
    .status-content {
        padding: 20px;
    }

    .guide-circle {
        width: 220px;
        height: 280px;
    }

    .camera-controls {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .verificacao-footer {
        flex-direction: column;
        align-items: center;
    }
}

/* Estilos para status "sem foto" */
.status-sem-foto {
    border-left: 4px solid #6b7280;
    background-color: #f9fafb;
}

.status-sem-foto .status-badge {
    background-color: #6b7280;
    color: white;
}

.sem-foto-info {
    background-color: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 10px;
    font-size: 14px;
    color: #4b5563;
}

.sem-foto-info i {
    color: #6b7280;
    margin-right: 8px;
}

.sem-foto-img {
    filter: grayscale(100%);
    opacity: 0.7;
}
/* ========== ESTILOS PARA ESTATÍSTICAS CLICÁVEIS ========== */
.estatisticas-fotos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.estatistica-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.estatistica-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.estatistica-card.ativo {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-top: 5px solid;
    border: 2px solid;
}

.estatistica-card.ativo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: currentColor;
    opacity: 0.8;
}

/* Cores específicas para cada card quando ativo */
.estatistica-card:nth-child(1).ativo {
    border-color: #0b79d0;
    color: #0b79d0;
}

.estatistica-card:nth-child(2).ativo {
    border-color: #6b7280;
    color: #6b7280;
}

.estatistica-card:nth-child(3).ativo {
    border-color: #f59e0b;
    color: #f59e0b;
}

.estatistica-card:nth-child(4).ativo {
    border-color: #16a34a;
    color: #16a34a;
}

.estatistica-card:nth-child(5).ativo {
    border-color: #ef4444;
    color: #ef4444;
}

.estatistica-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
}

.estatistica-content {
    flex: 1;
}

.estatistica-content h3 {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #1f2937;
}

.estatistica-content p {
    font-size: 0.9rem;
    color: #6b7280;
    margin: 0;
}

/* Indicador de clique */
.estatistica-clicavel::before {
    content: '👆';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.estatistica-clicavel:hover::before {
    opacity: 1;
}

/* Animação de card */
@keyframes cardAnimation {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.card-animation {
    animation: cardAnimation 0.5s ease;
}

/* Responsivo para estatísticas */
@media (max-width: 768px) {
    .estatisticas-fotos {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .estatistica-card {
        padding: 15px;
    }

    .estatistica-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .estatistica-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .estatisticas-fotos {
        grid-template-columns: 1fr;
    }
}
