/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */


:root {
  --primary-bg: #f7f9fa;
  --card-bg: #fff;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --border-radius: 18px;
  --title-color: #22223b;
  --legend-bg: #f1f1f1;
  --legend-radius: 8px;
  --font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

.dashboard-bg {
  min-height: 100vh;
  /* Ensure gradient doesn't repeat by delegating to body only */
  background: none !important;
  background-repeat: no-repeat;
  background-size: cover;
  display: block; /* Avoid flex shrink/crop on small screens */
  padding: 24px 0; /* Slightly smaller on mobile */
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll caused by shadows/blur */
}

.chart-card {
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  border-radius: var(--border-radius);
  padding: 32px 40px 32px 40px;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.chart-title {
  font-family: var(--font-family);
  font-size: 2rem;
  font-weight: 700;
  color: var(--title-color);
  margin-bottom: 18px;
  text-align: center;
}

.chart-legend {
  background: var(--legend-bg);
  border-radius: var(--legend-radius);
  padding: 8px 16px;
  margin-bottom: 18px;
  display: flex;
  gap: 18px;
  justify-content: center;
  font-family: var(--font-family);
  font-size: 1rem;
}

/* Scope canvas sizing to the chart container so other canvases/cards aren't affected */
.chart-container {
  position: relative;
}

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