/* Estilos gerais */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
}

/* Abas */
.nav-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 1rem;
}

.nav-tabs .nav-link {
    color: #495057;
    font-weight: 500;
    border: none;
    padding: 0.75rem 1.5rem;
    margin-bottom: -2px;
    background: none;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border: none;
    color: #1f77b4;
    background-color: rgba(31, 119, 180, 0.05);
}

.nav-tabs .nav-link.active {
    color: #1f77b4;
    background-color: #fff;
    border: none;
    border-bottom: 3px solid #1f77b4;
    font-weight: 600;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.12);
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    font-weight: 600;
    padding: 1rem 1.25rem;
}

/* Cards de métricas */
.metric-card {
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.metric-card .card-body {
    padding: 1.5rem;
}

/* Cores temáticas */
.text-primary { color: #1f77b4 !important; }
.text-success { color: #2ca02c !important; }
.text-warning { color: #ff7f0e !important; }
.text-info { color: #17a2b8 !important; }
.text-danger { color: #d62728 !important; }

.bg-primary { background-color: #1f77b4 !important; }
.bg-success { background-color: #2ca02c !important; }
.bg-warning { background-color: #ff7f0e !important; }
.bg-info { background-color: #17a2b8 !important; }
.bg-dark { background-color: #343a40 !important; }

/* Botões */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Formulários */
.form-select, .form-control {
    border-radius: 6px;
    border: 1px solid #ced4da;
    transition: border-color 0.3s ease;
}

.form-select:focus, .form-control:focus {
    border-color: #1f77b4;
    box-shadow: 0 0 0 0.2rem rgba(31, 119, 180, 0.25);
}

.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Tabelas */
.table th {
    border-top: none;
    font-weight: 600;
    color: #495057;
    background-color: #f8f9fa;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.02);
}

/* Badges */
.badge {
    font-size: 0.75em;
    font-weight: 500;
    padding: 0.4em 0.6em;
}

/* Alertas */
.alert {
    border: none;
    border-radius: 8px;
    border-left: 4px solid;
    padding: 1rem 1.25rem;
}

.alert-info {
    border-left-color: #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
}

.alert-warning {
    border-left-color: #ff7f0e;
    background-color: rgba(255, 127, 14, 0.1);
}

.alert-success {
    border-left-color: #2ca02c;
    background-color: rgba(44, 160, 44, 0.1);
}

/* Container para gráficos */
.chart-container {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Animações */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .nav-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .metric-card {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        height: 250px;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* Utilitários */
.text-muted {
    color: #6c757d !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Ícones */
.fas, .fab {
    margin-right: 0.5rem;
}

/* Links de exportação */
.btn-outline-primary, .btn-outline-success, .btn-outline-danger {
    border-width: 2px;
    padding: 1rem 0.5rem;
}

.btn-outline-primary:hover {
    background-color: #1f77b4;
    border-color: #1f77b4;
}

.btn-outline-success:hover {
    background-color: #2ca02c;
    border-color: #2ca02c;
}

.btn-outline-danger:hover {
    background-color: #d62728;
    border-color: #d62728;
}