/* =============================================================
   Shared mobile nav for admin pages (drawer + hamburger).
   Loaded by index.html, users.html, llm.html, pricing.html,
   credits.html, infra.html, pipeline_3d.html.
   The JS file (admin_mobile_nav.js) injects the burger inside
   whichever <nav> the host page uses (topnav | nav) and the
   drawer at the end of <body>.
   Tokens fall back to either naming convention used on these
   pages so the same stylesheet works without renaming colors.
   ============================================================= */

.admb-burger {
  display: none;
  background: none;
  border: 1px solid var(--border, var(--line, #ccc));
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary, var(--tx-2, #666));
  font-size: 18px;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-family: inherit;
  flex-shrink: 0;
}
.admb-burger:hover {
  background: var(--bg-hover, var(--bg-2, #eee));
  color: var(--accent, var(--tx-1, #111));
  border-color: var(--accent, var(--tx-1, #111));
}
@media (max-width: 900px) {
  .admb-burger { display: inline-flex; }
}

/* Drawer overlay + panel ─────────────────────────────────────── */
.admb-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1100;
  align-items: stretch;
}
.admb-drawer.open { display: flex; }

.admb-panel {
  background: var(--bg-secondary, var(--bg-1, #fff));
  width: 80%;
  max-width: 320px;
  height: 100%;
  padding: 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  animation: admb-slide-in 0.18s ease-out;
}
@keyframes admb-slide-in {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

.admb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 12px;
  border-bottom: 1px solid var(--border-light, var(--line-soft, #eee));
  margin-bottom: 12px;
}
.admb-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary, var(--tx-1, #111));
}
.admb-close {
  background: none;
  border: 1px solid var(--border, var(--line, #ccc));
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary, var(--tx-2, #666));
  font-size: 18px;
  font-family: inherit;
}
.admb-close:hover {
  background: var(--bg-hover, var(--bg-2, #eee));
  color: var(--accent, var(--tx-1, #111));
}

.admb-link {
  display: block;
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-primary, var(--tx-1, #111));
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}
.admb-link:hover {
  background: var(--bg-hover, var(--bg-2, #eee));
  color: var(--accent, var(--tx-1, #111));
}
.admb-link.active {
  background: var(--accent-light, var(--bg-2, #eef));
  color: var(--accent, var(--tx-1, #111));
}
