/* AthenaLab brand tokens — the single source of truth for Sales OS UI.
 * Values mirror the company DESIGN.md palette (teal brand). Every Sales OS
 * page imports this file; do not hardcode colours elsewhere. */

:root {
  /* Brand */
  --brand: #0f766e;        /* AthenaLab teal */
  --brand-hi: #0d9488;     /* hover / gradient top */
  --brand-soft: #e6f4f2;   /* tinted surfaces, chips */
  --ink-on-brand: #ffffff;

  /* Neutrals */
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --line: #e3e8ef;
  --text: #0f1f2a;
  --muted: #5b6b7b;

  /* Status */
  --good: #15803d;   --good-bg: #e8f7ee;
  --warn: #b45309;   --warn-bg: #fef3e2;
  --bad: #b91c1c;    --bad-bg: #fdecec;
  --info: #1d4ed8;   --info-bg: #e9effd;

  /* Shape & type */
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 31, 42, .06), 0 8px 24px rgba(15, 31, 42, .06);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
}

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

/* Brand wordmark: "Athena" + bold "Lab" next to the logo */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px; color: var(--text);
}
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.brand b { color: var(--brand); font-weight: 800; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font-weight: 700; font-size: 13.5px; cursor: pointer;
}
.btn:hover { border-color: var(--brand); }
.btn-primary {
  background: linear-gradient(180deg, var(--brand-hi), var(--brand));
  border-color: var(--brand); color: var(--ink-on-brand);
}
.btn-primary:hover { filter: brightness(1.05); text-decoration: none; }

/* Cards & surfaces */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px;
}

/* Status chips */
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase;
}
.chip-good { background: var(--good-bg); color: var(--good); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }
.chip-bad  { background: var(--bad-bg);  color: var(--bad); }
.chip-info { background: var(--info-bg); color: var(--info); }
.chip-brand{ background: var(--brand-soft); color: var(--brand); }

/* Tables */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line);
}
table.data th { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }

/* App shell */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 16px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar .brand { padding: 6px 8px 16px; }
.nav a {
  display: block; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 600; font-size: 14px;
}
.nav a:hover { background: var(--surface-2); text-decoration: none; }
.nav a.active { background: var(--brand-soft); color: var(--brand); }
.main { padding: 22px 26px; }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
h1.page { font-size: 22px; font-weight: 800; margin: 0; }

/* Responsive: collapse sidebar on tablet/mobile */
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
}
