/* ============================================================
   FPSF Admin Dashboard — minimal design system
   Same brand tokens as members-portal/frontend's portal.css, but only
   the subset this app actually uses — deliberately not a copy of the
   whole member-facing design system, since this is a genuinely separate
   app (own origin, own deploy), not a page bundled into that frontend.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue: #0B1F33;
  --teal: #1FA3A3;
  --teal-light: #E8F6F6;

  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-900: #212529;
  --red: #C0392B;
  --red-light: #FDECEA;

  --radius: 8px;
  --radius-sm: 5px;
  --radius-lg: 12px;
  --font-sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  background: var(--gray-50);
}

/* ─── Auth wall ──────────────────────────────────────────── */

.auth-wall {
  position: fixed;
  inset: 0;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.auth-wall-content {
  background: var(--blue);
  width: 100%;
  max-width: 340px;
  padding: 48px 40px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 1px 3px rgba(0,0,0,0.05);
  border: 0.25px solid var(--teal);
  text-align: center;
}

.auth-wall-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 32px;
}

.auth-wall-content h1 {
  font-size: 28px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

.auth-wall-content p {
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  font-size: 15px;
}

.auth-wall-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.auth-wall-back { color: rgba(255,255,255,0.45); font-size: 13px; text-decoration: none; }
.auth-wall-back:hover { color: rgba(255,255,255,0.7); }

/* ─── Shell / nav ────────────────────────────────────────── */

.admin-header {
  background: var(--blue);
  color: var(--white);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.admin-header-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
}

.admin-nav { display: flex; gap: 4px; flex: 1; }

.admin-nav a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}

.admin-nav a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
.admin-nav a.active { background: rgba(31,163,163,0.2); color: var(--white); }

.admin-content {
  padding: 32px;
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.admin-content h1 { font-size: 20px; font-weight: 500; color: var(--blue); margin-bottom: 6px; }
.admin-content > p.admin-sub { font-size: 13px; color: var(--gray-600); margin-bottom: 20px; }

/* ─── Buttons ────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.btn-primary { background: var(--teal); color: var(--white); border-color: var(--teal); }
.btn-primary:hover { background: #1a9090; border-color: #1a9090; }
.btn-outline { background: transparent; color: var(--teal); border-color: var(--teal); }
.btn-outline:hover { background: var(--teal-light); }
.btn-sm { font-size: 12px; padding: 6px 12px; }
.btn:disabled { background: var(--gray-200); border-color: var(--gray-200); color: var(--gray-500); cursor: not-allowed; }

/* ─── Tables / notes ─────────────────────────────────────── */

.specs-empty-note { font-size: 0.88rem; color: var(--gray-500); padding: 24px 0; }

.admin-flags-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.85rem;
}

.admin-flags-table th, .admin-flags-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: top;
}

.admin-flags-table th {
  background: var(--gray-50);
  color: var(--gray-600);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-flags-table td.flag-path { font-family: 'IBM Plex Mono', monospace; color: var(--blue); white-space: nowrap; }
.admin-flags-table tr:last-child td { border-bottom: none; }

.admin-access-denied {
  background: var(--red-light);
  color: var(--red);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 0.88rem;
}
