/* Methodox Huddle's web pages. The surface, text and shape tokens follow DivookaFrontendComponents' tokens.css so the products look related; the honey accent is the desktop app's (src/Hivenet.Desktop/Theme.cs). */

:root {
  color-scheme: light;
  --font-sans: "Geist Variable", "Geist", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono Variable", "Geist Mono", ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --bg-app: #f6f4ef;
  --bg-panel: #ffffff;
  --bg-panel-2: #f1eee6;
  --bg-hover: rgba(40, 30, 0, 0.05);
  --bg-field: #faf8f3;
  --bg-scrim: rgba(20, 16, 8, 0.4);
  --line: #e4dfd3;
  --line-strong: #d2cbbb;
  --text-1: #1f1b14;
  --text-2: #4d4637;
  --text-3: #7a7264;
  --honey-light: #ffc940;
  --honey: #f29d0a;
  --honey-deep: #d38800;
  --honey-soft: #fff4d6;
  --honey-ink: #2b1e00;
  --accent: #2563eb;
  --accent-ring: rgba(37, 99, 235, 0.45);
  --ok: #2da44e;
  --relay: #e3a008;
  --err: #d1242f;
  --err-soft: rgba(209, 36, 47, 0.09);
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 16px;
  --shadow-card: 0 1px 2px rgba(40, 30, 0, 0.05), 0 8px 24px -14px rgba(40, 30, 0, 0.22);
  --shadow-pop: 0 18px 50px -14px rgba(40, 30, 0, 0.35), 0 4px 12px rgba(40, 30, 0, 0.1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-app: #17150f;
    --bg-panel: #221f17;
    --bg-panel-2: #2b271d;
    --bg-hover: rgba(255, 240, 200, 0.06);
    --bg-field: #1c1a13;
    --bg-scrim: rgba(5, 4, 2, 0.65);
    --line: #383225;
    --line-strong: #4b4434;
    --text-1: #f2eee4;
    --text-2: #cfc7b5;
    --text-3: #a89f8d;
    --honey-soft: #3a3120;
    --err-soft: rgba(255, 80, 80, 0.12);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 15px/1.5 var(--font-sans); background: var(--bg-app); color: var(--text-1); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent-ring); outline-offset: 2px; }
.muted { color: var(--text-3); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-size: 0.92em; }
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); background: var(--bg-panel); color: var(--text-1);
  padding: 9px 16px; border-radius: var(--radius-m); cursor: pointer; text-decoration: none; font-weight: 550; white-space: nowrap;
}
.btn:hover { background: var(--bg-hover); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-honey { background: linear-gradient(180deg, var(--honey-light), var(--honey)); border-color: var(--honey-deep); color: var(--honey-ink); }
.btn-honey:hover { background: linear-gradient(180deg, #ffd25c, #f5a823); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--err); }
.btn-big { padding: 14px 28px; font-size: 17px; border-radius: 12px; }
.btn-small { padding: 4px 10px; font-size: 13px; border-radius: var(--radius-s); }

.field { display: grid; gap: 4px; }
.field > span { font-size: 13px; color: var(--text-2); font-weight: 550; }
input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="number"], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-m); background: var(--bg-field);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--honey-deep); box-shadow: 0 0 0 3px rgba(242, 157, 10, 0.2); }
.error { color: var(--err); background: var(--err-soft); border-radius: var(--radius-s); padding: 8px 10px; font-size: 14px; }

.card { background: var(--bg-panel); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-card); }

dialog { border: none; border-radius: var(--radius-l); padding: 0; background: var(--bg-panel); color: var(--text-1); box-shadow: var(--shadow-pop); width: min(440px, calc(100vw - 24px)); }
dialog::backdrop { background: var(--bg-scrim); }
dialog form { padding: 24px; display: grid; gap: 14px; }
dialog h2 { margin: 0; font-size: 20px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: #2b271d; color: #fff3d1; padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow-pop); z-index: 50; max-width: calc(100vw - 24px); }
.toast.bad { background: #7a1c22; color: #fff; }

.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: #9ca3af; flex: none; }
.dot.on { background: var(--ok); }
.chip svg { width: 14px; height: 14px; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: var(--bg-panel-2); border-radius: 999px; padding: 2px 10px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
button.chip { cursor: pointer; }
button.chip:hover { border-color: var(--honey-deep); background: var(--honey-soft); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; }
