@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;900&display=swap');

/* body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  background-color: #0f172a;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
} */

/* Isolated Card Wrapper Canvas Container */
.chart-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: rgba(248, 249, 255, 0.95);
  border: 1px solid rgba(6, 17, 38, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(6, 17, 38, 0.13);
  padding: 30px 40px;
}

.chart-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

#liquidityChart {
  display: block;
  width: 100%;
  height: auto;
  min-width: 920px;
}

/* Animations hooks transitions curves */
#stackedBars rect, 
#dotsVisibleMarket circle, 
#dotsExplorerTotal circle,
#chartAnnotations g {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#stackedBars rect:hover {
  filter: brightness(1.08);
}

/* Replicated Legend Styling matching chart-label.png */
.flat-chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f1f5f9;
}

.legend-item {
  display: flex;
  align-items: center;
  font-size: 13.5px;
  color: #1e293b;
  white-space: nowrap;
}

.legend-text {
  margin-left: 0.5rem;
}

/* Line Indicators rules definitions */
.legend-line {
  width: 14px;
  height: 2px;
}
.line-blue { background-color: #1d5ea8; }
.line-orange { background-color: #f49d37; }

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #ffffff;
  margin-left: -11px;
}
.dot-blue { border: 2.5px solid #1d5ea8; }
.dot-orange { border: 2.5px solid #f49d37; }

/* Swatch Box indicators definitions */
.legend-box {
  width: 13px;
  height: 13px;
  border-radius: 2px;
}
.box-blue { background-color: #0b5cb4; }
.box-orange { background-color: #f58e26; }
.box-green { background-color: #3fa33f; }
.box-maroon { background-color: #b41d1d; }

/* Tooltip definitions overlays setup */
.custom-tooltip {
  position: absolute;
  pointer-events: none;
  opacity: 0;
  background-color: #0f172a;
  color: #f1f5f9;
  font-size: 12px;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #334155;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  z-index: 100;
  min-width: 190px;
  box-sizing: border-box;
}

/* Notification banner definitions targeting mobile portrait viewports */
.orientation-warning {
  display: none;
  background-color: #b91c1c;
  color: #ffffff;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  padding: 0.65rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

@media (max-width: 768px) and (orientation: portrait) {
  .orientation-warning {
    display: block;
  }
}