/* chat.timbosoft.hu – operátori felület alapstílus */

:root {
  --bg: #f3f5f7;
  --panel: #ffffff;
  --text: #1c2530;
  --muted: #5f6b78;
  --line: #e2e6ea;
  --accent: #1f6feb;
  --accent-hover: #195fcc;
  --accent-soft: #e8f0fe;
  --ok: #1a7f37;
  --err: #cf222e;
  --err-soft: #ffebe9;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1419;
    --panel: #171d24;
    --text: #e6edf3;
    --muted: #8b98a5;
    --line: #2a333d;
    --accent: #4c8dff;
    --accent-hover: #6aa1ff;
    --accent-soft: #1b2a40;
    --ok: #3fb950;
    --err: #f85149;
    --err-soft: #3a1d1d;
    --shadow: 0 1px 3px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- bejelentkezés ---------- */

.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 32px 28px 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

.brand-mark svg { width: 20px; height: 20px; }

.brand-name { font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand-sub { color: var(--muted); font-size: 13px; margin-top: -2px; }

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.input {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  transition: background .15s;
}

.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn-block { width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--bg); color: var(--text); }

.alert {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-err { background: var(--err-soft); color: var(--err); }

/* ---------- alkalmazás keret ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 10px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .brand { margin: 0; }

.who {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

.who strong { color: var(--text); font-weight: 600; }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.card h2 { font-size: 16px; margin: 0 0 4px; }
.card p.muted { color: var(--muted); margin: 0 0 12px; font-size: 14px; }

.checks { width: 100%; border-collapse: collapse; }
.checks td { padding: 8px 6px; border-top: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.checks td:first-child { width: 28px; font-weight: 700; }
.checks .ok { color: var(--ok); }
.checks .no { color: var(--err); }
.checks .d { color: var(--muted); word-break: break-word; }

@media (max-width: 520px) {
  .who .who-name { display: none; }
  .auth-card { padding: 24px 20px; }
}
