:root {
  --blue-primary: #00A6FB;
  --blue-dark: #005F8C;
  --orange-primary: #FF4B00;
  --orange-dark: #CC3A00;
  --gray-bg: #f7f9fc;
  --text-dark: #1b1e23;
  --white: #ffffff;
  --gray-border: #d0d6e1;
  --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  --sidebar-width: 300px;
}

/* === Global Reset === */
body, html {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', 'Helvetica Neue', sans-serif;
  background-color: var(--gray-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* === Typography === */
h1, h2, h3 {
  color: var(--blue-dark);
  margin-bottom: 12px;
}
a {
  color: var(--blue-primary);
  text-decoration: none;
}
.input-label,
label {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 4px;
  display: block;
}

/* === Header Banner === */
.banner-header {
  width: 100%;
  background-color: #010c1f;
  height: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.banner-inner {
  padding: 12px 0;
}
.banner-logo {
  height: 100px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}
.disclaimer-banner {
  background-color: #fff3cd;
  color: #856404;
  padding: 10px 15px;
  border: 1px solid #ffeeba;
  border-radius: 5px;
  font-size: 14px;
  font-weight: 500;
}

/* === Layout Containers === */
.full-height-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.main-row {
  display: flex;
  flex: 1 1 auto;      /* fill remaining space under banner */
  min-height: 0;       /* allow flex children to shrink */
  overflow: hidden;      /* scroll instead of cutting off */
}
.resizable-sidebar {
  width: 360px;
  min-width: 260px;
  max-width: 600px;
  resize: horizontal;
  overflow-y: auto;
  padding: 16px;
  background-color: var(--gray-bg);
  border-right: 2px solid var(--gray-border);
  box-sizing: border-box;
}
.graph-column {
  flex: 1 1 auto;
  padding: 20px;
  overflow-y: auto;          /* scroll right column when too tall */
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* === Graph === */
.graph-panel {
  width: 100%;
  flex: 1 1 auto;
}
.graph-panel > .dash-graph {
  height: 100% !important;
  width: 100% !important;
  min-height: 0;
}

/* === Form Elements === */
.input-small {
  width: 80px;
}
.dropdown,
.dropdown-small {
  min-width: 240px;
  max-width: 280px ;
  width: 100%;
}
.d-flex-align {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.radio-inline-group .form-check {
  display: inline-block;
  margin-right: 15px;
  align-items: center;
}
.radio-inline-group {
  display: flex;
  gap: 15px;
  align-items: center;
}
.dash-checklist label,
.dash-radio-items label {
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: 500;
  margin: 6px 0;
  gap: 8px;
  color: var(--text-dark);
}
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--blue-primary);
}
input,
select,
.dash-dropdown,
.Select-control,
.Select-menu-outer {
  padding: 6px 8px;
  font-size: 14px;
  color: var(--text-dark);
}

/* === Buttons === */
button,
.green-button,
.dash-bootstrap .btn,
.dash-bootstrap .btn-primary {
  background-color: var(--orange-primary);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 10px;
}
button:hover,
.green-button:hover,
.dash-bootstrap .btn:hover {
  background-color: var(--orange-dark);
}

/* === Utility === */
.inline-block {
  display: inline-block;
  vertical-align: top;
  margin-right: 20px;
}
.weight-box {
  padding: 8px 12px;
  background-color: #fff;
  border: 1px solid var(--gray-border);
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  width: fit-content;
}
.graph-accent {
  background: linear-gradient(90deg, var(--blue-primary), var(--orange-primary));
  height: 4px;
  border-radius: 2px;
  margin: 16px 0;
}
.footer {
  text-align: center;
  color: #888;
  font-size: 12px;
  margin-top: 20px;
  flex-shrink: 0;
}

/* === Responsive (Mobile) === */
@media (max-width: 768px) {
  .main-row {
    flex-direction: column;
    height: auto;
    overflow-y: visible;
  }

  .full-height-container {
    height: auto !important;
  }

  .resizable-sidebar {
    width: 100% !important;
    max-width: 100%;
    resize: none;
    border-right: none;
    padding: 12px;
  }

  .graph-column {
    width: 100%;
    padding: 12px;
    margin-top: 16px;
    flex-grow: 1;
    overflow-x: auto;
  }

  .graph-wrapper {
    overflow-x: auto;
    width: 100%;
  }

  .graph-panel {
    min-width: 640px;
    min-height: 480px;
    width: 640px;
    height: 480px;
  }

  .green-button {
    width: 100%;
    margin-bottom: 10px;
  }
/* Hide this text in browser view, but not in exported PNG */
  .js-plotly-plot .annotation[data-name="png-only-disclaimer"] {
  visibility: hidden;
  }
}