/* Global Font Styling */
* {
    font-family: 'Segoe UI', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif !important;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif !important;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}

/* Dropdown Styling */
.Select-control {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
}

.Select-control:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.Select-control.is-focused {
    border: 1px solid #1f77b4 !important;
    box-shadow: 0 0 0 3px rgba(31, 119, 180, 0.1) !important;
}

.Select-input > input {
    background-color: #fff !important;
    color: #333 !important;
}

.Select-placeholder {
    color: #999 !important;
}

.Select-value {
    color: #333 !important;
}

.Select-menu-outer {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
}

.Select-option {
    background-color: #fff !important;
    color: #333 !important;
}

.Select-option:hover {
    background-color: #f5f5f5 !important;
}

.Select-option.is-selected {
    background-color: #e8f4f8 !important;
    color: #1f77b4 !important;
}

.Select-option.is-focused {
    background-color: #f9f9f9 !important;
}

.Select-arrow {
    border-top-color: #999 !important;
}

/* Slider Styling */
.rc-slider {
    background-color: #ddd !important;
}

.rc-slider-track {
    background-color: #1f77b4 !important;
}

.rc-slider-handle {
    background-color: #1f77b4 !important;
    border-color: #1f77b4 !important;
}

.rc-slider-handle:hover {
    box-shadow: 0 0 5px rgba(31, 119, 180, 0.5) !important;
}

.rc-slider-mark-text {
    color: #666 !important;
    font-size: 12px;
}

/* Radio and Checkbox */
.rc-checkbox-checked .rc-checkbox-inner,
.rc-radio-checked .rc-radio-inner {
    background-color: #1f77b4 !important;
    border-color: #1f77b4 !important;
}

/* Tables */
.dash-table-container .dash-spreadsheet thead th {
    background-color: #f0f0f0 !important;
    font-weight: 600;
}

/* Tabs */
.Tabs__tab {
    color: #666 !important;
    border-bottom: 2px solid #ddd;
    padding: 12px 24px !important;
    background-color: transparent;
}

.Tabs__tab.is-selected {
    color: #1f77b4 !important;
    border-bottom-color: #1f77b4 !important;
    font-weight: 600;
}

.Tabs__tab:hover {
    background-color: #f9f9f9;
}

/* Input Fields */
input[type="text"],
input[type="date"],
input[type="number"],
textarea,
select {
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 6px 12px !important;
}

input[type="text"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    border-color: #1f77b4 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 119, 180, 0.1) !important;
}

/* Buttons */
button {
    transition: all 0.2s ease-in-out;
}

button:hover {
    opacity: 0.95;
}

/* Datasets checklists – align labels and trash icons */
#datasets-checklist-sample label,
#datasets-checklist-upload label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 3px 0 !important;
    border-bottom: 1px solid #f0f0f0;
}

#datasets-checklist-sample label > div,
#datasets-checklist-upload label > div {
    flex: 1 !important;
    min-width: 0 !important;
}

/* Same style for costs checklist */
#costs-checklist label {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    padding: 3px 0 !important;
    border-bottom: 1px solid #f0f0f0;
}

#costs-checklist label > div {
    flex: 1 !important;
    min-width: 0 !important;
}

/* MCF / PR grade distribution sliders – hide all marks and tooltips */
#sample-mcf-range .rc-slider-mark,
#sample-pr-range .rc-slider-mark,
#sample-mcf-range div[class*="tooltip"],
#sample-pr-range div[class*="tooltip"] {
    display: none !important;
}

/* Hide the Dash 2.x min/max value input boxes at each end of the slider.
   These appear on 2-handle RangeSliders (MCF). Nuclear approach: */
#sample-mcf-range input[type="number"],
#sample-pr-range input[type="number"],
#sample-mcf-range input:not([type]),
#sample-pr-range input:not([type]),
#sample-mcf-range > input,
#sample-pr-range > input,
#sample-mcf-range input {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    position: absolute !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}
