/*
 * GENERATED FILE — do not edit by hand.
 * Source: packages/ui/src/styles/{tokens.css,examples.css}
 * Regenerate with: pnpm --filter @meetpoint/ui sync:examples
 */

/*
 * MeetPoint design tokens — the single source of truth for the brand.
 *
 * Every app (dashboard, website, examples) consumes these variables, so a
 * palette change here restyles all three. Naming follows the shadcn/ui
 * convention so the components in this package work unmodified.
 *
 * Palette: light surfaces, neutral greys with a faint green cast, and one
 * brand color — green — for primary actions and accents.
 *
 * The examples site can't run a build step, so `pnpm --filter @meetpoint/ui
 * sync:examples` copies this file (plus examples.css) into
 * apps/examples/shared/theme.css. Re-run it after editing.
 */
:root {
  --radius: 0.625rem;

  /* Surfaces */
  --background: oklch(0.982 0.004 145);
  --foreground: oklch(0.24 0.02 155);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.24 0.02 155);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.24 0.02 155);

  /* Brand green */
  --primary: oklch(0.55 0.13 155);
  --primary-foreground: oklch(0.99 0.005 145);

  /* Neutrals */
  --secondary: oklch(0.958 0.008 150);
  --secondary-foreground: oklch(0.32 0.02 155);
  --muted: oklch(0.958 0.008 150);
  --muted-foreground: oklch(0.51 0.015 155);
  --accent: oklch(0.94 0.028 152);
  --accent-foreground: oklch(0.34 0.06 155);

  --destructive: oklch(0.577 0.245 27.3);
  --destructive-foreground: oklch(0.99 0.005 145);

  --border: oklch(0.912 0.01 150);
  --input: oklch(0.912 0.01 150);
  --ring: oklch(0.55 0.13 155);

  /* Code panels stay dark for contrast against the light UI */
  --code-bg: oklch(0.26 0.015 155);
  --code-fg: oklch(0.93 0.01 150);
  --code-accent: oklch(0.82 0.14 155);

  --font-sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/*
 * Shared styles for the zero-build examples site (apps/examples).
 *
 * The demos are single HTML files deployed straight to S3, so they can't
 * import this package through a bundler. Instead, `pnpm --filter
 * @meetpoint/ui sync:examples` concatenates tokens.css + this file into
 * apps/examples/shared/theme.css, which every demo links with a plain
 * <link> tag. Edit here, then re-run the sync.
 *
 * It covers the pieces every demo repeats: base typography, the lobby
 * overlay + card, form fields, buttons and the connection status line.
 * Demo-specific layout stays inline in each demo.
 */

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
}

code, .mono { font-family: var(--font-mono); }
code {
  color: var(--accent-foreground);
  background: var(--accent);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 0.92em;
}

a { color: var(--primary); }

/* ── Lobby overlay + card ─────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: var(--background);
}
.card {
  width: min(90vw, 440px);
  padding: 32px 28px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px oklch(0.24 0.02 155 / 0.08);
  text-align: center;
}
.card h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -0.3px; color: var(--foreground); }
.card .sub { color: var(--muted-foreground); font-size: 13px; margin-bottom: 22px; line-height: 1.55; }
.card .sub b { color: var(--foreground); }

/* ── Form fields ──────────────────────────────────────────────────────── */
label {
  display: block; text-align: left;
  font-size: 11px; font-weight: 600; color: var(--muted-foreground);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin: 14px 0 6px 2px;
}
input[type='text'], input:not([type]) {
  width: 100%; padding: 11px 14px;
  font-size: 16px; font-family: inherit;
  color: var(--foreground); background: var(--card);
  border: 1px solid var(--input); border-radius: var(--radius);
  outline: none;
}
input:focus-visible {
  border-color: var(--ring);
  box-shadow: 0 0 0 3px oklch(0.55 0.13 155 / 0.18);
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
button { font-family: inherit; cursor: pointer; border: none; }
.primary {
  width: 100%; margin-top: 20px; padding: 13px;
  font-size: 15px; font-weight: 600; letter-spacing: 0.3px;
  color: var(--primary-foreground); background: var(--primary);
  border-radius: var(--radius);
  transition: transform 0.08s, filter 0.15s;
}
.primary:hover { filter: brightness(1.08); }
.primary:active { transform: translateY(1px); }
.primary:disabled { opacity: 0.5; cursor: default; }

/* ── Connection status line + spinner ─────────────────────────────────── */
.status { margin-top: 16px; font-size: 12.5px; color: var(--primary); min-height: 18px; }
.status.err { color: var(--destructive); }
.spin {
  display: inline-block; width: 12px; height: 12px;
  margin-right: 6px; vertical-align: -1px;
  border: 2px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── In-app header (chat, editor, whiteboard…) ────────────────────────── */
.app-header {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px;
  background: var(--card); border-bottom: 1px solid var(--border);
}
.app-header .title { font-size: 14px; font-weight: 700; }
.app-header .room { margin-left: auto; font-size: 11px; color: var(--muted-foreground); letter-spacing: 1px; font-family: var(--font-mono); }
.presence-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--muted-foreground); flex: 0 0 auto;
}
.presence-dot.on { background: var(--primary); box-shadow: 0 0 0 3px oklch(0.55 0.13 155 / 0.2); }
