/* Light Theme (Default) */
:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --accent-color: #3498db;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --dropdown-bg: #ffffff;
    --dropdown-border: #e9ecef;
    --dropdown-text: #2c3e50;
    --dropdown-hover: #f8f9fa;
    --button-bg: #3498db;
    --button-hover: #2980b9;
}

/* Dark Theme */
.dark-theme {
    --bg-primary: #000000;
    --bg-secondary: #111111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --border-color: #333333;
    --shadow: 0 8px 32px rgba(0,0,0,0.8);
    --accent-color: #238636;
    --success-color: #2ea043;
    --warning-color: #d29922;
    --danger-color: #da3633;
    --dropdown-bg: #1a1a1a;
    --dropdown-border: #333333;
    --dropdown-text: #ffffff;
    --dropdown-hover: #2a2a2a;
    --button-bg: #238636;
    --button-hover: #2ea043;
}

/* Base styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
    margin: 0;
    padding: 0;
}

/* Theme container */
#theme-container {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    min-height: 100vh;
}

/* Metric cards */
.metric-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-primary);
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.metric-card h3 {
    color: var(--text-primary) !important;
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: bold;
}

.metric-card p {
    color: var(--text-secondary) !important;
    margin: 0;
    font-size: 14px;
}

/* Chart containers */
.chart-container {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

/* Control panel */
.control-panel {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.control-label {
    font-weight: bold;
    color: var(--text-primary);
    white-space: nowrap;
    min-width: fit-content;
}

.control-dropdown {
    min-width: 150px;
}

.control-button {
    background: var(--button-bg);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.control-button:hover {
    background: var(--button-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.control-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Dropdown styling (robusto para dark/light e menus portaled) */
.trader-filter-dropdown,
.trader-filter-dropdown .Select,
.trader-filter-dropdown .Select-control,
.trader-filter-dropdown .Select-menu-outer,
.trader-filter-dropdown .Select-menu,
.trader-filter-dropdown .Select-option,
.trader-filter-dropdown .VirtualizedSelectOption {
    border-radius: 6px !important;
}

.trader-filter-dropdown .Select-control,
.trader-filter-dropdown .Select-menu-outer,
.trader-filter-dropdown .Select-menu {
    box-shadow: none !important;
}

/* Remove truncation desnecessaria no valor selecionado */
.trader-filter-dropdown .Select-value,
.trader-filter-dropdown .Select-value-label {
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

.trader-filter-dropdown .Select--single > .Select-control .Select-value,
.trader-filter-dropdown .Select.has-value.Select--single > .Select-control .Select-value,
.trader-filter-dropdown .Select.has-value.is-pseudo-focused.Select--single > .Select-control .Select-value {
    display: flex !important;
    align-items: center !important;
    padding-right: 32px !important;
}

/* LIGHT theme */
.light-theme .trader-filter-dropdown .Select-control,
.theme-light .Select-control {
    background-color: #ffffff !important;
    border: 1px solid #d9dee5 !important;
    color: #22313f !important;
}

.light-theme .trader-filter-dropdown .Select.is-open > .Select-control,
.theme-light .Select.is-open > .Select-control,
.light-theme .trader-filter-dropdown .Select.is-focused:not(.is-open) > .Select-control,
.theme-light .Select.is-focused:not(.is-open) > .Select-control {
    background-color: #ffffff !important;
    border-color: #2c7be5 !important;
}

.light-theme .trader-filter-dropdown .Select-value-label,
.theme-light .Select-value-label,
.light-theme .trader-filter-dropdown .Select-input > input,
.theme-light .Select-input > input {
    color: #22313f !important;
}

.light-theme .trader-filter-dropdown .Select-placeholder,
.theme-light .Select-placeholder,
.light-theme .trader-filter-dropdown .Select-arrow-zone,
.theme-light .Select-arrow-zone {
    color: #5f6b7a !important;
}

.light-theme .trader-filter-dropdown .Select-menu-outer,
.theme-light .Select-menu-outer,
.light-theme .VirtualizedSelectOption,
.theme-light .VirtualizedSelectOption,
.light-theme .trader-filter-dropdown .Select-option,
.theme-light .Select-option {
    background-color: #ffffff !important;
    color: #22313f !important;
    border-color: #d9dee5 !important;
}

.light-theme .VirtualizedSelectFocusedOption,
.theme-light .VirtualizedSelectFocusedOption,
.light-theme .trader-filter-dropdown .Select-option.is-focused,
.theme-light .Select-option.is-focused {
    background-color: #f1f5f9 !important;
    color: #22313f !important;
}

.light-theme .trader-filter-dropdown .Select-option.is-selected,
.theme-light .Select-option.is-selected,
.light-theme .VirtualizedSelectSelectedOption,
.theme-light .VirtualizedSelectSelectedOption {
    background-color: #2c7be5 !important;
    color: #ffffff !important;
}

.light-theme .trader-filter-dropdown .Select-arrow,
.theme-light .Select-arrow,
.light-theme .trader-filter-dropdown .Select-clear-zone,
.theme-light .Select-clear-zone {
    color: #5f6b7a !important;
    border-top-color: #5f6b7a !important;
}

/* DARK theme */
.dark-theme .trader-filter-dropdown .Select-control,
.theme-dark .Select-control {
    background-color: #0f1720 !important;
    border: 1px solid #2c3643 !important;
    color: #f2f6fb !important;
}

.dark-theme .trader-filter-dropdown .Select.is-open > .Select-control,
.theme-dark .Select.is-open > .Select-control,
.dark-theme .trader-filter-dropdown .Select.is-focused:not(.is-open) > .Select-control,
.theme-dark .Select.is-focused:not(.is-open) > .Select-control {
    background-color: #0f1720 !important;
    border-color: #4f8cff !important;
}

.dark-theme .trader-filter-dropdown .Select-value-label,
.theme-dark .Select-value-label,
.dark-theme .trader-filter-dropdown .Select-input > input,
.theme-dark .Select-input > input {
    color: #f2f6fb !important;
}

.dark-theme .trader-filter-dropdown .Select-placeholder,
.theme-dark .Select-placeholder,
.dark-theme .trader-filter-dropdown .Select-arrow-zone,
.theme-dark .Select-arrow-zone {
    color: #aeb8c5 !important;
}

.dark-theme .trader-filter-dropdown .Select-menu-outer,
.theme-dark .Select-menu-outer,
.dark-theme .VirtualizedSelectOption,
.theme-dark .VirtualizedSelectOption,
.dark-theme .trader-filter-dropdown .Select-option,
.theme-dark .Select-option {
    background-color: #0f1720 !important;
    color: #f2f6fb !important;
    border-color: #2c3643 !important;
}

.dark-theme .VirtualizedSelectFocusedOption,
.theme-dark .VirtualizedSelectFocusedOption,
.dark-theme .trader-filter-dropdown .Select-option.is-focused,
.theme-dark .Select-option.is-focused {
    background-color: #1a2633 !important;
    color: #f2f6fb !important;
}

.dark-theme .trader-filter-dropdown .Select-option.is-selected,
.theme-dark .Select-option.is-selected,
.dark-theme .VirtualizedSelectSelectedOption,
.theme-dark .VirtualizedSelectSelectedOption {
    background-color: #2c7be5 !important;
    color: #ffffff !important;
}

.dark-theme .trader-filter-dropdown .Select-arrow,
.theme-dark .Select-arrow,
.dark-theme .trader-filter-dropdown .Select-clear-zone,
.theme-dark .Select-clear-zone {
    color: #aeb8c5 !important;
    border-top-color: #aeb8c5 !important;
}


/* Final overrides for Dash Dropdown rendering */
#theme-container.dark-theme .trader-filter-dropdown > div,
body.theme-dark .trader-filter-dropdown > div,
#theme-container.dark-theme .trader-filter-dropdown .Select-control,
body.theme-dark .trader-filter-dropdown .Select-control {
    background: #0f1720 !important;
    background-color: #0f1720 !important;
    border-color: #2c3643 !important;
    color: #f2f6fb !important;
}

#theme-container.dark-theme .trader-filter-dropdown .Select-placeholder,
#theme-container.dark-theme .trader-filter-dropdown .Select-value-label,
#theme-container.dark-theme .trader-filter-dropdown .Select-arrow-zone,
#theme-container.dark-theme .trader-filter-dropdown .Select-arrow,
body.theme-dark .trader-filter-dropdown .Select-placeholder,
body.theme-dark .trader-filter-dropdown .Select-value-label,
body.theme-dark .trader-filter-dropdown .Select-arrow-zone,
body.theme-dark .trader-filter-dropdown .Select-arrow {
    color: #f2f6fb !important;
    border-top-color: #f2f6fb !important;
}

#theme-container.light-theme .trader-filter-dropdown > div,
body.theme-light .trader-filter-dropdown > div,
#theme-container.light-theme .trader-filter-dropdown .Select-control,
body.theme-light .trader-filter-dropdown .Select-control {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #d9dee5 !important;
    color: #22313f !important;
}

#theme-container.light-theme .trader-filter-dropdown .Select-placeholder,
#theme-container.light-theme .trader-filter-dropdown .Select-value-label,
#theme-container.light-theme .trader-filter-dropdown .Select-arrow-zone,
#theme-container.light-theme .trader-filter-dropdown .Select-arrow,
body.theme-light .trader-filter-dropdown .Select-placeholder,
body.theme-light .trader-filter-dropdown .Select-value-label,
body.theme-light .trader-filter-dropdown .Select-arrow-zone,
body.theme-light .trader-filter-dropdown .Select-arrow {
    color: #22313f !important;
    border-top-color: #22313f !important;
}

/* Theme toggle switch - Simple Toggle Switch Design */
.theme-toggle-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-track {
    position: relative;
    width: 70px;
    height: 35px;
    background: linear-gradient(90deg, #f0f0f0 50%, #e0e0e0 50%);
    border-radius: 17.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #d0d0d0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1);
    outline: none;
    padding: 0;
}

.toggle-track:hover {
    transform: scale(1.05);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.2);
}

.toggle-track.active {
    background: linear-gradient(90deg, #000000 50%, #333333 50%);
    border-color: #333333;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3), 0 4px 8px rgba(0,0,0,0.2);
}

.toggle-handle {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 25px;
    height: 25px;
    background: white;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    border: 1px solid rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-track.active .toggle-handle {
    transform: translateX(35px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
    background: #000000;
}

.toggle-handle i {
    font-size: 12px;
    transition: all 0.3s ease;
}

.toggle-track:not(.active) .toggle-handle i {
    color: #000000; /* Sun icon - black */
}

.toggle-track.active .toggle-handle i {
    color: #ffffff; /* Moon icon - white */
}

/* Headers and titles */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
    font-weight: bold !important;
}

.chart-title {
    color: var(--text-primary) !important;
    font-weight: bold !important;
    font-size: 16px !important;
}

/* Plotly theme integration */
.js-plotly-plot {
    background-color: var(--bg-card) !important;
}

/* Table styling */
table {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-collapse: collapse;
    width: 100%;
}

th {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

td {
    color: var(--text-primary) !important;
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* Status indicators */
.status-online {
    color: var(--success-color) !important;
}

.status-offline {
    color: var(--danger-color) !important;
}

.status-warning {
    color: var(--warning-color) !important;
}

/* Responsive design */
@media (max-width: 768px) {
    .control-panel {
        flex-direction: column;
        align-items: stretch;
    }
    
    .control-group {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .theme-toggle-container {
        gap: 10px;
        padding: 6px 10px;
    }
    
    .theme-toggle-slider {
        width: 60px;
        height: 30px;
    }
    
    .theme-toggle-slider::before {
        width: 22px;
        height: 22px;
    }
    
    .theme-toggle-slider.active::before {
        transform: translateX(30px);
    }
}

/* Animation for smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Custom scrollbar for dark theme */
.dark-theme ::-webkit-scrollbar {
    width: 8px;
}

.dark-theme ::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.dark-theme ::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.dark-theme ::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* Kill-switch final para dcc.Dropdown no trader dashboard */
#theme-container.dark-theme .dash-dropdown,
#theme-container.dark-theme .dash-dropdown > div,
#theme-container.dark-theme .dash-dropdown .Select-control,
#theme-container.dark-theme .dash-dropdown .Select-menu-outer,
#theme-container.dark-theme .dash-dropdown .Select-menu,
#theme-container.dark-theme .dash-dropdown .Select-option,
#theme-container.dark-theme .dash-dropdown .VirtualizedSelectOption,
body.theme-dark .dash-dropdown,
body.theme-dark .dash-dropdown > div,
body.theme-dark .dash-dropdown .Select-control,
body.theme-dark .dash-dropdown .Select-menu-outer,
body.theme-dark .dash-dropdown .Select-menu,
body.theme-dark .dash-dropdown .Select-option,
body.theme-dark .dash-dropdown .VirtualizedSelectOption {
    background: #0f1720 !important;
    background-color: #0f1720 !important;
    color: #f2f6fb !important;
    border-color: #2c3643 !important;
}

#theme-container.dark-theme .dash-dropdown .Select-placeholder,
#theme-container.dark-theme .dash-dropdown .Select-value-label,
#theme-container.dark-theme .dash-dropdown .Select-input > input,
#theme-container.dark-theme .dash-dropdown .Select-arrow-zone,
#theme-container.dark-theme .dash-dropdown .Select-arrow,
body.theme-dark .dash-dropdown .Select-placeholder,
body.theme-dark .dash-dropdown .Select-value-label,
body.theme-dark .dash-dropdown .Select-input > input,
body.theme-dark .dash-dropdown .Select-arrow-zone,
body.theme-dark .dash-dropdown .Select-arrow {
    color: #f2f6fb !important;
    border-top-color: #f2f6fb !important;
}

#theme-container.light-theme .dash-dropdown,
#theme-container.light-theme .dash-dropdown > div,
#theme-container.light-theme .dash-dropdown .Select-control,
#theme-container.light-theme .dash-dropdown .Select-menu-outer,
#theme-container.light-theme .dash-dropdown .Select-menu,
#theme-container.light-theme .dash-dropdown .Select-option,
#theme-container.light-theme .dash-dropdown .VirtualizedSelectOption,
body.theme-light .dash-dropdown,
body.theme-light .dash-dropdown > div,
body.theme-light .dash-dropdown .Select-control,
body.theme-light .dash-dropdown .Select-menu-outer,
body.theme-light .dash-dropdown .Select-menu,
body.theme-light .dash-dropdown .Select-option,
body.theme-light .dash-dropdown .VirtualizedSelectOption {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #22313f !important;
    border-color: #d9dee5 !important;
}

#theme-container.light-theme .dash-dropdown .Select-placeholder,
#theme-container.light-theme .dash-dropdown .Select-value-label,
#theme-container.light-theme .dash-dropdown .Select-input > input,
#theme-container.light-theme .dash-dropdown .Select-arrow-zone,
#theme-container.light-theme .dash-dropdown .Select-arrow,
body.theme-light .dash-dropdown .Select-placeholder,
body.theme-light .dash-dropdown .Select-value-label,
body.theme-light .dash-dropdown .Select-input > input,
body.theme-light .dash-dropdown .Select-arrow-zone,
body.theme-light .dash-dropdown .Select-arrow {
    color: #22313f !important;
    border-top-color: #22313f !important;
}

/* Absolute fallback: force theme colors on every rendered dropdown descendant */
#theme-container.dark-theme .trader-filter-dropdown,
#theme-container.dark-theme .trader-filter-dropdown div,
#theme-container.dark-theme .trader-filter-dropdown span,
#theme-container.dark-theme .trader-filter-dropdown input,
body.theme-dark .trader-filter-dropdown,
body.theme-dark .trader-filter-dropdown div,
body.theme-dark .trader-filter-dropdown span,
body.theme-dark .trader-filter-dropdown input {
    background-color: #0f1720 !important;
    color: #f2f6fb !important;
    border-color: #2c3643 !important;
}

#theme-container.dark-theme .trader-filter-dropdown .Select-option.is-focused,
#theme-container.dark-theme .trader-filter-dropdown .VirtualizedSelectFocusedOption,
body.theme-dark .trader-filter-dropdown .Select-option.is-focused,
body.theme-dark .trader-filter-dropdown .VirtualizedSelectFocusedOption {
    background-color: #1a2633 !important;
    color: #f2f6fb !important;
}

#theme-container.dark-theme .trader-filter-dropdown .Select-option.is-selected,
#theme-container.dark-theme .trader-filter-dropdown .VirtualizedSelectSelectedOption,
body.theme-dark .trader-filter-dropdown .Select-option.is-selected,
body.theme-dark .trader-filter-dropdown .VirtualizedSelectSelectedOption {
    background-color: #2c7be5 !important;
    color: #ffffff !important;
}

#theme-container.light-theme .trader-filter-dropdown,
#theme-container.light-theme .trader-filter-dropdown div,
#theme-container.light-theme .trader-filter-dropdown span,
#theme-container.light-theme .trader-filter-dropdown input,
body.theme-light .trader-filter-dropdown,
body.theme-light .trader-filter-dropdown div,
body.theme-light .trader-filter-dropdown span,
body.theme-light .trader-filter-dropdown input {
    background-color: #ffffff !important;
    color: #22313f !important;
    border-color: #d9dee5 !important;
}

#theme-container.light-theme .trader-filter-dropdown .Select-option.is-focused,
#theme-container.light-theme .trader-filter-dropdown .VirtualizedSelectFocusedOption,
body.theme-light .trader-filter-dropdown .Select-option.is-focused,
body.theme-light .trader-filter-dropdown .VirtualizedSelectFocusedOption {
    background-color: #f1f5f9 !important;
    color: #22313f !important;
}

#theme-container.light-theme .trader-filter-dropdown .Select-option.is-selected,
#theme-container.light-theme .trader-filter-dropdown .VirtualizedSelectSelectedOption,
body.theme-light .trader-filter-dropdown .Select-option.is-selected,
body.theme-light .trader-filter-dropdown .VirtualizedSelectSelectedOption {
    background-color: #2c7be5 !important;
    color: #ffffff !important;
}

/* Dash 4 dropdowns (Radix) */
#theme-container.dark-theme .trader-filter-dropdown.dash-dropdown,
body.theme-dark .trader-filter-dropdown.dash-dropdown {
    background-color: #0f1720 !important;
    color: #f2f6fb !important;
    border: 1px solid #2c3643 !important;
    box-shadow: none !important;
}

#theme-container.dark-theme .trader-filter-dropdown .dash-dropdown-trigger,
#theme-container.dark-theme .trader-filter-dropdown .dash-dropdown-value,
#theme-container.dark-theme .trader-filter-dropdown .dash-dropdown-value-item,
#theme-container.dark-theme .trader-filter-dropdown .dash-dropdown-trigger-icon,
body.theme-dark .trader-filter-dropdown .dash-dropdown-trigger,
body.theme-dark .trader-filter-dropdown .dash-dropdown-value,
body.theme-dark .trader-filter-dropdown .dash-dropdown-value-item,
body.theme-dark .trader-filter-dropdown .dash-dropdown-trigger-icon {
    color: #f2f6fb !important;
    fill: #f2f6fb !important;
}

#theme-container.dark-theme .dash-options-list.dash-dropdown-options,
body.theme-dark .dash-options-list.dash-dropdown-options {
    background-color: #0f1720 !important;
    border: 1px solid #2c3643 !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.38) !important;
}

#theme-container.dark-theme .dash-options-list-option.dash-dropdown-option,
#theme-container.dark-theme .dash-options-list-option.dash-dropdown-option .dash-options-list-option-text,
body.theme-dark .dash-options-list-option.dash-dropdown-option,
body.theme-dark .dash-options-list-option.dash-dropdown-option .dash-options-list-option-text {
    background-color: #0f1720 !important;
    color: #f2f6fb !important;
    border-bottom: 1px solid #2c3643 !important;
}

#theme-container.dark-theme .dash-options-list-option.dash-dropdown-option:hover,
#theme-container.dark-theme .dash-options-list-option.dash-dropdown-option:focus-within,
body.theme-dark .dash-options-list-option.dash-dropdown-option:hover,
body.theme-dark .dash-options-list-option.dash-dropdown-option:focus-within {
    background-color: #1a2633 !important;
    color: #f2f6fb !important;
}

#theme-container.dark-theme .dash-options-list-option.dash-dropdown-option[aria-selected='true'],
body.theme-dark .dash-options-list-option.dash-dropdown-option[aria-selected='true'] {
    background-color: #2c7be5 !important;
    color: #ffffff !important;
}

#theme-container.dark-theme .dash-options-list-option-checkbox,
body.theme-dark .dash-options-list-option-checkbox {
    accent-color: #2c7be5 !important;
    border-color: #4f8cff !important;
}

#theme-container.light-theme .trader-filter-dropdown.dash-dropdown,
body.theme-light .trader-filter-dropdown.dash-dropdown {
    background-color: #ffffff !important;
    color: #22313f !important;
    border: 1px solid #d9dee5 !important;
    box-shadow: none !important;
}

#theme-container.light-theme .trader-filter-dropdown .dash-dropdown-trigger,
#theme-container.light-theme .trader-filter-dropdown .dash-dropdown-value,
#theme-container.light-theme .trader-filter-dropdown .dash-dropdown-value-item,
#theme-container.light-theme .trader-filter-dropdown .dash-dropdown-trigger-icon,
body.theme-light .trader-filter-dropdown .dash-dropdown-trigger,
body.theme-light .trader-filter-dropdown .dash-dropdown-value,
body.theme-light .trader-filter-dropdown .dash-dropdown-value-item,
body.theme-light .trader-filter-dropdown .dash-dropdown-trigger-icon {
    color: #22313f !important;
    fill: #22313f !important;
}

#theme-container.light-theme .dash-options-list.dash-dropdown-options,
body.theme-light .dash-options-list.dash-dropdown-options {
    background-color: #ffffff !important;
    border: 1px solid #d9dee5 !important;
    border-radius: 8px !important;
    box-shadow: 0 12px 30px rgba(15, 23, 32, 0.12) !important;
}

#theme-container.light-theme .dash-options-list-option.dash-dropdown-option,
#theme-container.light-theme .dash-options-list-option.dash-dropdown-option .dash-options-list-option-text,
body.theme-light .dash-options-list-option.dash-dropdown-option,
body.theme-light .dash-options-list-option.dash-dropdown-option .dash-options-list-option-text {
    background-color: #ffffff !important;
    color: #22313f !important;
    border-bottom: 1px solid #d9dee5 !important;
}

#theme-container.light-theme .dash-options-list-option.dash-dropdown-option:hover,
#theme-container.light-theme .dash-options-list-option.dash-dropdown-option:focus-within,
body.theme-light .dash-options-list-option.dash-dropdown-option:hover,
body.theme-light .dash-options-list-option.dash-dropdown-option:focus-within {
    background-color: #f1f5f9 !important;
    color: #22313f !important;
}

#theme-container.light-theme .dash-options-list-option.dash-dropdown-option[aria-selected='true'],
body.theme-light .dash-options-list-option.dash-dropdown-option[aria-selected='true'] {
    background-color: #2c7be5 !important;
    color: #ffffff !important;
}

