/* ================================================================
   INVENTORYHUB — dashboard.css (LIGHT MODE)
   ================================================================ */

.dash-body { padding: 0 26px 2.5rem; }

.page-hero { padding: 1.6rem 0 1.2rem; }
.page-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em;
  color: var(--text-primary); line-height: 1.1;
}
.page-title .title-accent {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-sub { font-size: 0.9rem; color: var(--text-soft); margin-top: 0.4rem; }

/* Stat Cards */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; position: relative; overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02); transition: transform 0.2s, box-shadow 0.2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(29,78,216,0.08); }

.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.stat-card[data-color="neon"]::before   { background: var(--primary); }
.stat-card[data-color="orange"]::before { background: var(--orange); }
.stat-card[data-color="red"]::before    { background: var(--red); }
.stat-card[data-color="purple"]::before { background: var(--purple); }

.stat-icon-wrap {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.stat-val { font-size: 2.2rem; font-weight: 800; font-family: 'Syne', sans-serif; letter-spacing: -0.02em; line-height: 1; }
.stat-lbl { font-size: 0.8rem; font-weight: 600; color: var(--text-soft); margin-top: 0.4rem; }

/* Charts Row */
.charts-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.2rem; margin-bottom: 1.5rem; }
.chart-wrap { padding: 0 24px 24px; height: 300px; position: relative; }
.chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* Donut Legend */
.delivery-legend { display: flex; flex-direction: column; gap: 10px; min-width: 140px; }
.dl-item { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.dl-dot  { width: 12px; height: 12px; border-radius: 4px; flex-shrink: 0; }
.dl-label { color: var(--text-soft); flex: 1; font-weight: 500; }
.dl-pct  { color: var(--text-primary); font-weight: 700; font-family: 'Syne', sans-serif; }

/* Tables Row */
.tables-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 2rem; }

/* Tabs */
.tab-group {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px;
}
.tab-btn {
  padding: 6px 14px; border-radius: 7px; font-size: 0.8rem; font-weight: 700;
  color: var(--text-soft); transition: all 0.2s;
}
.tab-btn:hover  { color: var(--primary); }
.tab-btn.active { background: var(--bg-card); color: var(--primary); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

/* Buttons */
.btn-pdf {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px;
  border-radius: 99px; background: var(--primary-dim); border: 1px solid var(--primary-border);
  color: var(--primary); font-size: 0.8rem; font-weight: 700; font-family: 'Syne', sans-serif;
  transition: all 0.2s; text-decoration: none;
}
.btn-pdf:hover { background: var(--primary); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(29,78,216,0.3); }

@media (max-width: 1100px) { .charts-row { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } .tables-row { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .dash-body { padding: 0 16px 2rem; }
  .stats-grid { gap: 0.8rem; }
  .stat-val { font-size: 1.8rem; }
  .col-bar { display: none; }
  .chart-wrap { height: 240px; }
}