/* Hide the native checkbox but keep it clickable */
.modern-checklist input[type="checkbox"] {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

/* Label wrapper */
.modern-checklist label {
    position: relative;
    padding-left: 28px;   /* less space */
    cursor: pointer;
    font-size: 12px;      /* keep text small */
    line-height: 18px;    /* increased for better vertical centering */
    display: block;
    margin: 6px 0;
    user-select: none;
    min-height: 18px;
}

/* Slider track */
.modern-checklist label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;          /* smaller width */
    height: 12px;         /* smaller height */
    background-color: #ccc;
    border-radius: 12px;
    transition: background-color 0.2s;
}

/* Slider knob */
.modern-checklist label::after {
    content: "";
    position: absolute;
    left: 1px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;          /* smaller knob */
    height: 10px;
    background-color: white;
    border-radius: 50%;
    transition: transform 0.2s, left 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Checked state */
.modern-checklist label:has(input[type="checkbox"]:checked)::before {
    background-color: #5a57ff;
}

.modern-checklist label:has(input[type="checkbox"]:checked)::after {
    transform: translateY(-50%) translateX(8px); /* combine transforms */
}

#run-loading-floating-wrapper .dash-loading-output {
  display: flex;
  justify-content: center;
}

.run-loading-no-spinner .dash-spinner {
  display: none !important;
}

.run-loading-message {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 8px 12px;
}

.run-loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 123, 255, 0.2);
  border-top-color: #5a57ff;
  border-radius: 50%;
  animation: run-loading-spin 0.9s linear infinite;
  flex-shrink: 0;
}

.run-loading-text {
  color: #333;
  font-size: 11px;
  font-weight: 500;
}

@keyframes run-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

#run-loading-indicator {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 8px 12px;
  min-height: 18px;
  display: inline-block;
}

#run-loading-indicator:empty {
  display: none;
}

input[type="checkbox"] {
  border-width: 1px;
  width: 1.25rem;
  height: 1.25rem;
  float: left;
  border-radius: 0.25em;
  /* margin-left: -1.5em; */
  /* margin-top: 0.25em; */
  margin-right: 6px;
  margin-top: -2px;
  vertical-align: top;
  background-color: #FFF;
  background-image: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  border: 1px solid #CCC;
  appearance: none;
  print-color-adjust: exact;
}

