/* ZIP-04 — Shared UI (minimal modern dark) */
:root{
  --bg:#0b1020;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.08);
  --border:rgba(255,255,255,.12);
  --text:#eaf0ff;
  --muted:rgba(234,240,255,.72);
  --ok:#38d9a9;
  --warn:#ffd43b;
  --bad:#ff6b6b;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --radius:18px;
  --radius2:14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 10% -10%, rgba(109,40,217,.25), transparent 60%),
              radial-gradient(900px 500px at 90% 0%, rgba(34,211,238,.20), transparent 55%),
              var(--bg);
  color:var(--text);
}

.container{
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px 40px;
}

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:14px;
}
.brand{ display:flex; gap:12px; align-items:center; }
.logo{
  width:44px;height:44px;border-radius:14px;
  background: linear-gradient(135deg, rgba(34,211,238,.9), rgba(109,40,217,.9));
  box-shadow: var(--shadow);
}
h1{ font-size:18px; margin:0; letter-spacing:.2px; }
.sub{ margin:2px 0 0; color:var(--muted); font-size:13px; }

.grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:14px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns:1fr; }
}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 16px;
  border-bottom:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.head h2{ margin:0; font-size:14px; letter-spacing:.4px; text-transform:uppercase; }
.body{ padding:16px; }

.row{ display:flex; gap:12px; flex-wrap:wrap; }
.row > div{ flex:1; min-width: 210px; }
label{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }
input, select{
  width:100%;
  background: rgba(0,0,0,.25);
  color: var(--text);
  border:1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
  outline:none;
}
input:focus, select:focus{ border-color: rgba(34,211,238,.6); box-shadow: 0 0 0 4px rgba(34,211,238,.12); }

.btns{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:12px; }
button{
  cursor:pointer;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.10);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 14px;
  font-weight: 700;
}
button:hover{ background: rgba(255,255,255,.14); }
button:disabled{ opacity:.55; cursor:not-allowed; }
button.secondary{ background: rgba(34,211,238,.10); border-color: rgba(34,211,238,.22); }
button.secondary:hover{ background: rgba(34,211,238,.16); }
button.ghost{ background: transparent; }
button.danger{ background: rgba(255,107,107,.12); border-color: rgba(255,107,107,.25); }
button.danger:hover{ background: rgba(255,107,107,.18); }

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  font-size: 12px;
  color: var(--muted);
  white-space:nowrap;
}
.pill.ok{ border-color: rgba(56,217,169,.35); color: rgba(56,217,169,.95); background: rgba(56,217,169,.08); }
.pill.warn{ border-color: rgba(255,212,59,.35); color: rgba(255,212,59,.95); background: rgba(255,212,59,.08); }
.pill.bad{ border-color: rgba(255,107,107,.35); color: rgba(255,107,107,.95); background: rgba(255,107,107,.08); }

.callout{
  border:1px solid var(--border);
  background: rgba(255,255,255,.05);
  border-radius: var(--radius2);
  padding: 12px 12px;
}
.callout.ok{ border-color: rgba(56,217,169,.35); background: rgba(56,217,169,.06); }
.callout.warn{ border-color: rgba(255,212,59,.35); background: rgba(255,212,59,.06); }
.callout.bad{ border-color: rgba(255,107,107,.35); background: rgba(255,107,107,.06); }

.hr{ height:1px; background: var(--border); margin: 14px 0; }

.muted{ color: var(--muted); }
.small{ font-size:12px; }
.mono{ font-family: var(--mono); }

table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(0,0,0,.20);
}
th, td{
  padding:10px 10px;
  border-bottom:1px solid rgba(255,255,255,.08);
  font-size:13px;
}
th{ text-align:left; color: rgba(234,240,255,.82); background: rgba(255,255,255,.04); font-weight:800; }
tr:last-child td{ border-bottom:none; }

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.nav button{
  padding:10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
}
.nav button.active{
  border-color: rgba(109,40,217,.35);
  background: rgba(109,40,217,.14);
}

.kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
@media (max-width: 860px){
  .kpis{ grid-template-columns:1fr; }
}
.kpi{
  border:1px solid var(--border);
  border-radius: 16px;
  background: rgba(0,0,0,.18);
  padding: 12px 12px;
}
.kpi .label{ color: var(--muted); font-size:12px; }
.kpi .value{ font-weight:900; font-size:18px; margin-top:6px; }
.kpi .sub{ color: var(--muted); font-size:12px; margin-top:4px; }
