/* BASE STYLES TO PREVENT FLASH */
body, html { background-color: #111 !important; color: #eee !important; margin: 0; padding: 0; }

/* GLOBAL SLIDER OVERRIDES */
.rc-slider-rail, [class*="slider-rail"] { background-color: #555 !important; height: 6px !important; display: block !important; opacity: 1 !important; visibility: visible !important; }
.rc-slider-track, [class*="slider-track"] { background-color: #3498db !important; height: 6px !important; display: block !important; opacity: 1 !important; visibility: visible !important; }
.rc-slider-handle, [class*="slider-handle"] {
    background-color: #3498db !important;
    border: 4px solid #3498db !important;
    opacity: 1 !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    margin-top: -5px !important;
}
.rc-slider-tooltip, [class*="slider-tooltip"] {
    z-index: 9999 !important;
}
.rc-slider-tooltip-inner,
.rc-slider-tooltip-inner *,
[class*="slider-tooltip-inner"],
[class*="slider-tooltip-inner"] * {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 1px solid #00d4ff !important;
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.6) !important;
    font-weight: bold !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.rc-slider-tooltip-arrow, [class*="slider-tooltip-arrow"] {
    border-top-color: #000000 !important;
}

/* Date Picker Fixes */
html body .SingleDatePicker,
html body .SingleDatePickerInput,
html body .SingleDatePickerInput__withBorder,
html body .SingleDatePickerInput__withBorder_1,
html body .SingleDatePickerInput__with-border,
html body .DateInput,
html body .DateInput_1,
html body .DateInput_input,
html body .DateInput_input_1,
html body .SingleDatePickerInput_calendarIcon,
html body [class*="SingleDatePicker"] *,
html body [class*="DateInput"] * {
    background: #1e293b !important;
    background-color: #1e293b !important;
    color: #38bdf8 !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
}

html body .SingleDatePickerInput,
html body .SingleDatePickerInput__withBorder,
html body [class*="SingleDatePickerInput"] {
    border: 1px solid rgba(56, 189, 248, 0.4) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    display: inline-flex !important;
    align-items: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s ease-in-out !important;
}

html body .SingleDatePickerInput:hover,
html body .SingleDatePickerInput__withBorder:hover,
html body .DateInput_input__focused {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.5) !important;
}

html body .DateInput_input,
html body [class*="DateInput_input"] {
    border: none !important;
    box-shadow: none !important;
    font-size: 0.88rem !important;
    font-weight: 700 !important;
    text-align: center !important;
    letter-spacing: 0.5px !important;
    padding: 4px 10px !important;
    height: 32px !important;
    width: 120px !important;
    cursor: pointer !important;
}

html body .SingleDatePickerInput_calendarIcon,
html body [class*="SingleDatePickerInput_calendarIcon"] {
    padding: 0 8px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

html body .SingleDatePickerInput_calendarIcon svg,
html body [class*="SingleDatePickerInput_calendarIcon"] svg {
    fill: #38bdf8 !important;
    width: 15px !important;
    height: 15px !important;
}

html body .SingleDatePickerInput_clearDate {
    display: none !important;
}

/* DROPDOWN ICON FIXES */
[class*="-indicatorContainer"],
[class*="-clear-zone"],
[class*="-arrow-zone"],
.Select-arrow-zone,
.Select-clear-zone,
[class*="-indicatorSeparator"],
[class*="Select-arrow"],
[class*="Select-clear"] {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}
[class*="-indicatorContainer"] svg,
[class*="-clear-zone"] svg,
[class*="-arrow-zone"] svg,
.Select-arrow-zone svg,
.Select-clear-zone svg,
svg[class*="Select-arrow"],
svg[class*="Select-clear"],
.Select-arrow,
.Select-clear {
    fill: #ffffff !important;
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.Select-arrow { border-top-color: #ffffff !important; }
.is-open > .Select-control > .Select-arrow-zone > .Select-arrow { border-bottom-color: #ffffff !important; }

/* DROPDOWN MENU & OPTION FIXES — scoped to dropdown containers only */
.Select .Select-menu-outer, .Select .Select-option, .Select .VirtualizedSelectOption,
.dash-dropdown [class*="-menu"], .dark-mode-dropdown [class*="-menu"] {
    background-color: #222222 !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
}
.Select .Select-control,
.dash-dropdown [class*="-control"], .dark-mode-dropdown [class*="-control"] {
    background-color: #222222 !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
}
.Select .Select-placeholder,
.dash-dropdown [class*="-placeholder"],
.dark-mode-dropdown [class*="-placeholder"] {
    color: #aaaaaa !important;
}
.Select .Select-value-label,
.dash-dropdown [class*="-singleValue"],
.dark-mode-dropdown [class*="-singleValue"] {
    color: #ffffff !important;
}

/* Force white text on Dash dropdown button+span descendants */
button.dash-dropdown,
button.dash-dropdown span,
button.dash-dropdown span span,
button.dash-dropdown span span span,
button.dash-dropdown span span span span,
button.dark-mode-dropdown,
button.dark-mode-dropdown span {
    color: #ffffff !important;
    background-color: #222222 !important;
    opacity: 1 !important;
}
/* Dropdown list items (not global wildcard) */
.dash-dropdown [role="listbox"] *,
.dash-dropdown [role="option"],
.dark-mode-dropdown [role="listbox"] *,
.dark-mode-dropdown [role="option"] {
    color: #ffffff !important;
    background-color: #222222 !important;
}