input[type="checkbox"]:checked {
  background-color: #5a57ff;
  border-color: #5a57ff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

button { 
  color: #FFF;
  border-color: hsla(241, 100%, 67%, 0.938);
  background-color: hsla(241, 100%, 67%, 0.938);

  font-size: 0.813rem !important;
  padding: 5px 12px;
  font-weight: 400;
  border-radius: 0.25rem;
  line-height: 18px;
  border-radius: 0.25rem;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  border: 1px solid hsla(241, 100%, 67%, 0.938);
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Target the export button in DataTable */
.dash-spreadsheet-container .dt-export {
    float: right !important;      /* move to right */
    margin-right: 5px;            /* little spacing */
}

/* Shared control container: makes all dropdowns same width */
.control {
  max-width: 360px;   /* adjust 280–420px as needed */
  width: 100%;
  display: block;
  margin: 0 0 12px 0;
}

/* Ensure dropdown fills its container */
.dropdown-full {
  width: 100%;
}

/* Tighter dropdown look; works with dcc.Dropdown (react-select) */
.dropdown-full .Select__control,
.dropdown-full .VirtualizedSelectFocusedOption,
.dropdown-full .Select-control {
  min-height: 34px;
  font-size: 12px;
}

/* Optional: consistent label spacing */
.control > label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  line-height: 1.2;
}

/* Graph container behavior */
.graph-wrap {
  display: flex;
  overflow-x: auto;
  overflow-y: auto;
}

/* Graph sizing; mirrors prior inline props */
.br-graph {
  width: 95vw;            /* or use 100% if inside a layout grid */
  font-size: 12px;
}

.card-graph {
  width: 100% !important;
  max-width: 100%;
}

/* Optional: narrow tabs content area */
.overview-tab {
  padding: 8px 0;
}

/* Left-anchored modals to avoid covering the plot */
.left-modal .modal-dialog {
  margin: 0 !important;            /* remove default centering margins */
  position: fixed;                 /* pin to viewport */
  left: 0;                         /* stick to the far left */
  top: 64px;                       /* below any fixed header; tweak as needed */
  max-width: 380px;                /* keep it narrow so it doesn't overlap graph */
  width: 90vw;                     /* responsive on small screens */
  transform: none !important;      /* prevent bootstrap centering */
}

/* Ensure content scrolls if tall */
.left-modal .modal-content {
  max-height: calc(100vh - 80px);
  overflow: auto;
}

/* Typography consistency for modals */
.left-modal .modal-content,
.left-modal .modal-header,
.left-modal .modal-body,
.left-modal .modal-footer {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.25;
}

.left-modal .modal-title,
.left-modal label,
.left-modal .form-label,
.left-modal .form-text,
.left-modal .form-check-label {
  font-family: inherit;
  font-size: 12px;
}

/* Dropdowns inside modals */
.left-modal .dropdown-full .Select__control,
.left-modal .dropdown-full .VirtualizedSelectFocusedOption,
.left-modal .dropdown-full .Select-control {
  min-height: 32px;
  font-size: 12px;
}

/* Inputs (dcc.Input) inside modals */
.left-modal input[type="text"],
.left-modal input[type="number"],
.left-modal .form-control {
  font-size: 12px;
  padding: 4px 8px;
  width: 100%;
}

/* Switch/checkbox text */
.left-modal .form-switch .form-check-label,
.left-modal .form-check .form-check-label {
  font-size: 12px;
}

/* Make modal accordion headers compact to match Statistics tab */
.left-modal .accordion-button {
  padding: 4px 8px;           /* tighter padding for shorter headers */
  font-size: 12px;            /* smaller header text */
  line-height: 1.2;           /* compact line height */
  --bs-accordion-btn-icon-width: 0.8rem; /* smaller caret icon where supported */
}

.left-modal .accordion-item {
  margin-bottom: 6px;         /* slight spacing between items */
}

.left-modal .accordion-button::after {
  transform: scale(0.85);     /* shrink caret for broader compatibility */
}

/* Right-anchored modals for workspace save/load */
.right-modal .modal-dialog {
  margin: 0 !important;
  position: fixed;
  right: 0;
  left: auto;
  top: 64px;
  max-width: 380px;
  width: 90vw;
  transform: none !important;
}

.right-modal .modal-content {
  max-height: calc(100vh - 80px);
  overflow: auto;
}

.right-modal .modal-content,
.right-modal .modal-header,
.right-modal .modal-body,
.right-modal .modal-footer {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.25;
}

.right-modal .modal-title,
.right-modal label,
.right-modal .form-label,
.right-modal .form-text,
.right-modal .form-check-label {
  font-family: inherit;
  font-size: 12px;
}

.right-modal input[type="text"],
.right-modal input[type="number"],
.right-modal .form-control {
  font-size: 12px;
  padding: 4px 8px;
  width: 100%;
}

.right-modal .form-switch .form-check-label {
  font-size: 12px;
}

/* Dropdown compact styling for right modals */
.right-modal .dropdown-full .Select__control,
.right-modal .dropdown-full .VirtualizedSelectFocusedOption,
.right-modal .dropdown-full .Select-control {
  min-height: 32px;
  font-size: 12px;
}

/* Accordion compact styling for right modals */
.right-modal .accordion-button {
  padding: 4px 8px;
  font-size: 12px;
  line-height: 1.2;
  --bs-accordion-btn-icon-width: 0.8rem;
}

.right-modal .accordion-item {
  margin-bottom: 6px;
}

.right-modal .accordion-button::after {
  transform: scale(0.85);
}

/* Small modern delete icon for overlay headers */
.overlay-remove {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid #ced4da;   /* light gray border */
  color: #6c757d;               /* muted gray text */
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  line-height: 1;
  font-size: 12px;
}

.overlay-remove:hover {
  background: #dc3545;          /* danger red */
  border-color: #dc3545;
  color: #fff;
}

/* Compact icon-only buttons */
.icon-btn {
  padding: 2px 8px !important;
  line-height: 1 !important;
  min-width: 28px;
  text-align: center;
}
/******************************** below not used *******************************************/

/* Hide native checkbox */
.pill-checklist input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Label styled as pill */
.pill-checklist label {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 18px;
    padding: 4px 10px 4px 28px;
    font-size: 12px;
    line-height: 16px;
    margin: 4px 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pill-checklist label::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #999;
    background: #fff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.pill-checklist input[type="checkbox"]:checked + label::before {
    background: #6a0dad;
    border-color: #6a0dad;
}

.pill-checklist input[type="checkbox"]:checked + label::after {
    content: "✓";
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-55%);
    font-size: 9px;
    color: #fff;
}

