/* =====================================================================
   SimplePanel — thème « Violet Nuit » (identité SimpleGames)
   Planche validée le 2026-10-15. Chargé en dernier : surcharge style.css + theme.css.
   Violet de la marque : #8338EC.
   ===================================================================== */
:root {
  --brand: #8338ec;
  --brand-2: #b48cff;
  --brand-3: #d6c2ff;
  --bg: #0b0912;
  --card: rgba(30, 24, 50, .75);
  --line: rgba(180, 140, 255, .14);
  --line-2: rgba(180, 140, 255, .22);
  --text: #efeaff;
  --muted: #a99cc8;
  --faint: #6f6390;
  --accent: #8338ec;
  --accent-2: #b48cff;
  --accent-3: #c084fc;
  --font-display: Lexend, "Segoe UI Variable Display", system-ui, sans-serif;
  --font-body: "DM Sans", "Segoe UI Variable Text", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

body {
  font-family: var(--font-body);
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(131, 56, 236, .22), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(110, 60, 200, .14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
h1, h2, h3, .big, .dg-players b, .g-val b, .hstat b, .hero h1, .fn, .ed-head h2 { font-family: var(--font-display); }
.card h2, .section-title, .area-title, .g-title, .hero-k, .hstat span, .sg-title, .sum span, .dash .area-title { font-family: var(--font-display); }
::selection { background: rgba(131, 56, 236, .4); }
a { color: var(--brand-2); }

/* ---------- boutons ---------- */
button.primary { background: var(--brand); box-shadow: 0 8px 22px -10px rgba(131, 56, 236, .9); }
button.primary:hover { filter: brightness(1.12); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(131, 56, 236, .25); }

/* ---------- rail ---------- */
.side { background: rgba(12, 10, 20, .88); border-right: 1px solid var(--line); }
.side .brand .logo { display: none; }
.side .brand .brand-ico { width: 40px; height: auto; display: block; }
.side .nav .ico { background: transparent; border: 1px solid rgba(255, 255, 255, .08); color: var(--muted); }
.side .nav .ico svg { width: 18px; height: 18px; }
.side .nav a:hover .ico { border-color: var(--line-2); color: var(--text); }
.side .nav a.active .ico { background: var(--brand); border-color: transparent; color: #fff; box-shadow: 0 10px 24px -8px rgba(131, 56, 236, .9); }
.logout svg { width: 17px; height: 17px; }

/* ---------- cartes ---------- */
.card, .ed-layout, .sum {
  background: linear-gradient(180deg, rgba(38, 30, 62, .72), rgba(20, 17, 34, .82));
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 50px -28px rgba(0, 0, 0, .8);
}
.card h2, .g-title, .area-title, .section-title { color: var(--muted); }

/* ---------- bandeau ---------- */
.hero {
  background:
    radial-gradient(600px 220px at 0% 0%, rgba(131, 56, 236, .55), transparent 70%),
    radial-gradient(500px 220px at 100% 100%, rgba(180, 120, 255, .25), transparent 70%),
    linear-gradient(135deg, #221943, #120f1f);
  border: 1px solid rgba(180, 140, 255, .22);
}
.hero::after { display: none; }
.hero-brand { display: flex; align-items: center; gap: 18px; }
.hero-brand .wordmark { height: 30px; width: auto; display: block; }
.hero-brand .sep { width: 1px; height: 34px; background: rgba(255, 255, 255, .15); }
.hero-k { color: #cdb8ff; }
.hero-sub { color: #b8acd6; }
.dash .hero h1 { display: none; }
.hstat { background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .09); }
.hstat span { color: var(--muted); }

/* ---------- jauges ---------- */
.gauge .g-bg { stroke: rgba(255, 255, 255, .07); }
.gauge .g-fg { filter: drop-shadow(0 0 6px rgba(131, 56, 236, .6)); }
.g-val small { color: var(--muted); }

/* ---------- jeux ---------- */
.dg-banner.art, .ghead.art {
  background:
    linear-gradient(90deg, rgba(10, 8, 20, .93) 0%, rgba(10, 8, 20, .55) 55%, rgba(10, 8, 20, .2) 100%),
    var(--art) center 42% / cover no-repeat;
}
.dgame .bar > i { background: linear-gradient(90deg, var(--brand-2), var(--brand)); box-shadow: 0 0 12px rgba(131, 56, 236, .6); }
.bar > i { background: linear-gradient(90deg, var(--brand-2), var(--brand)); box-shadow: 0 0 12px rgba(131, 56, 236, .5); }
.dg-players b { font-weight: 700; }

/* ---------- services ---------- */
.svc-ico { background: rgba(131, 56, 236, .14); border-color: rgba(131, 56, 236, .3); color: var(--brand-2); }
.svc-ico svg { width: 13px; height: 13px; }
.svc-ico .dot { border-color: #15111f; }
.sg-title { color: var(--faint); }
.hico.ok { background: rgba(52, 211, 153, .12); }

/* ---------- cœurs ---------- */
.core { background: rgba(255, 255, 255, .035); border-color: rgba(255, 255, 255, .07); }
.thread .ghz { font-family: var(--mono); font-weight: 500; text-shadow: none; }
.legend .ramp { background: linear-gradient(90deg, #4c3a8f, #8338ec, #c084fc, #f472b6); box-shadow: none; }

/* ---------- éditeur ---------- */
.ed-tabs button.on { box-shadow: inset 2px 0 0 var(--brand); background: linear-gradient(90deg, rgba(131, 56, 236, .2), transparent); }
.ed-tabs .ico { color: var(--brand-2); }
.switch input:checked + span { background: var(--brand); box-shadow: 0 0 14px rgba(131, 56, 236, .55); }
.slider input[type=range], .check input { accent-color: var(--brand); }
.savebar { border-color: rgba(131, 56, 236, .45); box-shadow: 0 0 0 1px rgba(131, 56, 236, .35), 0 12px 40px -12px rgba(131, 56, 236, .5); }

/* ---------- conso par serveur de jeu (sous les jauges) ---------- */
.g-games { width: 100%; display: flex; flex-direction: column; gap: 7px; margin-top: 6px; }
.g-games:empty { display: none; }
.gg-title { font-family: var(--font-display); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint);
  font-weight: 600; padding-top: 9px; border-top: 1px solid var(--line); }
.gg-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.gg-ico { width: 24px; height: 24px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 8.5px; font-weight: 700; color: var(--g, var(--brand-2)); }
.gg-ico img { width: 100%; height: 100%; object-fit: cover; }
.gg-main { min-width: 0; }
.gg-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gg-bar { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .07); margin-top: 3px; overflow: hidden; }
/* cartes étroites (tableau de bord 16/9) : le logo identifie le jeu, le nom complet est au survol */
.dash .gg-name { display: none; }
.dash .gg-bar { height: 6px; margin-top: 0; }
.dash .gg-row { grid-template-columns: 22px minmax(24px, 1fr) auto; }
.dash .gg-ico { width: 22px; height: 22px; }
.gg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand-2), var(--brand)); transition: width .6s; }
.gg-val { font-family: var(--mono); font-size: 12px; font-weight: 500; text-align: right; white-space: nowrap; line-height: 1.15; }
.gg-val small { display: block; font-size: 10px; color: var(--faint); font-weight: 400; }

/* ---------- mises à jour / suivi des opérations ---------- */
.pill.upd { color: #d6c2ff; background: rgba(131, 56, 236, .18); border-color: rgba(131, 56, 236, .45); }
.pill.upd .dot { background: var(--brand-2); box-shadow: 0 0 8px var(--brand-2); }
.upd-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.upd-bar.avail { background: linear-gradient(90deg, rgba(131, 56, 236, .25), rgba(131, 56, 236, .06)); border-color: rgba(131, 56, 236, .5); }
.upd-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(131, 56, 236, .18); color: var(--brand-2); font-weight: 700; flex: none; }
.upd-txt { flex: 1; min-width: 0; }
.upd-txt .sub { color: var(--muted); font-size: 12.5px; }
.job-head { display: flex; align-items: center; gap: 12px; padding: 12px 18px 0; }
#job-log { min-height: 260px; }

/* ---------- fréquentation ---------- */
.pl-wrap { margin-bottom: 16px; }
.pl-tabs { display: inline-flex; gap: 4px; margin: 0; text-transform: none; letter-spacing: 0; }
.pl-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.pl-stats div { background: rgba(255, 255, 255, .035); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.pl-stats span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pl-stats b { font-family: var(--font-display); font-size: 20px; }
.pl-chart { width: 100%; height: 170px; display: block; }
.pl-grid line { stroke: rgba(255, 255, 255, .06); }
.pl-grid text { fill: var(--faint); font-size: 10px; font-family: var(--mono); }
.pl-peaks rect { fill: rgba(180, 140, 255, .14); }
.pl-legend { display: flex; justify-content: space-between; color: var(--faint); font-size: 11.5px; margin-top: 4px; }
.pl-legend i { display: inline-block; width: 10px; height: 3px; margin: 0 5px 2px 10px; vertical-align: middle; }
.lg-avg { background: #b48cff; } .lg-peak { background: rgba(180, 140, 255, .35); height: 8px !important; }
.pl-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 54px; margin-top: 14px; align-items: end; }
.pl-hours div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; }
.pl-hours i { width: 100%; border-radius: 3px 3px 0 0; background: linear-gradient(0deg, var(--brand), var(--brand-2)); opacity: .8; }
.pl-hours span { font-size: 9.5px; color: var(--faint); height: 11px; }

/* ---------- coûts OVH ---------- */
.bi-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; height: 180px; align-items: end; }
.bi-chart div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.bi-chart i { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: linear-gradient(0deg, var(--brand), var(--brand-2)); box-shadow: 0 0 14px rgba(131, 56, 236, .35); }
.bi-chart b { font-family: var(--mono); font-size: 11px; color: var(--muted); font-weight: 500; }
.bi-chart span { font-size: 11px; color: var(--faint); }

/* ---------- fenêtre de logs ---------- */
.log-tabs { padding: 12px 18px 0; margin: 0; align-items: center; }
.log-tabs .log-path { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- maintenance (page de statut publique) ---------- */
button.maint-on { color: #fde68a; background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .45); }

/* ---------- connexion ---------- */
.login { background:
    radial-gradient(700px 420px at 50% 0%, rgba(131, 56, 236, .35), transparent 65%),
    radial-gradient(600px 400px at 85% 100%, rgba(110, 60, 200, .2), transparent 65%), var(--bg); }
.login .box { background: linear-gradient(180deg, rgba(38, 30, 62, .85), rgba(20, 17, 34, .9)); }
.login .logo { display: none; }
.login .login-logo { width: 190px; height: auto; display: block; margin: 0 auto 18px; }
.login button.primary { background: var(--brand); }
