/* Dashboard de Vendas - Estilos Específicos */

/* Barra de filtros sticky */
.sticky-top {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Cards de KPIs */
.card.border-success .card-body {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.05) 0%, rgba(40, 167, 69, 0.1) 100%);
}

.card.border-primary .card-body {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.1) 100%);
}

.card.border-info .card-body {
    background: linear-gradient(135deg, rgba(23, 162, 184, 0.05) 0%, rgba(23, 162, 184, 0.1) 100%);
}

.card.border-warning .card-body {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.1) 100%);
}

.card.border-secondary .card-body {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.05) 0%, rgba(108, 117, 125, 0.1) 100%);
}

.card.border-danger .card-body {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.05) 0%, rgba(220, 53, 69, 0.1) 100%);
}

.card.border-dark .card-body {
    background: linear-gradient(135deg, rgba(52, 58, 64, 0.05) 0%, rgba(52, 58, 64, 0.1) 100%);
}

/* Gráficos */
.card canvas {
    max-height: 400px;
}

/* Tabelas */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

/* Tabs personalizadas */
.nav-tabs .nav-link {
    border: 1px solid transparent;
    border-top-left-radius: 0.375rem;
    border-top-right-radius: 0.375rem;
    color: #6c757d;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    border-color: #e9ecef #e9ecef #dee2e6;
    color: #495057;
}

.nav-tabs .nav-link.active {
    color: #495057;
    background-color: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
}

/* Hierarquia visual nas tabelas */
.table td {
    vertical-align: middle;
}

.fw-semibold {
    font-weight: 600;
}

/* Cores para atingimento */
.text-success.fw-bold {
    color: #28a745 !important;
}

.text-warning.fw-bold {
    color: #ffc107 !important;
}

.text-danger.fw-bold {
    color: #dc3545 !important;
}

/* Badges de status */
.badge {
    font-size: 0.75rem;
}

/* Filtros avançados */
.collapse .border-top {
    border-color: #dee2e6 !important;
}

/* Botões de ação */
.btn-outline-success:hover {
    background-color: #28a745;
    border-color: #28a745;
}

.btn-outline-info:hover {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

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

/* Responsividade */
@media (max-width: 768px) {
    .card canvas {
        max-height: 250px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .card-header h5 {
        font-size: 1rem;
    }
    
    .h4 {
        font-size: 1.25rem;
    }
    
    .nav-tabs .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Animações */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

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

/* Loading states */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #6c757d;
}

/* Melhorias nos formulários */
.form-select:focus,
.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Estilos para o relatório consolidado */
.text-primary.fw-bold {
    color: #007bff !important;
}

.text-info.fw-semibold {
    color: #17a2b8 !important;
}

.text-secondary {
    color: #6c757d !important;
}

/* Estilos para checkboxes */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-input:focus {
    border-color: #007bff;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

/* Melhorias na tabela mensal */
.bg-light.fw-bold {
    background-color: #f8f9fa !important;
    font-weight: 700 !important;
}

/* Estilos para gráfico de tendência */
#graficoTendencia {
    max-height: 400px;
}

/* Melhorias nos ícones */
.fas.fa-2x {
    opacity: 0.8;
}

.text-muted.small {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}