/* Override a few built-in Dash/Dash Bootstrap styles */

/* Remove the white padding around the main container to make dark mode nicer */
.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

/* Dark mode in Tabs, also reduce height */
.tab--selected {
    background-color: var(--ui-blue) !important;
    padding: 0 !important;
    line-height: 3vh;
}

/* Non-selected tabs dim the border on hover */
.tab:not(.tab--selected):hover {
    border: 1px solid var(--medium-gray);
}

/* Make the text in collapsed dropdowns the right color */
.Select-value-label {
    background-color: var(--dark-background);
    color: white !important;
}

/* Make dark mode work for the Dash DropDowns */
.VirtualizedSelectFocusedOption {
    background-color: var(--ui-blue) !important;
    color: var(--dark-background) !important;
}

.VirtualizedSelectOption {
    background-color: var(--dark-background);
    color: white;
}

.Select-noresults {
    background-color: var(--dark-background) !important;
    color: var(--ui-blue) !important;
}

.Select-control:hover {
    border-color: var(--medium-gray);
}

/* All these are needed to implement dark mode for the date picker */
.SingleDatePicker {
    margin-left: 10px;
    top: -2px;
}

.SingleDatePickerInput__withBorder {
    border-radius: 4px;
}

.SingleDatePickerInput__withBorder:hover {
    border-color: var(--medium-gray);
}

.CalendarMonth {
    background-color: var(--dark-background);
    color: var(--ui-blue);
}

.CalendarMonth_caption {
    color: var(--ui-blue);
}

.CalendarDay {
    background-color: var(--dark-background);
    color: var(--ui-blue);
}

.DayPicker_weekHeader {
    color: var(--ui-blue);
}

.CalendarMonthGrid {
    background-color: var(--dark-background);
}

.DayPickerNavigation_button {
    background-color: var(--dark-background);
}

.DayPickerNavigation_svg__horizontal {
    fill: var(--ui-blue);
}

.CalendarDay__selected {
    border: 2px solid var(--nathan-yellow);
}

.DateInput_fangShape {
    display: none;
}

.DateInput_fangStroke {
    display: none;
}

.DateInput_input {
    background: var(--dark-background) !important;
    color: var(--ui-blue);
    border: none !important;
}

.DayPickerKeyboardShortcuts_panel {
    background-color: var(--dark-background);
}

.SingleDatePicker_picker {
    top: 42px !important;
}

.DayPicker_transitionContainer {
    border: 1px solid white;
}

.DayPicker_focusRegion {
    background-color: var(--dark-background);
}

.CalendarDay__blocked_out_of_range {
    background: var(--disabled-gray);
}

/* Date input width adjustment */
.DateInput {
    width: 100px;
}

/* Dark mode in Dash Modal */
.modal-content {
    background-color: var(--dark-background);
    color: var(--ui-blue);
    border: 2px solid var(--nathan-yellow);
    border-radius: 0.5rem;
}

.modal-title {
    font-size: 1.15em;
}

/* Make the modal secondary buttons (Close) look good */
.btn-secondary, .btn-secondary:hover {
    background-color: var(--dark-background);
    border-radius: 4px;
}

/* Make the toggle switch look like our buttons */
.daq-toggleswitch--light__button {
    border-radius: 4px !important;
}

/* Make the toggle switch font size match the other labels */
.daq-toggleswitch--light__label {
    font-size: 15px !important;
}

/* Hide the Mapbox logo on the maps */
.mapboxgl-ctrl-bottom-left {
    display: none !important;
}

/* Adding a very dark border on hover makes the text move right and gives emphasis */
.json-formatter-constructor-name:hover {
    border: 2px solid var(--dark-background);
}

/* Make the slider dots and handles stick out on hover */
.rc-slider:hover .rc-slider-dot {
    border-color: white !important;
}

.rc-slider:hover .rc-slider-handle {
    border-color: white !important;
}

/* Make the checkboxes and radio buttons stick out on hover */
.form-check-input:hover {
    background-color: var(--ui-blue);
    border-color: var(--dark-background);
}

/* Round the border of expanded fancybox images */
.fancybox__image {
    border-radius: calc(0.5vw + 0.5vh);
}

/* Match the font of normal table cells in cells displaying markdown */
.cell-markdown {
    font-family: monospace !important;
}

/* Hide the Open Street Maps attribution on MapLibre maps */
.maplibregl-ctrl-bottom-right {
    display: none;
}

/* Reduce the text size in the HTML tooltips from the default 14px to 12px */
.tippy-box {
    font-size: 12px !important;
}
