/* 
 * Override CSS - Sofia
 * Customizações específicas por página
 */

/* ────────────────────────────────────────────────────────────────────────────
   Fluxo B3
   ──────────────────────────────────────────────────────────────────────────── */
.page-fluxo-b3 .container-fluid {
    max-width: 100% !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   Fluxo Cambial
   ──────────────────────────────────────────────────────────────────────────── */
.page-fluxo-cambial .container-fluid {
    max-width: 100% !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   Fluxo Dólar
   ──────────────────────────────────────────────────────────────────────────── */
.page-fluxo-dolar .container-fluid {
    max-width: 100% !important;
}

/* Cards do sidebar com design Sofia */
.page-fluxo-dolar .card {
    border-radius: .75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.page-fluxo-dolar .card-header {
    background-color: transparent;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

/* Labels refinados */
.page-fluxo-dolar label {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Botões de exportar */
.btn-export {
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
}

.btn-export i {
    font-size: 0.875rem;
}

/* ────────────────────────────────────────────────────────────────────────────
   Zoom Modal Global
   ──────────────────────────────────────────────────────────────────────────── */
.zoomable-graph-wrapper {
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.zoomable-graph-wrapper:hover {
    opacity: 0.95;
}

.modal-zoom .modal-content {
    background-color: var(--bs-body-bg);
}

.modal-zoom .modal-header {
    border-bottom: 1px solid var(--bs-border-color);
}

.modal-zoom .modal-body {
    padding: 0;
}

/* ────────────────────────────────────────────────────────────────────────────
   Sidebar Global
   ──────────────────────────────────────────────────────────────────────────── */
.sidebar-emloy {
    background-color: #F4EAE4;
    min-height: calc(100vh - 100px);
    padding: 1.5rem;
}

.sidebar-emloy .card {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ────────────────────────────────────────────────────────────────────────────
   Spacing utilities
   ──────────────────────────────────────────────────────────────────────────── */
.gap-4 {
    gap: 1.5rem !important;
}

.fs-sm {
    font-size: 0.875rem !important;
}

.rounded-lg {
    border-radius: 0.75rem !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   DataTable enhancements
   ──────────────────────────────────────────────────────────────────────────── */
.dash-table-container {
    border-radius: 0.5rem;
    overflow: hidden;
}

.dash-spreadsheet-container .dash-spreadsheet-inner table {
    border-collapse: separate;
    border-spacing: 0;
}

/* Hover nas linhas */
.dash-table-container .dash-spreadsheet-inner tr:hover {
    background-color: rgba(218, 119, 86, 0.05) !important;
}

/* ────────────────────────────────────────────────────────────────────────────
   Diário Swing Trade
   ──────────────────────────────────────────────────────────────────────────── */
.page-diario-swing .container-fluid {
    max-width: 100% !important;
}

/* Dropdown escuro para combinar com sidebar */
.dash-dropdown-dark .Select-control {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Botões de ação nas tabelas */
.page-diario-swing .btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8125rem;
}

/* Accordion menor */
.page-diario-swing .accordion-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Cards com sombra suave */
.page-diario-swing .card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Métricas no header */
.page-diario-swing .metrics-summary {
    font-variant-numeric: tabular-nums;
}

/* ────────────────────────────────────────────────────────────────────────────
   Dados Ibovespa
   ──────────────────────────────────────────────────────────────────────────── */
.page-dados-ibovespa .container-fluid {
    max-width: 100% !important;
}

/* Cards com design Sofia */
.page-dados-ibovespa .card {
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Metric cards */
.page-dados-ibovespa .metric-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem;
    border-radius: 0.75rem;
    text-align: center;
}

/* ────────────────────────────────────────────────────────────────────────────
   Leitor de Notas
   ──────────────────────────────────────────────────────────────────────────── */
.page-leitor-notas .container-fluid {
    max-width: 100% !important;
}

/* Upload area */
.page-leitor-notas .dnd-zone {
    transition: all 0.3s ease;
}

.page-leitor-notas .dnd-zone:hover {
    border-color: var(--cta-primary) !important;
    background-color: rgba(218, 119, 86, 0.05) !important;
}

/* File list */
.page-leitor-notas .list-group-item {
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.page-leitor-notas .list-group-item:hover {
    background-color: rgba(218, 119, 86, 0.05);
}

/* Cards com design Sofia */
.page-leitor-notas .card {
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Métricas */
.page-leitor-notas .metric-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
}