/* ============================================================
   Chart container sizing rules
   ============================================================ */

.chart-container {
  position: relative;
  width: 100%;
}

.chart-container canvas {
  display: block;
  width: 100% !important;
  max-height: 100%;
}

/* Remove shimmer class when loaded */
.chart-container:not(.skeleton) {
  background: transparent;
  animation: none;
}

/* Overlay spinner for in-flight fetches */
.chart-loading-overlay {
  align-items: center;
  background: rgba(15, 17, 23, 0.6);
  border-radius: var(--radius-md);
  display: flex;
  inset: 0;
  justify-content: center;
  position: absolute;
  z-index: 10;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 0.8s linear infinite;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent-cyan);
  border-radius: 50%;
  height: 32px;
  width: 32px;
}
