body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #e0f7fa;
  color: #333;
  margin: 0;
  padding: 20px;
  overflow-x: hidden;
}

.viz-container {
  max-width: 1600px;
  margin: 0 auto;
}

.title-section {
  border-bottom: 1px solid #b3e5fc;
  padding-bottom: 15px;
  margin-bottom: 30px !important;
}

.title-section h1 {
  color: #0277bd;
  font-weight: 600;
  margin-bottom: 5px;
}

.subtitle {
  color: #546e7a;
  font-size: 1.1rem;
}

.viz-divider {
  border-top: 2px dashed #0277bd;
  opacity: 0.5;
  margin-top: 3rem !important;
  margin-bottom: 3rem !important;
}

.visualization-holder {
  width: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  position: relative;
}

#circular-barplot-container {
  min-height: 750px;
  position: relative;
  margin-top: -90px;
}

#circular-barplot svg {
  display: block;
  margin: 0 auto;
  font-family: inherit;
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.bar-non-fatal {
  stroke: #ffffff;
  stroke-width: 0.5px;
  transition: filter 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.bar-non-fatal:hover {
  filter: brightness(1.1);
  stroke-width: 1px;
}

.bar-non-fatal.is-hovered {
  filter: brightness(1.12) saturate(1.05);
  stroke-width: 1.2px;
}

.bar-fatal {
  stroke: #ffffff;
  stroke-width: 0.5px;
  transition: filter 0.2s ease, stroke-width 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}


.bar-fatal:hover {
  filter: brightness(1.1);
  stroke-width: 1px;
}

.bar-fatal.is-hovered {
  filter: brightness(1.08) saturate(1.08);
  stroke-width: 1.2px;
}


.labels .label text {
  font-size: 10px;
  fill: #37474f;
  pointer-events: none;
}

.labels .label tspan.county-label {
  font-weight: bold;
  fill: #1a237e;
}

.labels .label tspan.state-label {
  font-style: italic;
  fill: #37474f;
}

.labels .label.is-hovered text {
  fill: #111827;
}

.curved-connectors .connector-line-curved {
  stroke-width: 0.75px;
  stroke-opacity: 0.6;
  fill: none;
  pointer-events: none;
  transition: stroke-opacity 0.2s ease, stroke-width 0.2s ease;
}

.curved-connectors .connector-line-curved.highlighted {
  stroke-opacity: 1.0;
  stroke-width: 1.5px;
}

.state-map-connectors .state-map-connector {
  stroke-width: 0.75px;
  stroke-opacity: 0.4;
  stroke-dasharray: 3, 3;
  fill: none;
  pointer-events: none;
  transition: stroke-opacity 0.2s ease, stroke-width 0.2s ease;
}

.state-map-connectors .state-map-connector.highlighted {
  stroke-opacity: 0.9;
  stroke-width: 1.5px;
}


.state-labels-center text {
  font-size: 11px;
  font-weight: bold;
  fill: #01579b;
  text-anchor: middle;
  pointer-events: none;
}


.map-layer-center .state-boundary-inner {
  stroke: #555;
  stroke-width: 1px;
  opacity: 0.7;
  transition: opacity 0.2s ease, stroke-width 0.2s ease, filter 0.2s ease;
  pointer-events: none;
}

.map-layer-center .state-boundary-inner[style*="fill: none"], .map-layer-center .state-boundary-inner:not([style*="rgb"]) {
  fill: #f8f9fa;
  stroke: #bbb;
  opacity: 0.5;
}

.map-layer-center .state-boundary-inner.highlighted {
  opacity: 1.0;
  stroke-width: 2.5px;
  stroke: #000;
  filter: brightness(1.05);
}


#circular-legend {
  position: absolute;
  top: 150px;
  left: 125px;
  background-color: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid #bdbdbd;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  font-size: 0.8rem;
  z-index: 15;
  pointer-events: none;
  max-width: 180px;
}

#circular-legend h4 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #0277bd;
  border-bottom: 1px solid #eee;
  padding-bottom: 4px;
}

#circular-legend div {
  margin-bottom: 4px;
  display: flex;
  align-items: center;
}

#circular-legend div:last-child {
  margin-bottom: 0;
}

#circular-legend .legend-color-box {
  width: 13px;
  height: 13px;
  margin-right: 6px;
  display: inline-block;
  border: 1px solid #aaa;
  flex-shrink: 0;
}

#circular-legend .legend-fatal {
  background-color: #800000;
}

#circular-legend .legend-text-only {
  margin-left: 0;
}


#circular-tooltip {
  position: absolute;
  background-color: rgba(40, 40, 40, 0.85);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.2s ease-out;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#circular-tooltip strong {
  color: #81d4fa;
}

#circular-tooltip .fatal {
  color: #ff7043;
}

.hover-prompt-text {
  font-size: 12px;
  fill: #546e7a;
  text-anchor: middle;
  font-style: italic;
  pointer-events: none;
}

#sankey-diagram-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  margin-top: -10px;
}

#sankey-diagram svg {
  display: block;
  width: 100%;
  height: auto;
  font-family: inherit;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sankey-title-section h2 {
  color: #0277bd;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.sankey-title-section .subtitle {
  margin-bottom: 0.5rem;
}

.sankey-title-section .small strong {
  color: #d84315;
}

.sankey-link {
  fill: none;
  transition: stroke-opacity 0.25s ease-in-out;
  cursor: pointer;
}

.sankey-node rect {
  stroke: #37474f;
  stroke-width: 0.5px;
  shape-rendering: crispEdges;
  transition: fill 0.2s ease;
}

.sankey-node:hover rect {
  fill: #37474f;
}

.sankey-node text {
  pointer-events: none;
  font-size: 11px;
  fill: #111;
  text-shadow: 0 1px 0 #fff;
}

#sankey-legend {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

#sankey-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

#sankey-legend .legend-color-box {
  width: 18px;
  height: 18px;
  border: 1px solid #ccc;
  display: inline-block;
  vertical-align: middle;
}

#sankey-legend .legend-text {
  font-size: 0.9rem;
  color: #333;
  vertical-align: middle;
}

#sankey-legend .legend-width-info {
  font-size: 0.85rem;
  color: #555;
  font-style: italic;
  width: 100%;
  text-align: center;
}

#sankey-tooltip {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.75);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease-out;
  z-index: 10;
  max-width: 250px;
  white-space: normal;
}

.wave-animations {
  pointer-events: none;
}

.wave-particle {
  opacity: 0.85;
}

.text-section h2,.text-section h3,.text-section h4 {
  color: #0277bd;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.text-section p,.text-section ul,.text-section ol {
  line-height: 1.6;
  color: #455a64;
}

.text-section ul,.text-section ol {
  padding-left: 25px;
}

.text-section li {
  margin-bottom: 0.5rem;
}

.text-section strong {
  color: #01579b;
}
