/* ═══════════════════════════════════════════════════════════════
   CARBOTURA ADMIN SHELL — Shared topbar stylesheet
   /admin/admin-shell.css
   Loaded by every /admin/ page. Defines .admin-topbar and all
   shared topbar sub-components. Page-specific styles stay inline.
   ═══════════════════════════════════════════════════════════════ */

/* ── Topbar container ────────────────────────────────────────── */
.admin-topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h, 56px);
  background: #0a0f1e;
  border-bottom: 2px solid var(--emerald, #0c6e3d);
  display: flex; align-items: center;
  padding: 0 28px;
  gap: 12px;
  z-index: 300;
  box-sizing: border-box;
}

/* Glass variant — access / me / webinars and lighter sub-pages */
.admin-topbar--glass {
  height: 52px;
  background: rgba(10,12,16,.93);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border, #1e293b);
}

/* ── Wordmark link ───────────────────────────────────────────── */
.admin-wordmark {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: #fff; flex-shrink: 0;
}

/* ── Section separator + label ───────────────────────────────── */
.admin-sep {
  width: 1px; height: 20px;
  background: var(--border, #1e293b);
  flex-shrink: 0;
}

.admin-section {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted, #cbd5e1); white-space: nowrap;
}

/* ── Right cluster ───────────────────────────────────────────── */
.admin-right {
  display: flex; align-items: center; gap: 10px;
  margin-left: auto;
}

/* Role badge */
.admin-role {
  font-size: 10px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted, #cbd5e1);
  padding: 3px 8px;
  border: 1px solid var(--border, #1e293b);
  border-radius: 4px;
}

/* Back links / ghost buttons */
.admin-back {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .65rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted, #cbd5e1); text-decoration: none;
  padding: 5px 10px;
  border: 1px solid var(--border, #1e293b);
  border-radius: 4px;
  background: none; cursor: pointer;
  display: inline-block;
  transition: color .15s, border-color .15s;
  line-height: 1;
}
.admin-back:hover { color: #fff; border-color: rgba(255,255,255,.2); }

/* Danger variant — logout */
.admin-back--danger { color: #f87171 !important; }
.admin-back--danger:hover { border-color: rgba(248,113,113,.4); }

/* Primary variant — action buttons */
.admin-back--primary {
  background: var(--emerald, #0c6e3d);
  border-color: var(--emerald, #0c6e3d);
  color: #fff !important;
}
.admin-back--primary:hover {
  background: var(--emerald-mid, #158a4e);
  border-color: var(--emerald-mid, #158a4e);
}

/* ── Stacked logo group (shared with main site .topbar-wg) ───── */
.topbar-wg   { display: flex; flex-direction: column; gap: 3px; }
.topbar-name {
  font-family: var(--font-display, 'Audiowide', sans-serif);
  font-size: 1rem; font-weight: 400; color: #fff;
  letter-spacing: .04em; white-space: nowrap; line-height: 1;
}
.topbar-tagline {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: .5rem; font-weight: 500; letter-spacing: 0;
  text-transform: uppercase; color: rgba(255,255,255,.45);
  line-height: 1; text-align: justify; text-align-last: justify;
  width: 100%;
}
