/* =============================================================================
   shared-nav.css — Common top navigation bar for all four main pages:
   index.html (POS), kitchen.html (KDS), inventory.html (Inventory & Admin),
   timesheet.html (Timesheet)

   Provides: .top-bar layout shell, .top-bar__brand / __title / __actions,
             and the .nav-tabs pill component.

   Individual page stylesheets may override .top-bar as needed (e.g. POS
   overrides position to fixed; KDS / Inventory / Timesheet use sticky).
   ============================================================================= */

/* ── Top bar layout shell ── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.6rem 1.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  min-width: 0;
}

.top-bar__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.top-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* ── Primary navigation pill tabs ── */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  border: 1px solid var(--border);
  /* Hidden until _renderNavForRole() resolves role and calls navEl.style.opacity="1" */
  opacity: 0;
  transition: opacity 0.15s;
}

.nav-tabs__tab {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}

.nav-tabs__tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.nav-tabs__tab--active {
  color: #fff;
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.12);
  cursor: default;
}
