/* 23 Studios - base styles.
   All brand choices live in the tokens below: swapping in the final logo
   colours and fonts means editing this block, not hunting through rules. */
:root {
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --brand: #0b3558;          /* headings, logo text */
  --accent: #006bff;         /* primary buttons, active nav, links */
  --accent-soft: #e8f1ff;

  --bg: #fafafa;             /* page background behind content */
  --surface: #ffffff;        /* sidebar, cards, header */
  --border: #e5e7eb;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --danger: #c62828;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-pill: 999px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.06);
  --sidebar-width: 256px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { color: var(--brand); margin: 0; }

/* ---------- app shell ---------- */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-width);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--brand);
  padding: 0 8px 24px;
}
.logo-mark {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid var(--brand);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
}

.btn-create {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px 16px; margin-bottom: 24px;
  border: 1px solid var(--text); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600;
  cursor: pointer;
}
.btn-create:hover { background: var(--bg); }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 600;
}
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item:hover { background: var(--bg); }
.nav-item.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--accent);
}
.nav-item.disabled { color: var(--text-muted); pointer-events: none; }
.nav-item .soon {
  margin-left: auto; font-size: 11px; font-weight: 600;
  color: var(--text-muted); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 0 8px;
}
.sidebar-bottom { margin-top: auto; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 16px 40px;
  background: var(--surface);
}
.avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-weight: 700; text-transform: uppercase;
}
.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 8px 40px 24px;
}
.page-head h1 { font-size: 22px; }
.page-head .hint { color: var(--text-muted); margin: 4px 0 0; }
.content { padding: 32px 40px; max-width: 1200px; width: 100%; }

/* ---------- building blocks ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--brand); }
.stat-label { color: var(--text-muted); font-weight: 500; }
.empty-state { text-align: center; color: var(--text-muted); padding: 48px 24px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { filter: brightness(0.95); }

/* ---------- auth pages (login, signup, password reset) ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .logo { justify-content: center; padding-bottom: 16px; }
.auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 8px; }
.auth-card > .card > p { color: var(--text-muted); text-align: center; }
.auth-card form p { display: flex; flex-direction: column; gap: 6px; margin: 0 0 16px; }
.auth-card label { font-weight: 600; }
input[type="email"], input[type="password"], input[type="text"], textarea, select {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font: inherit; background: var(--surface);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.auth-card form p:has(input[type="checkbox"]) { flex-direction: row; align-items: center; }
.auth-card button, .auth-card form a[href] + button {
  width: 100%; padding: 12px; border-radius: var(--radius-pill);
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer; margin-top: 8px;
}
.auth-card .errorlist { color: var(--danger); padding-left: 18px; margin: 0 0 8px; }
.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li { background: var(--accent-soft); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 8px; }

/* ---------- phone ---------- */
@media (max-width: 800px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; padding: 16px; }
  .nav { flex-direction: row; overflow-x: auto; }
  .nav-item .soon, .btn-create, .sidebar-bottom { display: none; }
  .topbar, .page-head, .content { padding-left: 16px; padding-right: 16px; }
}

/* allauth's password rules list - keep it quiet */
.auth-card form span ul { color: var(--text-muted); font-size: 12px; margin: 4px 0 0; padding-left: 18px; }
