/* Developer panel (/dev) - builds on style.css + admin-style.css tokens. */
.dv-bar{ justify-content:space-between; gap:12px; flex-wrap:wrap; }
.dv-actions{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.dv-auto{ font-size:.82rem; color:var(--text-dim); display:flex; gap:6px; align-items:center; cursor:pointer; }
.dv-overall{ display:flex; align-items:center; gap:10px; font-weight:700; }
.dv-dot{ width:10px; height:10px; border-radius:50%; background:var(--text-faint); flex:none; display:inline-block; }
.dv-ok{ background:#2ecc71; box-shadow:0 0 8px rgba(46,204,113,.6); }
.dv-warn{ background:#f5b301; box-shadow:0 0 8px rgba(245,179,1,.5); }
.dv-bad{ background:var(--live); box-shadow:0 0 8px rgba(255,59,59,.6); }
.dv-track{ height:7px; background:var(--slate); border-radius:4px; overflow:hidden; }
.dv-fill{ height:100%; background:var(--blue); border-radius:4px; }
.dv-fill.dv-warn{ background:#f5b301; box-shadow:none; } .dv-fill.dv-bad{ background:var(--live); box-shadow:none; }

/* Section intro: one short plain-language line under the heading so the
   page reads like an explanation, not just a wall of numbers. */
.dv-section-desc{ color:var(--text-dim); font-size:.85rem; margin:-4px 0 14px; max-width:70ch; line-height:1.5; }

/* ---------- dashboard overview: KPI tiles ---------- */
.dv-kpis{ display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:14px; margin-bottom:14px; }
.dv-kpi{ display:flex; gap:14px; align-items:flex-start; background:var(--bg-alt); border:1px solid var(--line); border-radius:var(--radius-lg); padding:16px; }
.dv-kpi-icon{ flex:none; width:44px; height:44px; border-radius:12px; display:flex; align-items:center; justify-content:center; }
.dv-kpi-icon svg{ width:21px; height:21px; display:block; }
.dv-kpi-icon.c-twitch{ background:#9147ff; }
.dv-kpi-icon.c-discord{ background:#5865f2; }
.dv-kpi-icon.c-green{ background:#1f9d57; }
.dv-kpi-icon.c-orange{ background:#dd7a1f; }
.dv-kpi-body{ min-width:0; }
.dv-kpi-label{ font-size:.74rem; color:var(--text-dim); text-transform:uppercase; letter-spacing:.05em; font-weight:700; }
.dv-kpi-value{ font-size:1.35rem; font-weight:800; margin:3px 0 5px; line-height:1.1; }
.dv-kpi-sub{ font-size:.78rem; color:var(--text-dim); display:flex; align-items:center; gap:6px; }

/* secondary connection pills */
.dv-connections{ display:flex; flex-wrap:wrap; gap:10px; margin:0 0 28px; }
.dv-conn{ display:flex; align-items:center; gap:7px; font-size:.78rem; color:var(--text-dim); background:var(--bg-alt); border:1px solid var(--line); border-radius:99px; padding:6px 12px; }
.dv-conn b{ color:var(--text); font-weight:700; margin-left:2px; }

/* mini performance/trend cards */
.dv-perf-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:14px; margin-bottom:28px; }
.dv-perf-card{ position:relative; overflow:hidden; border-radius:var(--radius-lg); padding:18px; color:#fff; min-height:150px; display:flex; flex-direction:column; justify-content:flex-end; }
.dv-perf-card.c-twitch{ background:linear-gradient(160deg,#9a51ff,#5b23b8); }
.dv-perf-card.c-discord{ background:linear-gradient(160deg,#6d78ff,#333bb0); }
.dv-perf-card.c-green{ background:linear-gradient(160deg,#35d17e,#188049); }
.dv-perf-chart-wrap{ position:absolute; inset:0; opacity:.92; }
.dv-perf-chart{ width:100%; height:100%; display:block; }
.dv-perf-chart polyline{ fill:none; stroke:#fff; stroke-width:2.4; stroke-linecap:round; stroke-linejoin:round; }
.dv-perf-chart circle{ fill:#fff; }
.dv-perf-bars rect{ fill:rgba(255,255,255,.55); }
.dv-perf-empty{ position:absolute; inset:0; display:flex; align-items:center; justify-content:center; font-size:.8rem; opacity:.75; text-align:center; padding:0 16px; }
.dv-perf-label{ position:relative; font-weight:800; font-size:.98rem; margin-top:auto; }
.dv-perf-sub{ position:relative; font-size:.78rem; opacity:.88; margin-top:2px; }

/* limits list (compact rows with a progress bar) */
.dv-limits-list{ display:flex; flex-direction:column; gap:10px; margin-bottom:8px; }
.dv-limit-row{ display:flex; gap:14px; align-items:center; background:var(--bg-alt); border:1px solid var(--line); border-radius:var(--radius-lg); padding:12px 16px; }
.dv-limit-icon{ flex:none; width:34px; height:34px; border-radius:9px; background:var(--blue-soft); display:flex; align-items:center; justify-content:center; }
.dv-limit-icon svg{ width:17px; height:17px; }
.dv-limit-main{ flex:1; min-width:0; }
.dv-limit-top{ display:flex; justify-content:space-between; gap:10px; font-size:.85rem; margin-bottom:6px; }
.dv-limit-label{ font-weight:700; }
.dv-limit-pct{ font-weight:800; flex:none; }
.dv-limit-pct-ok{ color:#4ade80; } .dv-limit-pct-warn{ color:#f5b301; } .dv-limit-pct-bad{ color:var(--live); }
.dv-limit-val{ font-weight:800; color:var(--text); flex:none; }
.dv-limit-sub{ font-size:.76rem; color:var(--text-dim); margin-top:6px; }
.dv-limit-row-stat .dv-limit-sub{ margin-top:2px; }

@media (max-width:640px){
  #devSection.section{ padding-left:4vw; padding-right:4vw; }
  #devSection .admin-panel-inner{ padding:18px 14px 26px; }

  /* status bar: status on top, then "bijgewerkt" + auto, then two equal buttons */
  .dv-bar{ padding:14px; gap:12px; }
  .dv-overall{ width:100%; font-size:1rem; }
  .dv-actions{ width:100%; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px 12px; align-items:center; }
  #dvUpdated{ grid-column:1; font-size:.78rem; min-width:0; }
  .dv-auto{ grid-column:2; justify-self:end; white-space:nowrap; min-height:32px; }
  .dv-auto input{ width:18px; height:18px; }
  .dv-actions .btn{ grid-column:auto; width:100%; min-height:46px; margin:0; }
  .dv-actions #logoutBtn{ flex:none; order:0; }

  /* KPI tiles: 2x2, shrinkable (minmax(0,1fr) stops the right column being clipped) */
  .dv-kpis{ grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; }
  .dv-kpi{ flex-direction:column; gap:10px; padding:14px; min-width:0; }
  .dv-kpi-icon{ width:38px; height:38px; border-radius:10px; }
  .dv-kpi-value{ font-size:1.2rem; overflow-wrap:anywhere; }
  .dv-kpi-label{ font-size:.7rem; }
  .dv-kpi-sub{ align-items:flex-start; line-height:1.35; overflow-wrap:anywhere; }
  .dv-kpi-sub .dv-dot{ margin-top:4px; }

  .dv-connections{ gap:8px; margin-bottom:22px; }
  .dv-conn{ padding:7px 12px; }

  /* trend cards: chart on top, text underneath (no more text drawn over the lines) */
  .dv-perf-grid{ grid-template-columns:minmax(0,1fr); gap:12px; margin-bottom:22px; }
  .dv-perf-card{ min-height:170px; padding:14px 16px; }
  .dv-perf-chart-wrap{ inset:10px 10px 62px 10px; }
  .dv-perf-chart{ overflow:visible; }

  .dv-limit-row{ padding:12px; gap:12px; }
  .dv-limit-top{ flex-wrap:wrap; row-gap:2px; }
  .dv-limit-sub{ overflow-wrap:anywhere; }
  .dv-section-desc{ font-size:.82rem; }
}
@media (max-width:360px){
  .dv-kpis{ grid-template-columns:minmax(0,1fr); }
  .dv-kpi{ flex-direction:row; align-items:center; }
}
