/* =====================================================================
   SimplePanel — direction artistique « espace client » (inspirée d'HelloServ), en violet SimpleGames
   Demandée le 2026-10-17 : même disposition qu'avant, look plat et net.
   Gris anthracite, cartes plates à fine bordure, titres de tableau en capitales monospace,
   boutons pleins aux coins peu arrondis, états « ■ Actif » en monospace. Aucun dégradé, aucune lueur.
   Chargé après brand.css (et avant mobile.css).
   ===================================================================== */
:root {
  --bg: #1b1d22;            /* fond de page */
  --side: #17191d;          /* barre latérale */
  --card: #22252b;          /* cartes */
  --card-2: #272a31;        /* en-têtes de tableau, survols */
  --field: #1a1c21;         /* champs */
  --line: #2e3138;
  --line-2: #3a3e46;
  --text: #f1f2f4;
  --muted: #9a9fa9;
  --faint: #6c717c;
  --brand: #8338ec; --brand-2: #9d5cf2; --brand-3: #c9a8ff;
  --accent: #8338ec; --accent-2: #9d5cf2;
  --ok: #3ccf7e; --warn: #f2b84b; --bad: #f05252;
  --radius: 6px;
}

body { background: var(--bg); background-attachment: scroll; }
::selection { background: rgba(131, 56, 236, .45); }

