:root {
  color-scheme: light;
}

body {
  background-image:
    radial-gradient(circle at top right, rgba(165, 201, 182, 0.22), transparent 24%),
    radial-gradient(circle at top left, rgba(231, 184, 127, 0.16), transparent 18%);
}

.soft-gradient {
  background: linear-gradient(135deg, rgba(165, 201, 182, 0.35), rgba(255, 255, 255, 0.7));
}

.metric-card {
  border: 1px solid #d8e4da;
  background: #f9fcf9;
  border-radius: 22px;
  padding: 14px;
}

.metric-card span {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
}

.metric-card strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1rem;
  color: #20312a;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.status-badge.success {
  background: #e7f8ef;
  color: #177245;
}

.status-badge.warning {
  background: #fff4df;
  color: #98610e;
}

.status-badge.danger {
  background: #fde8e8;
  color: #b42318;
}

.status-badge.muted {
  background: #f2f4f7;
  color: #667085;
}

.setting-box {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border: 1px solid #d8e4da;
  border-radius: 24px;
  background: #fff;
  padding: 1rem;
}

.setting-box label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #344d42;
}

.setting-box input {
  width: 100%;
  border: 1px solid #d8e4da;
  border-radius: 18px;
  padding: 0.85rem 1rem;
  outline: none;
}

.setting-box input:focus {
  border-color: #6fa88f;
}

/* ===== Chart Layout Fix ===== */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.chart-card {
    background: #ffffff;
    border: 1px solid #d8e4da;
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(32, 49, 42, 0.06);
    min-height: 420px;
}

.chart-canvas-wrap {
    position: relative;
    width: 100%;
    height: 320px !important;
    min-height: 320px !important;
    display: block;
}

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

/* Responsive */
@media (max-width: 900px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }

    .chart-card {
        min-height: 380px;
    }

    .chart-canvas-wrap {
        height: 280px !important;
    }
}