/* ============================================================ */
/* Global Navigation Bar                                        */
/* ============================================================ */

/*
 * position:fixed removes the nav from the normal flow so it doesn't
 * add 56 px to the page height and cause an extra scroll on every page.
 * body { padding-top } below compensates so content isn't hidden behind it.
 */
#nav-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: var(--surface, #161b22);
  border-bottom: 1px solid var(--border, #30363d);
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
}

/* Push all page content below the fixed nav */
body {
  padding-top: 56px;
}

/* Dashboard's .app used min-height:100vh which overflows once padding is added */
.app {
  min-height: calc(100vh - 56px);
}

/* ------------------------------------------------------------------ */
/* Brand                                                               */
/* ------------------------------------------------------------------ */

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--text, #c9d1d9);
  text-decoration: none;
  white-space: nowrap;
}

.nav-brand svg {
  color: var(--accent, #58a6ff);
  flex-shrink: 0;
}

.nav-logo {
  height: 24px;
  width: auto;
  flex-shrink: 0;
}

.nav-brand-divider {
  color: var(--border, #30363d);
  font-weight: 300;
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.nav-brand-dash {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.5;
  vertical-align: middle;
}

/* ------------------------------------------------------------------ */
/* Right-side user area                                                */
/* ------------------------------------------------------------------ */

.nav-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted, #8b949e);
  font-size: 13px;
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent, #58a6ff);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.nav-signout {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border, #30363d);
  background: transparent;
  color: var(--text-muted, #8b949e);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.nav-signout:hover {
  background: var(--surface2, #1c2128);
  border-color: #6e7681;
  color: var(--text, #c9d1d9);
}

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */

#nav-footer {
  background: var(--surface, #161b22);
  border-top: 1px solid var(--border, #30363d);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--text-muted, #8b949e);
  font-size: 12px;
  margin-top: auto;
}

#nav-footer svg {
  color: var(--accent, #58a6ff);
  flex-shrink: 0;
}

.nav-footer-sep {
  opacity: 0.35;
  margin: 0 4px;
}
