/* CSS Customizado para Dashboard BCB - Visual Melhorado */

/* Botões de período */
.btn-light {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    transition: all 0.2s ease;
}

.btn-light:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.2);
}

/* Cards */
.card {
    border: none;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
    border-radius: 8px 8px 0 0 !important;
}

/* Tabs do BCB */
#bcb-tabs .tab {
    margin-right: 8px;
}

#bcb-tabs .tab-content {
    padding: 0;
}

#bcb-tabs .tab--selected {
    background-color: #007bff;
    color: white;
    border-radius: 4px 4px 0 0;
}

/* Gráficos */
.dash-graph {
    border-radius: 4px;
}

/* Mini cards de indicadores */
.card-body h4 {
    font-weight: 600;
    font-size: 1.5rem;
}

.card-body h6 {
    font-weight: 400;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Offcanvas de filtros */
.offcanvas {
    box-shadow: -4px 0 16px rgba(0,0,0,0.1);
}

.offcanvas-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

/* Loading spinner */
.dash-spinner {
    border-color: #007bff !important;
}

/* Botões de ação nos cards */
.fa-expand, .fa-download {
    font-size: 14px;
}

/* Animações suaves */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease;
}

/* Estados dos botões de período */
.btn-light.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* Responsividade */
@media (max-width: 768px) {
    .card-header .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .card-header h5 {
        margin-bottom: 10px;
    }
    
    .btn-group-sm {
        margin-top: 8px;
    }
}

/* Tooltips */
.btn[title] {
    position: relative;
}

.btn[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 4px;
}

/* Scrollbar customizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}