/* ==========================================================================
   1. GERAL E SCROLLBAR
   ========================================================================== */
body {
    background-color: #0f172a; 
    margin: 0;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: #0f172a; 
}
::-webkit-scrollbar-thumb {
    background: #334155; 
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #475569; 
}

/* ==========================================================================
   2. ANIMAÇÃO DA SIDEBAR (TOGGLE)
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    padding: 2rem 1rem;
    background-color: #020617;
    border-right: 1px solid #334155;
    transition: all 0.5s ease-in-out;
    z-index: 1050;
    overflow-x: hidden; 
    overflow-y: auto;   
    white-space: nowrap;
    display: flex;
    flex-direction: column;
}

.sidebar-collapsed {
    width: 0px;
    padding: 0;
    border: none;
    opacity: 0;
    overflow: hidden; 
}

.content {
    margin-left: 320px; 
    padding: 2rem 1rem;
    background-color: #0f172a;
    min-height: 100vh;
    transition: all 0.5s ease-in-out;
}

.content-expanded {
    margin-left: 0px; 
    padding-left: 2rem; 
}

/* ==========================================================================
   3. DROPDOWN (REACT-SELECT) - MODO ESCURO FORÇADO
   ========================================================================== */
/* Adicionado 'body' para aumentar a especificidade e vencer o tema Slate */
body .dash-dropdown .Select-control, 
body .dash-dropdown .Select-menu-outer,
body .dash-dropdown .Select-multi-value-wrapper {
    background-color: #1e293b !important;
    border: 1px solid #334155 !important;
}

body .dash-dropdown .Select-value-label, 
body .dash-dropdown .Select-placeholder, 
body .dash-dropdown .Select-input > input {
    color: white !important;
}

body .VirtualizedSelectOption {
    color: #cbd5e1 !important;
    background-color: #1e293b !important;
}

body .VirtualizedSelectOptionFocused {
    background-color: #0ea5e9 !important; 
    color: white !important;
}

body .Select-value {
    background-color: rgba(14, 165, 233, 0.2) !important; 
    border: 1px solid #0ea5e9 !important;
    color: #0ea5e9 !important;
}

/* ==========================================================================
   4. DATEPICKER RANGE - MODO ESCURO FORÇADO
   ========================================================================== */
body .DateRangePickerInput {
    background-color: transparent !important;
    border: none !important;
}

body .DateInput {
    background-color: transparent !important;
}

/* Inputs de Data */
body .DateInput_input {
    background-color: #1e293b !important;
    color: #f8fafc !important;
    border: 1px solid #334155 !important;
    border-radius: 6px;
}

body .DateInput_input__focused {
    border-color: #0ea5e9 !important;
}

/* Popup do Calendário */
body .DayPicker, 
body .DayPicker_transitionContainer, 
body .CalendarMonth, 
body .CalendarMonthGrid, 
body .DayPicker_weekHeader {
    background-color: #1e293b !important;
}

body .CalendarDay__default {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
    border: 1px solid #334155 !important;
}

body .CalendarDay__selected, 
body .CalendarDay__selected:hover {
    background: #0ea5e9 !important;
    color: white !important;
}

body .CalendarDay__selected_span {
    background: rgba(14, 165, 233, 0.2) !important;
    color: white !important;
}

body .CalendarMonth_caption {
    color: #f8fafc !important;
}