/* ---------- barre latérale ---------- */
.side { background: var(--side); border-right: 1px solid var(--line); backdrop-filter: none; }
.side .nav .ico { border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.side .nav a:hover .ico { background: var(--card-2); color: var(--text); border: 0; }
.side .nav a.active .ico { background: var(--card-2); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.logout { border-radius: 6px; background: transparent; border: 1px solid var(--line); }
[data-tip]:hover::after { background: var(--card-2); border-color: var(--line-2); border-radius: 4px; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }

/* ---------- titres de page ---------- */
.head h1, .ghead h1 { font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.head .sub { color: var(--muted); font-size: 15px; }
.section-title { color: var(--muted); }
.section-title::after { background: var(--line); }

/* ---------- cartes : plates, fine bordure ---------- */
.card, .ed-layout, .sum, .pillar, .mod, details.mh, .check, .upd-bar, .pl-stats div, .core, .hstat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; backdrop-filter: none;
}
.card h2, .area-title, .dash .area-title, .sum span, .hstat span, .pl-stats span {
  font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
/* petits titres dans les cartes étroites : capitales, mais police normale pour tenir sur une ligne */
.g-title, .sg-title, .gg-title { letter-spacing: .08em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h2 .hint { font-family: "DM Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; font-weight: 400; }

/* ---------- tableaux / listes : en-tête gris, lignes séparées ---------- */
.list { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.card.list, .card .list { border: 0; }
.row { padding: 14px 18px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row:hover, .srow:hover { background: var(--card-2); }
.row .nm { font-weight: 600; } .row .ds { color: var(--muted); font-size: 12.5px; }
.srow + .srow { box-shadow: 0 -1px 0 var(--line); }

/* ---------- boutons : pleins, coins peu arrondis ---------- */
button { border-radius: 4px; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: none; font-weight: 600; }
button:hover { background: #30333b; border-color: #4a4e57; }
button.primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: none; }
button.primary:hover { background: var(--brand-2); border-color: var(--brand-2); filter: none; box-shadow: none; }
button.danger { color: #ff8a8a; background: transparent; border-color: rgba(240, 82, 82, .45); }
button.danger:hover { background: rgba(240, 82, 82, .12); }
button.small { padding: 5px 11px; }
button.maint-on { color: #ffd27a; background: rgba(242, 184, 75, .1); border-color: rgba(242, 184, 75, .5); }
.tabs button.on, .ed-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: none; }
.ed-tabs { background: var(--side); }
.ed-tabs button.on .ico { color: #fff; }

/* ---------- champs ---------- */
input, select, textarea { background: var(--field); border: 1px solid var(--line-2); border-radius: 4px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(131, 56, 236, .3); }
select option { background: var(--card); }

/* ---------- états : « ■ Actif » en monospace ---------- */
.pill { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 12.5px; font-weight: 700; letter-spacing: .02em;
  background: transparent; border: 0; padding: 2px 0; border-radius: 0; color: var(--muted); }
.pill .dot, .dot { border-radius: 1px; box-shadow: none !important; }
.pill .dot { width: 8px; height: 8px; }
.pill.ok { color: var(--ok); background: transparent; } .pill.ok .dot { background: var(--ok); }
.pill.bad { color: var(--bad); background: transparent; } .pill.bad .dot { background: var(--bad); }
.pill.warn { color: var(--warn); background: transparent; } .pill.warn .dot { background: var(--warn); }
.pill.upd { color: var(--brand-3); background: transparent; } .pill.upd .dot { background: var(--brand-2); }
.conn .dot.ok { animation: none; }
.svc-ico { background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; color: var(--brand-3); }
.svc-ico .dot { border-color: var(--card); border-radius: 50%; }
.hico, .upd-ico { border-radius: 6px; }

/* ---------- tableau de bord ---------- */
.hero, .dash .hero { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: none; }
.hero::before, .hero::after { display: none; }
.hstat { background: var(--card-2); }
.hstat b { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; }
.gauge .g-fg { filter: none; }
.bar { background: var(--card-2); border-radius: 2px; }
.bar > i, .dgame .bar > i, .gg-bar i, .tbar > i { background: var(--brand); box-shadow: none; border-radius: 2px; }
.gg-bar { border-radius: 2px; }
.core::before { display: none; }
.thread .ghz { color: var(--text); }
.dgame, .games .game { border-radius: var(--radius); }
.dgame:hover, .games .game:hover { transform: none; box-shadow: none; border-color: var(--line-2); }
.dg-banner { border-bottom: 1px solid var(--line); }
.dg-banner > .pill, .ghead .pill { background: rgba(15, 16, 19, .78); padding: 4px 9px; border-radius: 3px; flex: none; white-space: nowrap; }
.dg-banner.art, .ghead.art { background: linear-gradient(90deg, rgba(23, 25, 29, .94) 0%, rgba(23, 25, 29, .6) 55%, rgba(23, 25, 29, .25) 100%), var(--art) center 42% / cover no-repeat; }
.ghead { border-radius: var(--radius); border: 1px solid var(--line); }
.dg-logo, .gh-logo { box-shadow: 0 0 0 2px var(--line-2); }
.legend .ramp { box-shadow: none; }
.pl-hours i, .bi-chart i { background: var(--brand); box-shadow: none; opacity: .9; border-radius: 3px 3px 0 0; }

/* ---------- éditeur, barres et fenêtres ---------- */
.field { border-radius: 4px; }
.field.changed { background: rgba(242, 184, 75, .06); }
.switch input:checked + span { background: var(--brand); box-shadow: none; }
.savebar { background: var(--card); border: 1px solid var(--brand); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); backdrop-filter: none; }
.warnbox { border-radius: 4px; }
.modal { backdrop-filter: none; background: rgba(10, 11, 13, .75); }
.modal .box { background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius); }
.modal .bh { background: var(--card-2); }
.console, .modal pre, #job-log { background: #121417; border-radius: 4px; }
.toast { background: var(--card-2); border: 1px solid var(--line-2); border-left: 3px solid var(--ok); border-radius: 4px; backdrop-filter: none; }
.toast.err { border-left-color: var(--bad); }

/* ---------- connexion ---------- */
.login { background: var(--bg); }
.login .box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); backdrop-filter: none; }
.login button.primary { background: var(--brand); border-radius: 4px; }

/* téléphone : barres du haut et du bas dans le même gris */
@media (max-width: 820px) {
  .side, .side .nav { background: var(--side); }
  .side .nav a.active .ico { box-shadow: inset 0 -3px 0 var(--brand); }
}

/* =====================================================================
   Serveurs de jeu : liste en tableau et page d'un serveur (façon espace client HelloServ)
   ===================================================================== */
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.icon-btn { padding: 3px 8px !important; min-height: 0; background: transparent; border-color: transparent; color: var(--muted); font-size: 14px; }
.icon-btn:hover { color: #fff; background: var(--card-2); }

/* tableau « Mes services » */
.tbl { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.tbl-head, .tbl-row { display: grid; grid-template-columns: minmax(0, 2.4fr) 1fr .8fr 1.5fr .9fr 96px; gap: 16px; align-items: center; padding: 14px 20px; }
.tbl-head { background: var(--card-2); border-bottom: 1px solid var(--line); font: 700 11.5px "JetBrains Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.tbl-row { border-top: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.tbl-head + .tbl-row { border-top: 0; }
.tbl-row:hover { background: var(--card-2); }
.tbl-row .nm { font-weight: 600; } .tbl-row .ds { color: var(--muted); font-size: 12.5px; }
.gname { display: flex; gap: 12px; align-items: center; min-width: 0; }
.gi, .gp-logo { width: 38px; height: 38px; border-radius: 6px; object-fit: cover; flex: none; border: 1px solid var(--line-2); }
.gi-glyph { display: grid; place-items: center; font: 700 12px "JetBrains Mono", monospace; color: #fff; background: var(--card-2); }
.gi-glyph.t-reforger { background: #3d3214; color: #f2cf73; } .gi-glyph.t-zomboid { background: #3c1717; color: #ff9b9b; } .gi-glyph.t-minecraft { background: #16361d; color: #8ee59a; }
.addr-cell { display: flex; align-items: center; gap: 4px; font-size: 13.5px; }
.tbl-row .btns { justify-content: flex-end; } .tbl-row .btns button.primary { padding: 7px 18px; }

/* en-tête de la page d'un serveur */
.gp-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.gp-back { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 6px; color: var(--text); background: var(--card); font-size: 18px; flex: none; }
.gp-back:hover { background: var(--card-2); color: #fff; }
.gp-head .gp-logo { width: 52px; height: 52px; font-size: 15px; }
.gp-title { flex: 1; min-width: 0; }
.gp-title h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gp-title .sub { color: var(--muted); margin-top: 2px; }
.gp-head-r { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.gp-badge { font-size: 13.5px; font-weight: 600; padding: 7px 14px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); }
.gp-badge.ok { color: #6ee7a8; background: rgba(60, 207, 126, .1); border-color: rgba(60, 207, 126, .35); }
.gp-badge.bad { color: #ff9b9b; background: rgba(240, 82, 82, .1); border-color: rgba(240, 82, 82, .35); }
.gp-badge.warn { color: #ffd27a; background: rgba(242, 184, 75, .1); border-color: rgba(242, 184, 75, .35); }

/* bandeau d'information */
.gp-notice { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; }
.gp-notice > div { flex: 1; } .gp-notice .sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.gp-notice .ni { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); color: var(--brand-3); flex: none; }
.gp-notice.warn .ni { color: var(--warn); }

/* onglets soulignés */
.gp-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.gp-tabs button { background: none; border: 0; border-radius: 0; color: var(--muted); padding: 12px 14px; font-weight: 600; font-size: 14.5px; display: flex; gap: 8px; align-items: center; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.gp-tabs button span { opacity: .8; }
.gp-tabs button:hover { background: none; color: var(--text); }
.gp-tabs button.on { color: #fff; border-bottom-color: var(--brand); background: none; }

/* carte « Mon serveur » */
.gp-card { padding: 0; overflow: hidden; }
.gp-card-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.gp-card-h h3 { margin: 0; font-size: 17px; }
.gp-state { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 16px 20px 6px; flex-wrap: wrap; }
.gp-live { display: inline-flex; align-items: center; gap: 9px; font-family: Lexend, sans-serif; font-weight: 600; font-size: 17px; }
.gp-live i { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.gp-live.ok i { background: var(--ok); } .gp-live.bad i { background: var(--bad); } .gp-live.warn i { background: var(--warn); }
.gp-quick { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gp-quick .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 6px; font-weight: 600; }
.gp-quick button { font-size: 13px; padding: 7px 12px; }
button.go { background: #1f9d55; border-color: #1f9d55; color: #fff; }
button.go:hover { background: #24b462; border-color: #24b462; }
button:disabled { opacity: .45; cursor: default; }
.gp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px 20px; }
.gp-tiles > div { background: var(--card-2); border-radius: 4px; padding: 12px 14px; }
.gp-tiles span { display: block; color: var(--muted); font-size: 13px; }
.gp-tiles b { display: block; font-size: 16px; margin-top: 3px; }
.gp-tiles.res { padding: 0; }
.gp-addr { display: flex; gap: 10px; padding: 0 20px 20px; align-items: stretch; flex-wrap: wrap; }
.gp-addr-in { flex: 1; min-width: 240px; background: var(--card-2); border-radius: 4px; padding: 10px 14px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.gp-addr-in span { grid-column: 1; color: var(--muted); font-size: 13px; }
.gp-addr-in b { grid-column: 1; font-size: 16px; }
.gp-addr-in .icon-btn { grid-column: 2; grid-row: 1 / span 2; font-size: 17px; }
.gp-addr > button { padding: 0 18px; }

/* onglet Détails */
.gp-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
.gp-info span { display: block; color: var(--muted); font-size: 13px; }
.gp-info b { display: block; font-weight: 600; margin-top: 3px; overflow-wrap: anywhere; }

/* console RCON */
.console-box { width: min(1100px, 100%) !important; }
.rc-log { max-height: 46vh; min-height: 260px; margin: 0; }
.rc-out { max-height: 160px; overflow: auto; padding: 8px 18px; font: 12.5px/1.5 "JetBrains Mono", monospace; border-top: 1px solid var(--line); }
.rc-out:empty { display: none; }
.rc-out .cmd { color: var(--brand-3); } .rc-out .res { color: var(--text); white-space: pre-wrap; } .rc-out .err { color: var(--bad); }
.rc-form { padding: 12px 18px 16px; margin: 0; border-top: 1px solid var(--line); align-items: center; }
.rc-form .rc-prompt { font: 700 16px "JetBrains Mono", monospace; color: var(--brand-3); }
.rc-form input { flex: 1; font-family: "JetBrains Mono", monospace; }

@media (max-width: 820px) {
  .tbl-head { display: none; }
  .tbl-row { grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px; }
  .tbl-row .gname { grid-column: 1 / -1; }
  .tbl-row > :nth-child(5) { display: none; }
  .gp-head { flex-wrap: wrap; } .gp-title h1 { font-size: 21px; white-space: normal; }
  .gp-head-r { width: 100%; justify-content: flex-start; }
  .gp-notice { flex-wrap: wrap; } .gp-notice button { width: 100%; }
  .gp-tiles { grid-template-columns: 1fr 1fr 1fr; padding: 12px 14px; gap: 6px; } .gp-tiles b { font-size: 14px; }
  .gp-state, .gp-card-h { padding-left: 14px; padding-right: 14px; } .gp-addr { padding: 0 14px 14px; }
  .gp-quick .k { width: 100%; } .gp-quick button { flex: 1 1 auto; }
  .gp-addr > button { flex: 1; padding: 10px; }
  .gp-info { grid-template-columns: 1fr; }
}
