/* Ryan — User Administration styling.
   Plain CSS (no framework) matching the app's navy / pink palette. */

:root {
  --navy: #141C3A;
  --navy-soft: #1E2A52;
  --pink: #FF4D88;
  --orange: #F97316;
  --mist: #F4F6FB;
  --line: #E2E8F0;
  --ink: #1E293B;
  --muted: #64748B;
  --ok: #16A34A;
  --danger: #DC2626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--mist);
  color: var(--ink);
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }

/* ── Layout ─────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: 260px;
  flex: 0 0 260px;
  background: var(--navy);
  color: #CBD5E1;
  display: flex;
  flex-direction: column;
  border-right: 3px solid var(--pink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand img { height: 40px; background: #fff; border-radius: 8px; padding: 3px; }
.brand strong { display: block; color: #fff; font-size: 15px; }
.brand span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }

.sidebar nav { flex: 1; padding: 12px 10px; overflow-y: auto; }

.nav-label {
  margin: 14px 8px 6px;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #64748B;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  font-weight: 600;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-link.active { background: var(--navy-soft); color: #fff; box-shadow: inset 3px 0 0 var(--pink); }
.nav-link em { margin-left: auto; font-style: normal; font-size: 10px; color: var(--pink); text-transform: uppercase; }
.nav-empty { margin: 4px 10px; font-size: 12px; color: #64748B; }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-quote { background: var(--orange); }
.dot-staff { background: #7FD6F0; }

.sidebar-foot {
  padding: 14px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.who strong { display: block; color: #fff; }
.who span { display: block; font-size: 11px; color: #94A3B8; word-break: break-all; }
.who .badge { display: inline-block; margin-top: 5px; }

.content { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar h1 { margin: 0; font-size: 19px; font-weight: 800; }

.panel-wrap { padding: 24px; max-width: 1100px; width: 100%; }

/* ── Panels & tables ────────────────────────────────────── */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
  overflow: hidden;
}
.panel.pad { padding: 20px; }
.panel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.panel-head h2 { margin: 0; font-size: 15px; font-weight: 800; }

.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.table th {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  background: #F8FAFC;
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #FBFDFF; }
.table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--pink); }

.right { text-align: right; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.strong { font-weight: 700; }
.muted { color: var(--muted); }
.inline { display: inline; }

/* ── Forms ──────────────────────────────────────────────── */
.form { padding-bottom: 18px; }
.form.narrow { max-width: 520px; }
.field { padding: 12px 18px 0; display: flex; flex-direction: column; gap: 5px; max-width: 560px; }
.field label, .check span { font-weight: 600; }
.field small { color: var(--muted); }

input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 77, 136, .15);
}

.check { display: flex; align-items: center; gap: 9px; padding: 12px 18px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--pink); }

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 18px 0;
  border-top: 1px solid var(--line);
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(.97); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-block { width: 100%; margin-top: 16px; text-align: center; }
.btn-primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(148, 163, 184, .5); color: inherit; }
.sidebar .btn-ghost { color: #CBD5E1; }
.sidebar .btn-ghost:hover { background: rgba(255, 255, 255, .1); }

/* ── Badges & alerts ────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-super { background: rgba(255, 77, 136, .15); color: #BE185D; }
.badge-ok { background: rgba(22, 163, 74, .13); color: var(--ok); }
.badge-off { background: rgba(100, 116, 139, .15); color: var(--muted); }
.badge-muted { background: #F1F5F9; color: var(--muted); }

.alert {
  padding: 11px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-weight: 600;
  border: 1px solid transparent;
}
.alert-error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.alert-success { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.alert-info { background: #EFF6FF; color: #1E40AF; border-color: #BFDBFE; }

/* ── Login ──────────────────────────────────────────────── */
.standalone {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(800px 420px at 110% -10%, rgba(255, 77, 136, .18), transparent 55%),
    radial-gradient(820px 380px at -8% -4%, rgba(76, 87, 202, .14), transparent 52%),
    var(--mist);
}
.login-card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .12);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.login-logo { height: 56px; width: auto; align-self: center; margin-bottom: 8px; }
.login-card h1 { margin: 0; font-size: 21px; font-weight: 900; text-align: center; }
.login-card > p.muted { text-align: center; margin: 0 0 12px; }
.login-card label { font-weight: 600; margin-top: 10px; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 820px) {
  .layout { flex-direction: column; }
  .sidebar { width: 100%; flex: none; border-right: 0; border-bottom: 3px solid var(--pink); }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 6px; }
  .nav-label { width: 100%; margin: 8px; }
  .panel-wrap { padding: 16px; }
}
