﻿/* Estilo do relógio */
.clock-display {
    font-family: 'Segoe UI', 'Arial', sans-serif;
    color: #1976d2;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(25,118,210,0.10);
}

/* Cards principais */
.card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(25,118,210,0.08);
    margin-bottom: 1rem;
}

/* Área das fotos: quadrada e centralizada */
.foto-container {
    position: relative;
    height: 320px;
    width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    margin: 0 auto;
}

/* Foto capturada e foto do cadastro: quadradas, centralizadas, sem distorção */
.usuario-foto-preview {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    background: #f8f9fa;
    display: block;
}

/* Webcam ao vivo: quadrada */
.webcam-video {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 14px;
    background: #f8f9fa;
    display: block;
}

/* Overlay de confiança */
.confianca-overlay {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 12px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: bold;
    z-index: 2;
}

/* Mensagem flutuante */
.mensagem-flutuante {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    min-width: 300px;
    max-width: 80%;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    animation: fadeInOut 5s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

/* Responsividade para tablets */
@media (max-width: 992px) {
    .foto-container {
        height: 220px;
        width: 220px;
    }

    .usuario-foto-preview,
    .webcam-video {
        width: 200px;
        height: 200px;
    }
}

/* Responsividade para celulares */
@media (max-width: 576px) {
    .container-fluid {
        padding: 0.5rem;
    }

    .card {
        margin-bottom: 0.5rem;
    }

    .foto-container {
        height: 140px;
        width: 140px;
    }

    .usuario-foto-preview,
    .webcam-video {
        width: 120px;
        height: 120px;
    }

    .display-4 {
        font-size: 2rem;
    }

    h5 {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.3rem 0.6rem;
        font-size: 1rem;
    }
}

/* Ajuste para badge de ação */
.badge.fs-6 {
    font-size: 1rem;
    padding: 0.5em 1em;
    border-radius: 8px;
}
