/* =============================================================================
   panel.css — mise en page propre au panel (barre latérale, onglets, journaux…)
   Les couleurs, polices, boutons et cartes viennent de noxium-theme.css.
   ============================================================================= */

/* --- Structure --- */
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: var(--bg-deep); border-right: 1px solid var(--line); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .brand { margin-bottom: 22px; }
.nav a { white-space: nowrap; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border-radius: 7px; color: var(--muted); font-size: 14px; }
.nav a:hover { background: var(--panel); color: var(--text); text-decoration: none; }
.nav a.on { background: var(--panel-2); color: var(--text); }
.nav .sep { margin: 16px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.nav .pdot { width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--muted)); flex: none; }
.side form { margin-top: 20px; }
.side .who { font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.main { padding: 26px 32px 60px; max-width: 1200px; width: 100%; min-width: 0; }
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.top .sub { color: var(--muted); margin-top: -6px; }
.section-title { margin-top: 28px; }

/* --- Indicateurs --- */
.metric .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.metric .value { font-family: var(--mono); font-size: 22px; margin: 4px 0 8px; }

/* --- Cartes de projet --- */
.proj { display: block; color: var(--text); border-left: 3px solid var(--muted); }
.proj:hover { text-decoration: none; border-color: var(--accent); background: var(--panel-2); }
.proj.ok { border-left-color: var(--accent); }
.proj.warn { border-left-color: var(--warn); }
.proj.off { border-left-color: var(--bad); }
.proj .name { font-weight: 600; font-size: 16px; }
.proj .desc { font-size: 13px; color: var(--muted); margin-top: 4px; }
.proj .meta { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Onglets --- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; font-size: 14px; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }

/* --- Journaux --- */
.log { background: #05070a; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; height: 520px; overflow: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; color: #c6d0dc; }
.log .e { color: #ff9a9a; }
.log .w { color: var(--warn); }
.log .k { color: var(--accent); }

/* --- Envoi de fichier --- */
.drop { border: 1.5px dashed #2c3747; border-radius: var(--radius); padding: 22px; text-align: center; background: #0c1118; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .icon { font-size: 28px; }
.drop p { margin: 4px 0 10px; }

/* --- Connexion --- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px;
  background: radial-gradient(1200px 600px at 20% -10%, rgba(94, 224, 176, .09), transparent 60%), var(--bg); }
.login .box { width: 100%; max-width: 380px; text-align: center; }
.login .brand { margin-bottom: 22px; }
.login h1 { font-size: 20px; }

@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .side .brand { margin-bottom: 10px; }
  .nav { display: flex; gap: 4px; overflow-x: auto; }
  .nav .sep, .side form, .nav .proj-link { display: none; }
  .main { padding: 18px 16px 50px; }
  .top .btn { width: 100%; }
  td form.row { flex-wrap: wrap; }
  .log { height: 60vh; }
}
