/* style.css - Estilos customizados complementares ao Tailwind */

/* Animações personalizadas */
@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse-slow {
    animation: pulse-slow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #1e3a8a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1e40af;
}

/* Transições suaves */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Melhorias de acessibilidade */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}

/* Estilo para inputs desabilitados */
input:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Melhorias para mobile */
@media (max-width: 640px) {
    /* Ajustes de espaçamento em mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Estilo para tabelas responsivas */
.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-container table {
    min-width: 100%;
}

/* Estilo para modais */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Estilo para cards com hover */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Estilo para botões de ação */
.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
}

/* Estilo para indicadores de status */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-success {
    background-color: #d1fae5;
    color: #065f46;
}

.status-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.status-error {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Animações de loading */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Estilo para vídeo da câmera */
#cameraVideo {
    transform: scaleX(-1); /* Espelhar vídeo (como um espelho) */
}

/* Estilo para preview da foto */
#photoPreview {
    transform: scaleX(-1); /* Manter espelhamento na preview */
}

/* Melhorias de impressão */
@media print {
    .no-print {
        display: none !important;
    }
}

