/* Chart section styling */
#chart-container {
  position: relative;
  display: flex;
  justify-content: center;
  background: transparent;
  padding: 0;
}

.chart-tabs {
  margin-bottom: 2rem;
}

.tabs.chart-tabs ul {
  border-bottom: none;
}

.chart-tabs a {
  border: none;
  border-radius: 9999px;
  margin: 0 5px;
  padding: 0.5em 1em;
  transition: background-color 0.2s ease, color 0.2s ease;
  background-color: #f5f5f5;
  color: #363636;
  font-weight: 500;
}

.tabs.chart-tabs a {
  border-bottom-width: 1px !important;
}

.chart-tabs li:not(.is-active) a:hover {
  background-color: #d8d8d8;
}

.chart-tabs li.is-active a {
  background-color: #363636;
  color: #ffffff;
  pointer-events: none;
}

#chart-loading {
  text-align: center;
  padding: 100px 0;
  width: 100%;
}

#chart-loading .icon {
  color: #4a4a4a;
}

#chart-loading p {
  margin-top: 20px;
  font-size: 1.1rem;
  color: #4a4a4a;
}

.chart-error {
  color: #f14668;
}

.chart-error .icon {
  color: #f14668;
}

#plotly-chart {
  display: none;
  min-height: 550px;
  width: 100%;
}

#plotly-chart.loaded {
  display: block;
}
