/* Estilos para o sistema de upload de documentos */

body {
    background-color: #f5f5f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Efeito hover para a tabela de resultados */
.table-hover tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
    cursor: pointer;
}

/* Estilo para o botão de busca */
.btn-outline-secondary:hover {
    background-color: #6c757d;
    color: white;
}

/* Estilo para o campo de arquivo */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* Validação visual de formulário */
.was-validated .form-control:invalid,
.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid,
.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Estilo para o modal */
.modal-content {
    border-radius: 10px;
}

.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Logo e cabeçalho */
.navbar-brand img {
    max-height: 40px;
}

/* Responsividade */
@media (max-width: 768px) {
    .upload-form {
        padding: 15px;
    }
}

/* Estilos comuns para todo o sistema */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

footer {
    margin-top: auto;
}

/* Estilo para campos obrigatórios */
.required-field::after {
    content: " *";
    color: red;
}

/* Estilos para cabeçalhos de seção */
.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #dee2e6;
}

/* Estilos para cards com hover */
.card-hover:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Estilos para ícones estatísticos */
.stat-icon {
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

/* Melhorias de acessibilidade */
.btn:focus, .form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Estilo para alerta de carregamento */
.loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Melhorias na legibilidade de tabelas */
.table-improved {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.05);
}

.table-improved thead th {
    background-color: #f5f5f5;
    border-top: none;
    border-bottom: 2px solid #dee2e6;
}

.table-improved tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.05);
}

/* Melhorias em formulários */
.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: #0d6efd;
    opacity: 0.8;
}

/* Estilo para badges informativos */
.badge-info-count {
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 0.7rem;
}

/* Ajuste para layout responsivo */
@media (max-width: 576px) {
    .d-flex-responsive {
        flex-direction: column !important;
    }
    
    .me-responsive {
        margin-right: 0 !important;
        margin-bottom: 1rem !important;
    }
}

/* Animação de loading */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
} 