.pill-checklist input[type="checkbox"]:checked + label {
    background: #f8f3ff;
    border-color: #6a0dad;
}

.Select--multi .Select-value {
    background-color: #ebf5ff !important;
    background-color: #fff !important;
    border-radius: 2px;
    border: 1px solid #CCC !important;
    color: #000 !important;
    display: inline-block;
    font-size: 0.9em;
    line-height: 1.4;
    margin-left: 5px;
    margin-top: 5px;
    vertical-align: top;
}

.Select--multi .Select-value-icon {
  border-right: 1px solid #CCC !important;
}

.Select--multi .Select-value-icon:hover, .Select--multi .Select-value-icon:focus {
    background-color: #d8eafd !important;
    background-color: rgba(230, 0, 0, 0.08) !important;
    color: #4a4a4a !important;
}

.modern-checklist {
  padding: 10px;
  max-height: 300px;
  border: 1px solid #CCCC;
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
  overflow-y: auto;
}

/* ============================================
   MODERN PILL-STYLE TABS
   ============================================ */

/* Tabs wrapper - left justify and auto width */
#plot-tabs {
    text-align: left !important;
    display: block !important;
}

/* The tab parent container generated by Dash */
#plot-tabs > div:first-child {
    display: inline-flex !important;
    width: auto !important;
    justify-content: flex-start !important;
}

/* Tab container - pill background */
.tab-container.jsx-1653633250,
#plot-tabs .tab-container {
    background: #f1f3f5;
    border-radius: 6px !important;
    padding: 2px !important;
    gap: 2px !important;
    border: none !important;
    display: inline-flex !important;
    width: auto !important;
    margin-top: 10px;
    margin-bottom: 10px;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
}

/* Individual tab styling */
.tab.jsx-1653633250,
#plot-tabs .tab {
    background-color: transparent !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-weight: 600 !important;
    font-size: 12px;
    color: #64748b;
    transition: all 0.2s ease;
    cursor: pointer;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: unset !important;
    max-width: unset !important;
}

.tab.jsx-1653633250:first-child {
    border-top-left-radius: 8px;
}

.tab.jsx-1653633250:last-child {
    border-top-right-radius: 8px;
}

/* Tab hover state */
.tab.jsx-1653633250:hover:not(.tab--selected) {
    background-color: rgba(90, 87, 255, 0.08) !important;
    color: #5a57ff;
}

