body, html {
  overflow-x: hidden;
  background: var(--background-light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  max-width: 1000px;
  margin: 1rem auto 0 auto;
  padding: 0 1rem 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-family-primary);
}

.main-content h2 {
  font-family: var(--font-family-primary);
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 2.5rem 0 1.2rem 0;
  text-align: center;
}

.main-content canvas {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  margin: 0 5px 10px 5px;
  padding: 1rem;
  display: block;
  width: 100%;
  max-width: 100%;
}


.summary-label-row {
  display: flex;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.summary-since-label {
  color: #597aa2;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.summary-cards {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.summary-card {
  background: linear-gradient(180deg, #597aa2 0%, #32445a 100%);
  color: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(59,82,108,0.08);
  padding: 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 180px;
}

.summary-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.summary-label {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.summary-value {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.2rem;
}

.charts-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.chart-block {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(59,82,108,0.08);
  padding: 0.2rem 0.2rem 0.3rem 0.2rem;
  min-width: 260px;
  max-width: 400px;
  width: 400px;
  flex: 0 0 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 900px) {
  .charts-row {
    flex-direction: column;
    gap: 1.5rem;
  }
  .chart-block {
    min-width: unset;
    max-width: 100%;
    width: 100%;
    flex: 1 1 100%;
  }
}

.chart-block h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #3b526c;
  margin-bottom: 10px;
  margin-top: 10px;
  text-align: center;
  width: 100%;
  height: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  word-break: break-word;
  white-space: normal;
}


/* style.css: styles for main-content and dashboard area */

:root {
  --container-max-width: 900px;
  --font-family-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --background-light: #f7f8fa;
  --border-light: #e2e8f0;
}


.footer {
  background: linear-gradient(135deg, var(--banner-gradient-start) 0%, var(--banner-gradient-end) 100%);
  color: white;
  padding: 1rem 0;
  margin-top: auto;
  position: relative;
  width: 100%;
}