:root {
  --bg: #0f172a; --card: #111827; --muted: #94a3b8; --txt: #e5e7eb;
  --accent: #22c55e; --accent-2: #10b981; --danger: #ef4444; --shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Base */
* { box-sizing: border-box; }
html, body {
  height: 100%; margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1000px 800px at 80% -10%, rgba(34,197,94,.15), transparent 60%),
    radial-gradient(800px 600px at -10% 110%, rgba(16,185,129,.12), transparent 60%),
    var(--bg);
  color: var(--txt);
}
.container { display: grid; place-items: center; min-height: 100%; padding: 2rem; }
.card {
  width: 100%; max-width: 460px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 20px; box-shadow: var(--shadow); padding: 28px;
  backdrop-filter: blur(8px);
}
h1 { margin: 0 0 8px; font-size: 1.6rem; letter-spacing: 0.2px; }
.subtitle { margin: 0 0 20px; color: var(--muted); font-size: .95rem; }
.form-row { margin-bottom: 14px; }
label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255,255,255,.08); background: rgba(17,24,39,.7);
  color: var(--txt); outline: none;
}
input:focus { border-color: rgba(34,197,94,.6); box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.actions { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
button {
  appearance: none; border: none; padding: 12px 16px; border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: white; font-weight: 600; cursor: pointer;
  transition: transform .06s ease, box-shadow .2s ease;
  box-shadow: 0 8px 18px rgba(16,185,129,.25);
}
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.msg { padding: 10px 12px; border-radius: 10px; margin-bottom: 12px; font-size: .92rem; }
.msg.err { background: rgba(239,68,68,.14); border: 1px solid rgba(239,68,68,.35); color: #fecaca; }
.msg.ok  { background: rgba(34,197,94,.14); border: 1px solid rgba(34,197,94,.35); color: #bbf7d0; }
.footer { margin-top: 14px; font-size: .9rem; color: var(--muted); text-align: center; }

/* --- Projekty: layout --- */
.card--wide        { max-width: 2048px; width: 100%; }
.card--projects h1 { margin-bottom: 4px; }
.card--projects .subtitle { margin-bottom: 8px; }
.card--projects .actions  { margin-top: 6px; margin-bottom: 6px; }

.table-wrap { overflow-x: hidden; max-width: 100%; }

/* Tabulka – JEDNA finální definice (žádné konflikty) */
.table-fixed {
  table-layout: fixed; width: 100%;
  border-collapse: collapse; border-spacing: 0;
}
.table-fixed th, .table-fixed td {
  padding: 10px 12px; vertical-align: middle;
  text-align: left;
}

/* Utility */
.nowrap   { white-space: nowrap; }
.ellipsis { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mono     { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.num      { text-align: right; }

/* Popis – dvouřádkový clamp */
.clamp-2 {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Šířky sloupců – uprav podle potřeby */
.col-id      { width: 20px; }   /* 30px je hrana → 48px je čitelnější */
.col-name    { width: 10%; }
.col-alias   { width: 16%; }
.col-popis   { width: 28%; }
.col-storage { width: 18%; }
.col-count   { width: 48px; }
.col-last    { width: 140px; }
.col-state   { width: 90px; }
.col-actions { width: 120px; }

/* --- Pages, kde chci obsah nahoře (Projects, atd.) --- */
.container--top {
  /* přepíše place-items:center z .container */
  align-items: start;
  justify-items: center;
  /* trochu menší horní mezera */
  padding-top: 16px;
}
