/* ===================== Content-level dashboard components ===================== */
/* Navigation chrome (sidebar/topbar) now lives in style.css's app-shell/icon-sidebar
   rules, shared across every page. This file keeps only in-page components:
   stat tiles, panels, charts, tabs, etc. */

.page-content h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.025em; }
.page-content .lead { color: var(--text-dim); margin-top: 6px; font-size: 14.5px; }

/* ---------- Stat tiles ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin: 28px 0; }
.stat-tile {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px; display: flex; align-items: center; gap: 14px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.stat-tile:hover { border-color: var(--gold-dim); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,0.35); }
.stat-chip {
  width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.stat-chip .icon { width: 20px; height: 20px; }
.stat-chip.c-blue   { background: rgba(77,141,255,0.14); color: var(--blue); }
.stat-chip.c-green  { background: rgba(77,217,126,0.14); color: var(--success); }
.stat-chip.c-amber  { background: rgba(255,176,32,0.14); color: #ffb020; }
.stat-chip.c-violet { background: rgba(139,92,246,0.16); color: #a78bfa; }
.stat-chip.c-rose   { background: rgba(255,92,138,0.14); color: #ff5c8a; }
.stat-tile .num { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--white); }
.stat-tile .label { font-size: 12px; color: var(--text-faint); margin-top: 2px; font-weight: 600; }

/* ---------- Panels ---------- */
.dash-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; margin-bottom: 28px; }
.dash-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border-soft); }
.dash-panel-head h3 { font-size: 14.5px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.dash-panel-head h3 .icon { width: 16px; height: 16px; color: var(--gold); }
.dash-list-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--border-soft); font-size: 13.5px; transition: background .12s; }
.dash-list-row:hover { background: rgba(255,255,255,0.02); }
.dash-list-row:last-child { border-bottom: none; }
.dash-list-row .rank { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; background: var(--gold-glow); color: var(--gold); font-size: 11px; font-weight: 700; margin-right: 10px; flex-shrink: 0; }
.dash-list-row .row-title { display: flex; align-items: center; font-weight: 600; }
.dash-list-row .row-sub { color: var(--text-faint); font-size: 12px; display: flex; align-items: center; gap: 5px; }
.dash-list-row .row-sub .icon { width: 12px; height: 12px; }

/* ---------- Empty state inside dash content ---------- */
.dash-empty { text-align: center; padding: 60px 20px; color: var(--text-faint); }
.dash-empty .icon { width: 32px; height: 32px; margin-bottom: 12px; }

/* ---------- Execution chart ---------- */
.chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; padding: 22px; margin-bottom: 28px; }
.chart-card svg { width: 100%; height: auto; display: block; }
.chart-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-soft); flex-wrap: wrap; gap: 10px; }
.chart-foot h3 { font-size: 14.5px; font-weight: 700; }
.chart-foot p { font-size: 12.5px; color: var(--text-faint); margin: 3px 0 0; }
.chart-updated { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-faint); }
.chart-updated .icon { width: 13px; height: 13px; }

/* ---------- Filled project-style panel header ---------- */
.dash-scripts-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 18px 20px; border-bottom: 1px solid var(--border-soft); flex-wrap: wrap;
}
.dash-scripts-head .id-line { display: flex; align-items: center; gap: 12px; }
.dash-scripts-head .avatar {
  width: 38px; height: 38px; border-radius: 10px; background: var(--gold-glow); color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dash-scripts-head .avatar .icon { width: 18px; height: 18px; }
.dash-scripts-head h3 { font-size: 15px; font-weight: 700; }
.dash-scripts-head .sub { font-size: 12px; color: var(--text-faint); font-family: var(--mono); }

@media (max-width: 800px) {
  .page-content { padding: 20px; }
}
