/* Administrace LuMen — tmavá elegance, zlatý akcent (brand bible LuMen) */
:root {
  --bg: #0B0B0B;
  --panel: #141414;
  --panel-2: #1E1E1E;
  --line: #262626;
  --gold: #CCA95B;
  --gold-soft: rgba(204, 169, 91, .14);
  --gold-line: rgba(204, 169, 91, .35);
  --text: #E5E5E5;
  --muted: #8C8C8C;
  --dim: #B3B3B3;
  --good: #7FB685;
  --bad: #D9776B;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 400 15px/1.5 Inter, system-ui, sans-serif; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: -.01em; margin: 0; }

/* rozvržení */
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 24px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.brand { font-family: "Playfair Display", serif; font-size: 22px; color: var(--gold); padding: 0 10px 22px; border-bottom: 1px solid var(--gold-line); margin-bottom: 18px; }
.brand small { display: block; font: 500 11px/1.4 Inter, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.nav a, .nav span { display: block; padding: 9px 10px; border-radius: 8px; color: var(--dim); margin-bottom: 2px; }
.nav a:hover { background: var(--panel-2); text-decoration: none; color: var(--text); }
.nav a.on { background: var(--gold-soft); color: var(--gold); }
.nav span { color: #555; cursor: default; }
.nav span em { font-style: normal; font-size: 11px; margin-left: 6px; color: #444; }
.side form { margin-top: auto; }
.side button { background: none; border: 0; color: var(--muted); font: inherit; padding: 9px 10px; cursor: pointer; }
.side button:hover { color: var(--text); }

main { padding: 32px 40px 60px; max-width: 1320px; width: 100%; }
.eyebrow { font: 500 11px/1 Inter, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); opacity: .8; margin-bottom: 8px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.head h1 { font-size: 34px; line-height: 1.1; }
.head .meta { color: var(--muted); font-size: 13px; }

/* karty */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; margin-bottom: 28px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .label { color: var(--muted); font-size: 12px; }
.kpi .value { font: 600 28px/1.2 "Playfair Display", serif; margin: 6px 0 4px; }
.kpi .delta { font-size: 12px; color: var(--muted); }
.kpi .delta.good { color: var(--good); }
.kpi .delta.bad { color: var(--bad); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid .wide { grid-column: 1 / -1; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; min-width: 0; }
.panel h2 { font-size: 19px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: baseline; }
.panel h2 a, .panel h2 small { font: 400 13px Inter, sans-serif; color: var(--muted); }
.empty { color: var(--muted); font-size: 14px; padding: 6px 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 0 10px 8px 0; border-bottom: 1px solid var(--line); }
td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; white-space: nowrap; }
.sub { color: var(--muted); font-size: 12px; }
.trunc { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--panel-2); color: var(--dim); white-space: nowrap; }
.tag.gold { background: var(--gold-soft); color: var(--gold); }
.tag.good { background: rgba(127, 182, 133, .14); color: var(--good); }
.tag.bad { background: rgba(217, 119, 107, .14); color: var(--bad); }

.bars .row { display: grid; grid-template-columns: 1fr 40px; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.bars .bar { height: 6px; background: var(--panel-2); border-radius: 3px; margin-top: 5px; }
.bars .bar i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat .v { font: 600 22px "Playfair Display", serif; }
.stat .l { color: var(--muted); font-size: 12px; }

/* přihlášení */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login form { width: 100%; max-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 32px; }
.login h1 { font-size: 28px; color: var(--gold); margin-bottom: 4px; }
.login p { color: var(--muted); margin: 0 0 24px; font-size: 14px; }
.login label { display: block; font-size: 12px; color: var(--muted); margin: 14px 0 6px; }
.login input { width: 100%; padding: 11px 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; color: var(--text); font: inherit; }
.login input:focus { outline: none; border-color: var(--gold-line); }
.login button { width: 100%; margin-top: 22px; padding: 12px; background: var(--gold); color: #111; border: 0; border-radius: 8px; font: 600 15px Inter, sans-serif; cursor: pointer; }
.login .err { color: var(--bad); font-size: 13px; margin-top: 12px; }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px 16px; gap: 4px; }
  .brand { border: 0; margin: 0 12px 0 0; padding: 0; font-size: 18px; }
  .brand small { display: none; }
  .nav { display: flex; flex-wrap: wrap; }
  .nav span { display: none; }
  .side form { margin: 0 0 0 auto; }
  main { padding: 20px 16px 40px; }
  .grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .panel { overflow-x: auto; }
}
@media (prefers-reduced-motion: no-preference) {
  .panel, .kpi { animation: in .5s ease-out both; }
  @keyframes in { from { opacity: 0; transform: translateY(4px); } }
}