/* Selected tab styling */
.tab--selected.jsx-1653633250, 
.tab.jsx-1653633250:last-of-type.tab--selected,
#plot-tabs .tab--selected {
    background-color: white !important;
    color: #5a57ff !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: none !important;
    font-weight: 600;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner .column-actions {
  margin-right: 6px;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th:hover [class^='column-header--']:not(.disabled), .dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner th:hover [class^='dash-filter--']:not(.disabled)
{
  color: hsla(241, 100%, 67%, 0.938) !important;
  opacity: 0.8 !important;
}

.dash-sk-circle .dash-sk-child:before {
  background-color: hsla(241, 100%, 67%, 0.938) !important;
}

.plotly .dropdown-menu .dropdown-item {
    background: white !important;
    color: black !important;
    padding: 4px 8px !important;
}

.plotly .dropdown-menu .dropdown-item:hover {
    background: hsla(241, 100%, 67%, 0.938) !important;
    color: #FFF !important;
}

.plotly .dropdown-menu .dropdown-item.active {
    background: hsla(241, 100%, 67%, 0.938) !important;
    color: #FFF !important;
}

.updatemenu-item-rect {
    fill: white !important;
    stroke: lightgray !important;
}

.updatemenu-item-text {
    fill: black !important;
}

.updatemenu-dropdown-button:hover .updatemenu-item-rect {
    fill: hsla(241, 100%, 67%, 0.938) !important;
}

.updatemenu-dropdown-button:hover .updatemenu-item-text {
    fill: #FFF !important;
}

.updatemenu-dropdown-button[updatemenu-active-index="3"] .updatemenu-item-rect,
.updatemenu-dropdown-button.active .updatemenu-item-rect {
    fill: hsla(241, 100%, 67%, 0.938) !important;
}

.updatemenu-dropdown-button[updatemenu-active-index="3"] .updatemenu-item-text,
.updatemenu-dropdown-button.active .updatemenu-item-text {
    fill: #FFF !important;
}

.accordion-button:not(.collapsed) {
    color: #FFF !important;
    background-color: hsla(241, 100%, 67%, 0.838)  !important;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFF' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 5 L8 11 L14 5'/%3E%3C/svg%3E") !important;

}

input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff !important;
    margin: 0;
    font: inherit;
    width: 14px !important;
    height: 14px !important;
    border: 1px solid hsla(241, 100%, 67%, 0.938) !important;
    border-radius: 50%;
    display: grid !important;
    place-content: center !important;
    cursor: pointer !important;
}

input[type="radio"]::before {
  content: "" !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  transform: scale(0) !important;
  transition: 0.15s transform ease-in-out !important;
  background-color: hsla(241, 100%, 67%, 0.938) !important;
}

input[type="radio"]:checked::before {
    transform: scale(1) !important;
}

.dash-input[type="text"]{
  padding: 6px !important;
  border: 1px solid rgb(223, 223, 223) !important;
  border-radius: 6px !important;
}

.dash-input[type="number"]{
  padding: 6px !important;
  border: 1px solid rgb(223, 223, 223) !important;
  border-radius: 6px !important;
}

label:has(> input[type="radio"]) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
  cursor: pointer !important;
}

#target-dropdown .Select-control {
  background-color: #FFF !important;
  border-radius: 6px !important;
}

#target-dropdown .Select-menu-outer {
  background-color: #FFF !important;
}
.VirtualizedSelectOption {
  background-color: white !important;
  color: black !important;
}

.VirtualizedSelectFocusedOption {
  background-color: hsla(241, 100%, 67%, 0.9) !important;
  color: #FFF !important;                         
}

.VirtualizedSelectSelectedOption {
  background-color: hsla(241, 100%, 67%, 0.938) !important;
  color: #FFF !important;                                  
}

#anova-results .anova-item pre {
  font-size: 12px !important;
}

@media (min-width: 400px) {
    #anova-results .anova-item pre {
      font-size: 8px !important;
  }
}

@media (min-width: 600px) {
  #anova-results .anova-item pre {
    font-size: 10px !important;
  }
}

@media (min-width: 1000px) {
  #anova-results .anova-item pre {
    font-size: 10px !important;
  }
}

