/* ============================================================
   FPCS Top Nav Bar — Shared horizontal navigation
   Replaces the old 54px collapsed sidebar
   Injected by nav.js — styles only in this file
   ============================================================ */

.nav-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: #0b1120;
  border-bottom: 1px solid var(--border);
  z-index: 900;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 4px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 0 4px;
  margin-right: 8px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}
.nav-brand-icon { font-size: 20px; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  border-radius: 6px;
  transition: all 0.15s;
}
.nav-link:hover {
  color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}
.nav-link.active {
  color: var(--page-accent, var(--accent));
  background: rgba(56, 189, 248, 0.12);
}

.nav-icon { font-size: 16px; flex-shrink: 0; }
.nav-label { font-weight: 600; }

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-ep-meter {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  padding: 4px 10px;
  background: rgba(255,255,255,0.04);
  border-radius: 6px;
}
.nav-ep-bar {
  width: 48px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.nav-ep-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.nav-identity {
  font-size: 12px;
  color: var(--purple);
  font-weight: 600;
  padding: 4px 10px;
  background: rgba(167, 139, 250, 0.1);
  border-radius: 6px;
}

.nav-sep {
  width: 1px;
  height: 24px;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}

.nav-radio-indicator {
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 52px;
  left: 0;
  right: 0;
  background: #0b1120;
  border-bottom: 1px solid var(--border);
  padding: 8px;
  z-index: 899;
  flex-direction: column;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu .nav-link { padding: 12px 16px; font-size: 14px; }

@media (max-width: 768px) {
  .nav-topbar .nav-link { display: none; }
  .nav-topbar .nav-sep { display: none; }
  .nav-hamburger { display: block; }
}
