/*
  Admin back-office (R13). Custom admin in plain Rails + Tailwind — NO Avo
  (explicit client decision). This file holds only the small set of structural
  hooks the back-office shell needs (fixed sidebar, scroll area, sidebar active
  state). Everything visual is Tailwind utilities in the views — zero inline CSS.
  Brand: gold accents on a clean neutral chrome (NOT the public premium navbar).
*/
:root {
  --admin-sidebar-w: 248px;
  --admin-gold: #C4A559;
  --admin-gold-soft: #F7EDCC;
  --admin-ink: #1A1A18;
}

/* Shell ------------------------------------------------------------------ */
.admin-shell {
  min-height: 100vh;
  background: #F6F5F1;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--admin-sidebar-w);
  background: var(--admin-ink);
  display: flex;
  flex-direction: column;
}

.admin-main {
  margin-left: var(--admin-sidebar-w);
  min-height: 100vh;
}

/* Mobile: the fixed 248px sidebar otherwise squeezes the content to ~150px and
   clips it. Stack the sidebar as a full-width block at the top and give the
   content the full width below it. */
@media (max-width: 900px) {
  .admin-sidebar {
    position: static;
    width: 100%;
    height: auto;
  }
  /* Keep the nav compact on mobile: links flow in a horizontal wrap row. */
  .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; flex: 0 0 auto; }
  .admin-nav-link { white-space: nowrap; }
  .admin-main { margin-left: 0; }
}

/* Sidebar nav links ------------------------------------------------------ */
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.admin-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.admin-nav-link.is-active {
  background: linear-gradient(135deg, rgba(196, 165, 89, 0.22), rgba(196, 165, 89, 0.10));
  color: #F3E4BC;
  box-shadow: inset 2px 0 0 var(--admin-gold);
}
.admin-nav-link .admin-nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.admin-nav-section {
  padding: 14px 14px 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.32);
}

/* Metric cards ----------------------------------------------------------- */
.admin-stat-accent {
  background: linear-gradient(135deg, var(--admin-gold-soft), #ffffff);
}