@media (min-width: 1600px) {
  #anova-results .anova-item pre {
    font-size: 10px !important;
  }
}

@media (min-width: 1800px) {
  #anova-results .anova-item pre {
    font-size: 12px !important;
  }
}

/* Subtle link-style for Select All */
a[id*="project-select-all"]:hover {
  color: #0056b3 !important;
  border-bottom: 1px solid #0056b3 !important;
  text-decoration: none !important;
}



/* Make the project management tab with [+/-] label narrow */
.tab.jsx-1653633250[data-value="add-project-tab"] {
  min-width: 35px !important;
  max-width: 35px !important;
  width: 35px !important;
  padding: 4px 6px !important;
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  position: relative !important;
  color: transparent !important; /* Hide original text */
  background-image: url('./folder-icon.svg') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 22px 18px !important;
}

/* Alternative CSS targeting via className */
.narrow-tab.jsx-1653633250 {
  min-width: 32px !important;
  max-width: 32px !important;
  width: 32px !important;
  padding: 2px !important;
  text-align: center !important;
  font-size: 14px !important;
  flex: 0 0 32px !important;
  color: transparent !important;
  background-image: url('./folder-icon.svg') !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 22px 18px !important;
}

/* Force the tab container to respect narrow tabs */
.tabs-container .jsx-1653633250 .narrow-tab {
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
}

/* Global tooltip styling */
.tooltip .tooltip-inner {
  background-color: #334155 !important;
  color: white !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  padding: 4px 8px !important;
  font-weight: 500 !important;
  max-width: 300px !important;
}

/* Custom tooltip styling for parameter mappings (slightly smaller) */
.custom-tooltip .tooltip-inner {
  font-size: 11px !important;
}

/* Arrow styling for all tooltips */
.tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.bs-tooltip-top .arrow::before {
  border-top-color: #334155 !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.bs-tooltip-bottom .arrow::before {
  border-bottom-color: #334155 !important;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.bs-tooltip-left .arrow::before {
  border-left-color: #334155 !important;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.bs-tooltip-right .arrow::before {
  border-right-color: #334155 !important;
}

/* Modern toggle button styling */
.toggle-btn-modern:hover {
  background-color: #e9ecef !important;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
  transform: translateY(-1px);
}

.toggle-btn-modern:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
}

/* ============================================
   MODERN SIDEBAR STYLING
   ============================================ */

/* Fixed hamburger/workspace buttons container */
#hamburger-container {
    position: fixed !important;
    z-index: 1100 !important;
}

/* Main sidebar container */
#side-panel {
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
    padding: 20px 16px !important;
    transition: all 0.3s ease;
    position: sticky !important;
    top: 0 !important;
    height: 100vh;
    overflow-y: auto;
}

/* Section labels in sidebar */
#side-panel label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
}

/* Status/info badges */
#debug-experiment-status {
    background: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 12px !important;
    color: #475569 !important;
}

/* Runs section container */
#runs-div {
    background: #ffffff;
    border-radius: 12px;
    padding: 8px 0 !important;
    margin-top: 12px;
    border: none;
    box-shadow: none;
    width: 100%;
}

/* Runs tabs styling - make them more compact */
#runs-tabs {
    width: 100%;
}

#runs-tabs .tab-container {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 3px;
    margin-bottom: 12px;
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
}

#runs-tabs .tab {
    font-size: 11px !important;
    padding: 4px 8px !important;
    border-radius: 6px;
    flex: 0 0 auto;
    text-align: center;
    white-space: nowrap;
}

/* Special styling for the add-project tab in runs-tabs */
#runs-tabs .tab[data-value="add-project-tab"] {
    flex: 0 0 auto !important;
    min-width: 40px !important;
    width: auto !important;
    padding: 4px 6px 4px 4px !important;
}

/* Modern checklist items in sidebar */
#side-panel .modern-checklist {
    width: 100%;
}

