/* === RESET E BASE === */
html, body, #_dash-app-content, .app-container, .dash-bootstrap {
    height: 100% !important;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(#0D0F28, #0D0F28) fixed;
    color: white !important;
}

/* === TEXTO E ELEMENTOS === */
h1, h2, h3, h4, h5, h6, label, p, div, span, a {
    color: white !important;
}

/* === CAMPOS DE ENTRADA === */
input[type="text"], input[type="password"], input[type="email"],
input[type="number"], textarea, .form-control {
    background-color: #1C1F3A !important;
    color: white !important;
    border: 1px solid #3B3F63 !important;
}

/* === DROPDOWNS === */
.Select-control, .Select-menu-outer, .VirtualizedSelectOption, .Select-value-label {
    background-color: #1C1F3A !important;
    color: white !important;
    border-color: #3B3F63 !important;
}

/* === TABELAS === */
.table, .table th, .table td {
    background-color: #1C1F3A !important;
    color: white !important;
    border-color: #3B3F63 !important;
}

/* === BOTÕES === */
.btn-primary, .btn-secondary, .btn-danger, .btn-success, .btn-info {
    color: white !important;
    background-color: #2C2F5A !important;
    border-color: #2C2F5A !important;
}

.btn-primary:hover, .btn-secondary:hover,
.btn-danger:hover, .btn-success:hover, .btn-info:hover {
    background-color: #444878 !important;
    border-color: #444878 !important;
}

/* === DATATABLE === */
.dash-table-container .dash-spreadsheet-container {
    background-color: #1C1F3A !important;
    color: white !important;
}

/* === OFFCANVAS === */
.offcanvas {
    background-color: #0B0F2B !important;
    color: white !important;
}
.offcanvas .btn, .offcanvas .nav-link {
    color: white !important;
}
.offcanvas-header .btn-close {
    filter: invert(1);  /* deixa o botão X branco */
}
.dash-bootstrap .offcanvas-backdrop {
    z-index: 1050;
}

/* === GRÁFICO LIVE === */
#gex-graph-live {
    width: 100% !important;
    flex: 1 1 auto !important;
    height: auto !important;
    max-height: unset !important;
}

/* Telas grandes */
@media (min-width: 769px) {
    #gex-graph-live {
        height: calc(100dvh - 40px) !important;
    }
}

@media (orientation: landscape) and (max-width: 1024px) {
  #gex-graph-live {
    height: 60vh !important;
    max-height: none;
  }
}

/* Telas pequenas (mobile) */
@media (max-width: 768px) {
    .offcanvas img {
        height: 50px !important;
    }

    .offcanvas h5 {
        font-size: 1rem !important;
        margin-bottom: 0.5rem;
    }

    .text-light {
        font-size: 0.9rem;
    }

    .menu-logo {
        max-width: 70%;
        display: block;
        margin: auto;
    }

    .gex-graph {
        height: calc(100vh - 140px) !important;
    }

    #gex-graph-live {
        height: 75vh !important;
        max-height: 600px;
    }
}

/* Coluna com gráfico (flex) */
.dash-live-graph {
    height: 100% !important;
    display: flex;
    flex-direction: column;
}

/* Corrigido: permitir rolagem vertical */
html, body, #root, .dash-container {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    background-color: #0B0F2B;
}

#open-sidebar {
    margin-left: 0.5rem;
    margin-right: 0.5rem;
}

/* Ícones */
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css');