/* ===== Moja Tabuľa – spoločný vzhľad ===== */
:root {
    --bg: #f4f5f7;
    --panel: #ffffff;
    --border: #e3e5e9;
    --text: #1f2937;
    --muted: #6b7280;
    --accent: #4f46e5;
    --accent-soft: #eef2ff;
    --danger: #dc2626;
    --sticky: #fde047;
    --shadow: 0 4px 18px rgba(15, 23, 42, .08);
    --radius: 12px;
    --topbar-h: 56px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
}

button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--muted); font-size: 13px; }

/* ---------- horná lišta ---------- */
.topbar {
    position: fixed; inset: 0 0 auto 0;
    height: var(--topbar-h);
    display: flex; align-items: center; gap: 12px;
    padding: 0 16px;
    background: var(--panel);
    border-bottom: 1px solid var(--border);
    z-index: 20;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent); white-space: nowrap; text-decoration: none; }
.topbar-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.topbar-actions form { margin: 0; }

.btn {
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid var(--border); background: var(--panel);
    border-radius: 8px; padding: 7px 12px; cursor: pointer; white-space: nowrap;
    text-decoration: none; line-height: 1.2;
}
.btn:hover { background: #f9fafb; border-color: #cfd3da; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: #4338ca; border-color: #4338ca; }
.btn.small { padding: 4px 9px; }

/* ---------- toast ---------- */
.toast {
    position: fixed; top: calc(var(--topbar-h) + 14px); left: 50%; transform: translateX(-50%);
    background: #111827; color: #fff; padding: 9px 16px; border-radius: 10px;
    box-shadow: var(--shadow); z-index: 50; font-size: 13px;
}

/* ---------- prihlásenie ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding: 16px; }
.login-card {
    width: min(360px, 100%); background: var(--panel); border: 1px solid var(--border);
    border-radius: 16px; box-shadow: var(--shadow); padding: 28px; display: grid; gap: 10px;
}
.login-card h1 { margin: 0 0 8px; font-size: 22px; }
.login-card input { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.login-card .btn { justify-content: center; padding: 10px; }
.login-card .error { color: var(--danger); margin: 0; font-size: 13px; }
