/* Wspólny system wizualny: panel, nakładka i strony serwera. */
@import url("https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500&display=swap");

:root {
  --bg: #09090a;
  --surface: #111113;
  --surface-2: #17171a;
  --surface-3: #1e1e22;
  --line: #222226;
  --line-strong: #2d2d32;
  --text: #ededef;
  --text-2: #a1a1a8;
  --text-3: #6b6b73;
  --signal: #53fc18;
  --signal-soft: rgba(83, 252, 24, .12);
  --danger: #ff5f57;
  --warn: #f5a524;
  --radius: 12px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--signal); color: #000; }

svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Znak marki */
.logo { width: 22px; height: 22px; border-radius: 6px; flex: none; display: block; }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 9px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
  font-weight: 500; font-size: 13px; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--surface-3); border-color: #3a3a40; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--text); color: #0a0a0b; border-color: var(--text); }
.btn.primary:hover { background: #fff; }

kbd, .cmd { font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2); }

/* Kropki statusu */
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); flex: none; }
.dot.ok { background: var(--signal); box-shadow: 0 0 0 3px rgba(83, 252, 24, .14); }
.dot.bad { background: var(--danger); box-shadow: 0 0 0 3px rgba(255, 95, 87, .14); }

/* Ziarno - subtelna faktura, żeby duże ciemne płaszczyzny nie wyglądały płasko */
.grain::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Słupki „gra” */
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 10px; }
.eq i { width: 2px; height: 6px; border-radius: 1px; background: var(--signal); animation: eq 1.05s ease-in-out infinite; }
.eq i:nth-child(2) { height: 10px; animation-delay: -.4s; }
.eq i:nth-child(3) { height: 4px; animation-delay: -.75s; }
.paused .eq i { animation-play-state: paused; opacity: .55; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 10px; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
