/* CZBA — stile condiviso della console autonoma.
 * Estratto da console.html (sessione 2026-08-31) per non duplicarlo su ogni pagina.
 * Nessuna build: e' un foglio di stile statico servito da /frontend/. */

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #0a0a0f; color: #e0e0f0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  padding: 1.5rem;
}

.top-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.top-bar h1 {
  font-size: 1.6rem; font-weight: 700;
  background: linear-gradient(135deg, #a0c4ff 0%, #7b8cff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.top-bar .links a {
  color: #667; text-decoration: none; font-size: .85rem;
  margin-left: 1rem; transition: color .2s;
}
.top-bar .links a:hover { color: #a0c4ff; }

.stats-row { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.stat-card {
  flex: 1; min-width: 170px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(100,120,255,.12);
  border-radius: 14px; padding: 1.2rem;
}
.stat-card .label { color: #667; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.stat-card .value { font-size: 1.8rem; font-weight: 700; color: #a0c4ff; }
.stat-card .value.green { color: #6dd897; }
.stat-card .value.red { color: #ff8a8a; }

.section {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(100,120,255,.10);
  border-radius: 14px; padding: 1.2rem; margin-bottom: 1.5rem;
}
.section-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 1rem; color: #8899cc; }
.hint { color: #667; font-size: .82rem; margin-bottom: .9rem; line-height: 1.5; }

table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: .6rem .8rem; font-size: .75rem;
  color: #556; text-transform: uppercase; letter-spacing: .05em;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
td { padding: .7rem .8rem; border-bottom: 1px solid rgba(255,255,255,.03); font-size: .88rem; vertical-align: top; }
tr:hover td { background: rgba(255,255,255,.02); }

.badge {
  display: inline-block; padding: .2rem .6rem; border-radius: 12px;
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  background: rgba(109,216,151,.15); color: #6dd897;
}
.badge.off { background: rgba(255,138,138,.15); color: #ff8a8a; }
.badge.warn { background: rgba(255,199,120,.15); color: #ffc778; }
.badge.info { background: rgba(100,120,255,.15); color: #a0c4ff; }

button {
  background: rgba(100,120,255,.14); color: #a0c4ff;
  border: 1px solid rgba(100,120,255,.28); border-radius: 10px;
  padding: .5rem .9rem; font-size: .82rem; cursor: pointer;
  font-family: inherit; transition: background .2s; margin-right: .5rem;
}
button:hover { background: rgba(100,120,255,.24); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.danger { background: rgba(255,90,90,.12); color: #ff8a8a; border-color: rgba(255,90,90,.28); }
button.danger:hover { background: rgba(255,90,90,.22); }
button.small { padding: .3rem .6rem; font-size: .74rem; margin-right: .3rem; }

input[type=text], input[type=url], input[type=number], input[type=datetime-local],
select, textarea {
  background: #05050a; color: #e0e0f0;
  border: 1px solid rgba(100,120,255,.20); border-radius: 10px;
  padding: .55rem .7rem; font-size: .85rem; font-family: inherit;
  width: 100%; margin-bottom: .7rem;
}
/* Su tema scuro l'icona del selettore data resta nera su nero: va invertita. */
input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.7); cursor: pointer; }
input[type=file] { color: #8899aa; font-size: .82rem; margin-bottom: .7rem; }
textarea { min-height: 160px; resize: vertical; font-family: ui-monospace, monospace; font-size: .8rem; line-height: 1.5; }
label { display: block; color: #667; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .35rem; }

.empty { color: #556; font-size: .85rem; padding: .8rem; }

.log {
  background: #05050a; border-radius: 10px; padding: .8rem;
  font-family: ui-monospace, monospace; font-size: .78rem;
  color: #8899aa; max-height: 190px; overflow-y: auto; white-space: pre-wrap;
}

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 1.5rem; }
.row { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 140px; }
.row > button { flex: 0 0 auto; min-width: 0; margin-bottom: .7rem; }

.pill-bar { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.pill {
  padding: .4rem .9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(100,120,255,.22); background: rgba(255,255,255,.02);
  color: #8899cc; font-size: .82rem; transition: all .2s;
}
.pill:hover { background: rgba(100,120,255,.12); }
.pill.active { background: rgba(100,120,255,.22); color: #a0c4ff; border-color: rgba(100,120,255,.45); }

.pre {
  background: #05050a; border-radius: 10px; padding: .9rem;
  font-family: ui-monospace, monospace; font-size: .79rem; line-height: 1.55;
  color: #b8c0d0; white-space: pre-wrap; word-break: break-word;
  max-height: 420px; overflow-y: auto;
}

.msg { padding: .55rem .75rem; border-radius: 8px; margin-bottom: .45rem; font-size: .85rem; line-height: 1.5; }
.msg .who { color: #8899cc; font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.msg.panda { background: rgba(100,120,255,.07); }
.msg.human { background: rgba(109,216,151,.06); }

.slide-card {
  background: rgba(255,255,255,.02); border: 1px solid rgba(100,120,255,.12);
  border-radius: 12px; padding: .9rem; margin-bottom: .8rem;
}
.slide-card .head { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .5rem; flex-wrap: wrap; }
.slide-card .name { font-weight: 600; color: #a0c4ff; font-size: .95rem; }
.slide-card ul { margin: .4rem 0 0 1.1rem; color: #99a3b8; font-size: .83rem; line-height: 1.6; }
.slide-card img { max-width: 200px; border-radius: 8px; border: 1px solid rgba(255,255,255,.08); margin-top: .5rem; }