#side-panel .modern-checklist label {
    background: #ffffff;
    border-radius: 6px;
    padding: 5px 10px 5px 32px !important;
    margin: 2px 0;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    text-transform: none !important;
    font-family: inherit !important;
    font-weight: normal !important;
}

#side-panel .modern-checklist label:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

/* Dropdown styling in sidebar */
#side-panel .Select-control,
#side-panel .Select__control {
    border-radius: 8px !important;
    border-color: #e2e8f0 !important;
    min-height: 36px !important;
    font-size: 12px !important;
    background: #ffffff !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

#side-panel .Select-control:hover,
#side-panel .Select__control:hover {
    border-color: #5a57ff !important;
    background: #ffffff !important;
}

#side-panel .Select__control--is-focused,
#side-panel .Select-control.is-focused {
    border-color: #5a57ff !important;
    box-shadow: 0 0 0 3px rgba(90, 87, 255, 0.12) !important;
    background: #ffffff !important;
}

/* Dropdown menu styling */
#side-panel .Select__menu,
#side-panel .Select-menu-outer {
    border-radius: 8px !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    margin-top: 4px !important;
    overflow: hidden;
}

#side-panel .Select__option,
#side-panel .Select-option {
    font-size: 12px !important;
    padding: 8px 12px !important;
    transition: background 0.15s ease;
}

#side-panel .Select__option:hover,
#side-panel .Select-option:hover {
    background: #f1f5f9 !important;
}

#side-panel .Select__option--is-selected,
#side-panel .Select-option.is-selected {
    background: rgba(90, 87, 255, 0.1) !important;
    color: #1f2937 !important;
}

#side-panel .Select__option--is-focused,
#side-panel .Select-option.is-focused {
    background: #f1f5f9 !important;
}

/* Multi-value tags styling */
#side-panel .Select__multi-value,
#side-panel .Select-value {
    background: #ffffff !important;
    border-radius: 4px !important;
    border: 1px solid #e2e8f0 !important;
    margin: 2px !important;
}

#side-panel .Select__multi-value__label,
#side-panel .Select-value-label {
    color: #1f2937 !important;
    font-size: 11px !important;
    padding: 2px 6px !important;
}

#side-panel .Select__multi-value__remove,
#side-panel .Select-value-icon {
    color: #6b7280 !important;
    border-radius: 0 4px 4px 0 !important;
    padding: 0 4px !important;
    border-left: 1px solid #e2e8f0 !important;
}

#side-panel .Select__multi-value__remove:hover,
#side-panel .Select-value-icon:hover {
    background: #fee2e2 !important;
    color: #ef4444 !important;
}

/* Placeholder styling */
#side-panel .Select__placeholder,
#side-panel .Select-placeholder {
    color: #94a3b8 !important;
    font-size: 12px !important;
}

/* Clear indicator */
#side-panel .Select__clear-indicator {
    color: #94a3b8 !important;
    padding: 4px !important;
}

#side-panel .Select__clear-indicator:hover {
    color: #ef4444 !important;
}

/* Dropdown indicator */
#side-panel .Select__dropdown-indicator,
#side-panel .Select-arrow-zone {
    color: #64748b !important;
    padding: 4px 8px !important;
}

#side-panel .Select__dropdown-indicator:hover {
    color: #5a57ff !important;
}

/* Toggle area styling */
#toggle-area {
    padding: 8px 16px;
    background: transparent;
}

/* Sidebar section dividers */
.sidebar-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
    margin: 16px 0;
}

/* Sidebar section headers with icons */
.sidebar-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    margin-bottom: 12px;
}

.sidebar-section-header i {
    color: #5a57ff;
    font-size: 14px;
}

.sidebar-section-header span {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

/* ============================================
   MODERN MAIN PLOTTING AREA
   ============================================ */

#main-area {
    background: #ffffff;
    border: none !important;
    box-shadow: none;
}

