/* === DEBUG BANNER === */
/* body::before {
    content: "✅ CSS LOADED";
    position: fixed;
    top: 10px;
    left: 10px;
    background-color: lime;
    color: black;
    padding: 4px 8px;
    z-index: 9999;
} */

/* ==== GLOBAL BASE STYLES ==== */
body {
    font-family: 'FigTree', sans-serif !important;
    background-color: #000000 !important;
    color: #ffffff !important;
}

/* ==== LAYOUT CONTAINER ==== */
.container {
    max-width: 95% !important;
    margin: 0 auto !important;
    padding: 5px !important;
}

@media (max-width: 768px) {
    .container {
        padding: 5px !important;
    }
}

/* ==== BUTTON STYLING ==== */
.btn-success,
button.btn-success {
    background-color: #FF8800 !important;
    border-color: #FF8800 !important;
    color: #000000 !important;
    font-weight: bold !important;
}

/* ==== DROPDOWN / SELECT ==== */
.Select-control {
    background-color: #222 !important;
    border: 1px solid #FF8800 !important;
    color: #F8F8F8 !important;
}

.Select-menu-outer {
    background-color: #111 !important;
    color: #FF8800 !important;
    z-index: 9999 !important;
}

/* ==== INPUTS ==== */
input[type="text"],
input[type="number"],
input.custom-input {
    background-color: #222 !important;
    color: #F8F8F8 !important;
    border: 2px solid #FF8800 !important;
    border-radius: 6px !important;
    padding: 8px !important;
    width: 100% !important;
}

/* Wrapper-based input targeting */
.custom-input-wrapper input[type="number"],
.custom-input-wrapper input[type="text"] {
    background-color: #222 !important;
    color: #FF8800 !important;
    border: 2px solid #FF8800 !important;
    padding: 8px !important;
    border-radius: 6px !important;
    width: 100% !important;
}

/* ==== LABELS ==== */
label,
.form-label {
    color: #F8F8F8 !important;
    font-weight: 500 !important;
    font-size: 16px !important;
}

/* ==== RADIO BUTTON GROUP ==== */
.radio-wrapper .dash-radio-items label {
    display: inline-flex !important;
    align-items: center !important;
    padding: 10px 16px !important;
    margin: 4px 6px 8px 0 !important;
    background-color: #222 !important;
    border: 2px solid #FF8800 !important;
    border-radius: 8px !important;
    color: #F8F8F8 !important;
    cursor: pointer !important;
    font-weight: 500 !important;
    transition: background-color 0.2s ease !important;
}

.radio-wrapper .dash-radio-items input[type="radio"]:checked {
    accent-color: #FF8800 !important;
}

.radio-wrapper .dash-radio-items input[type="radio"]:checked + label,
.radio-wrapper .dash-radio-items input[type="radio"]:checked ~ label {
    background-color: #FF8800 !important;
    color: black !important;
    font-weight: bold !important;
}

/* ==== DROPDOWN WRAPPER ==== */
.dropdown-wrapper .Select-control {
    background-color: #222 !important;
    border: 2px solid #FF8800 !important;
    color: #FF8800 !important;
}

.dropdown-wrapper .Select-menu-outer {
    background-color: #111 !important;
    color: #FF8800 !important;
}

/* ==== PLOTLY GRAPH AREA ==== */
.js-plotly-plot .plotly {
    background-color: #222 !important;
    color: #F8F8F8 !important;
}

/* Fix for selected radio styling */
input[type="radio"]:checked + span {
    background-color: #FF8800 !important;
    color: #000 !important;
    font-weight: bold !important;
    border-color: #FF8800 !important;
}

.radio-box-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

/* Full block clickable radio buttons */
.radio-expanded label {
    display: block !important;
    padding: 16px !important;
    margin: 6px 0 !important;
    border: 2px solid #FF8800 !important;
    border-radius: 10px !important;
    background-color: #222 !important;
    color: #F8F8F8 !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease-in-out !important;
}

.radio-expanded input[type="radio"] {
    display: none !important;
}

.radio-expanded input[type="radio"]:checked + label {
    background-color: #FF8800 !important;
    color: #000 !important;
    font-weight: bold !important;
}

/* Fix dropdown option text color */
div.VirtualizedSelectOption {
    color: #FF8800 !important;
}

div.VirtualizedSelectFocusedOption {
    background-color: #222 !important;
    color: #FF8800 !important;
}

/* Selected value in the dropdown input box */
div.Select-value,
div.Select-value-label {
    color: #FF8800 !important;
}

/* Fallback for newer Dash/React-Select class names */
div.Select__menu,
div.Select__option,
div.Select__single-value {
    color: #FF8800 !important;
    background-color: #111 !important;
}

/* Highlight selected item in dropdown menu */
.Select-option.is-selected,
.Select__option--is-selected {
    background-color: #222 !important;
    color: #FF8800 !important;
}

/* Force selected dropdown value and menu options to orange */
.Select div,
.Select div div,
.Select div div div,
.Select-value-label,
.Select__single-value {
    color: #FF8800 !important;
}

/* Hover/focus state */
.Select-option.is-focused,
.Select__option--is-focused {
    color: #FF8800 !important;
    background-color: #111 !important;
}

/* === DROPDOWN MENU OPTIONS === */
.Select-option,
.Select__option {
    color: #FF8800 !important;
    background-color: #111 !important;
}

/* === SELECTED OPTION IN MENU === */
.Select-option.is-selected,
.Select__option--is-selected {
    background-color: #111 !important;
    color: #FF8800 !important;
    font-weight: bold !important;
}

/* === SELECTED VALUE SHOWN IN DROPDOWN BOX === */
.Select .Select-value,
.Select .Select-value-label,
.Select .Select-placeholder,
.Select .Select-control,
.Select__single-value {
    color: #FF8800 !important;
}

/* Extra specificity for good measure */
.Select-control .Select-value-label {
    color: #FF8800 !important;
}

.Select-control,
.Select--single > .Select-control .Select-value,
.Select--single > .Select-control .Select-value .Select-value-label,
.Select__control,
.Select__single-value {
    color: #FF8800 !important;
    background-color: #222 !important;
}

.Select-value-label,
div[class*="Select__single-value"] {
    color: #FF8800 !important;
}

.Select-control span,
.Select-value span,
.Select-value-label span {
    color: #FF8800 !important;
}

/* ==== UNIFY PLACEHOLDER COLOR ==== */
input::placeholder,
input::-webkit-input-placeholder,
input::-moz-placeholder,
input:-ms-input-placeholder,
input:-moz-placeholder,
.Select-placeholder,
.Select__placeholder {
    color: #aaa !important;
    opacity: 1 !important;
}

.Select-control .Select-placeholder,
.Select__control .Select__placeholder,
div[class*="Select-placeholder"] {
    color: #aaa !important;
    opacity: 1 !important;
}

/* ==== GRAPH + RESULTS LAYOUT ==== */

/* Default: Grid for desktop + landscape */
.graph-results-container {
  display: grid !important;
  grid-template-columns: 66% 34%;
  gap: 20px;
  align-items: start;
  width: 100%;
}

/* Graph and results content */
#graph-column,
#results-column {
  width: 100%;
  min-height: 300px;
}

/* Stack ONLY on portrait phones */
@media (max-width: 600px) and (orientation: portrait) {
  .graph-results-container {
    display: block !important;
  }
  #graph-column,
  #results-column {
    width: 100% !important;
    margin-bottom: 20px;
  }
}

.graph-results-row {
  overflow-y: auto;
}