/* Tab content area */
#main-area .tab-content {
    background: transparent;
    padding: 8px 0;
}

/* Graph containers */
#main-area .br-graph {
    background: #ffffff;
    border-radius: 8px;
}

/* Data table styling */
#main-area .dash-table-container {
    border-radius: 8px;
    overflow: hidden;
}

#main-area .dash-spreadsheet-container {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px;
}

#main-area .dash-header {
    background: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb !important;
}

#main-area .dash-cell {
    border-color: #f3f4f6 !important;
}

/* ============================================
   MODERN OFFCANVAS (CLUSTER MODAL) STYLING
   ============================================ */

/* Main offcanvas container */
.offcanvas {
    font-family: inherit !important;
    font-size: 12px !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

/* No animation - immediate open/close */
.offcanvas.offcanvas-start {
    transition: none !important;
}

.offcanvas.offcanvas-start.showing,
.offcanvas.offcanvas-start.show {
    transform: translateX(0) !important;
    transition: none !important;
}

.offcanvas.offcanvas-start.hiding {
    transform: translateX(-100%) !important;
    transition: none !important;
}

/* Backdrop */
.offcanvas-backdrop {
    transition: none !important;
}

.offcanvas-backdrop.show {
    opacity: 0.3 !important;
}

/* Offcanvas header */
.offcanvas-header {
    font-family: inherit !important;
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
    padding: 8px 16px 4px 16px !important;
    min-height: auto !important;
}

.offcanvas-title {
    font-family: inherit !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #333 !important;
    text-transform: none !important;
}

/* Offcanvas body */
.offcanvas-body {
    font-family: inherit !important;
    padding: 10px 8px 4px 8px !important;
    background: #fff !important;
}

/* Cards inside offcanvas */
#offcanvas .card,
.offcanvas .card,
.offcanvas-body .card {
    font-family: inherit !important;
    background: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    box-shadow: none !important;
}

#offcanvas .card-body {
    font-family: inherit !important;
    padding: 12px !important;
}

/* Headers in modal */
#offcanvas h4 {
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    color: #333 !important;
    text-transform: none !important;
}

#offcanvas p {
    font-family: inherit !important;
    color: #888 !important;
    font-size: 11px !important;
}

/* Dividers */
#offcanvas hr {
    border: none !important;
    height: 1px;
    background: #eee;
    margin: 12px 0 !important;
}

/* Labels - lowercase, simple */
#offcanvas label {
    font-family: inherit !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #666 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

/* Inputs - minimal style */
#offcanvas input[type="number"],
#offcanvas input[type="text"] {
    font-family: inherit !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    font-size: 12px !important;
    background: #fff !important;
}

#offcanvas input[type="number"]:focus,
#offcanvas input[type="text"]:focus {
    border-color: #5a57ff !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Dropdowns - clean look */
#offcanvas .Select__control,
#offcanvas .Select-control {
    font-family: inherit !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    background: #fff !important;
    min-height: 32px !important;
    box-shadow: none !important;
}

#offcanvas .Select__control--is-focused,
#offcanvas .Select-control.is-focused {
    border-color: #5a57ff !important;
    box-shadow: none !important;
}

/* Buttons - subtle */
#offcanvas button {
    font-family: inherit !important;
    border-radius: 4px !important;
    font-weight: 400 !important;
    font-size: 12px !important;
    text-transform: none !important;
}

/* Error message - hidden when empty */
#error-message:empty,
#offcanvas #error-message:empty {
    display: none !important;
}

#error-message,
#offcanvas #error-message {
    font-family: inherit !important;
    background: #fef2f2;
    border: none !important;
    border-radius: 6px;
    padding: 10px 12px;
    color: #dc2626;
    font-weight: 500;
    font-size: 12px;
}

/* Graph container */
#offcanvas .br-graph {
    border: none !important;
    border-radius: 8px;
}

#main-area .dash-cell {
}