/* Shared top bar for all six Vision Eval Studio pages.
 *
 * Single source of truth, and it has to stay that way: this file previously lived
 * as six hand-copied blocks, which drifted into four different bars (three brand
 * colours, three active-link styles, and a compare page whose .brand/.spacer/
 * .signout had no rules at all).
 *
 * Both consumers read *this* file, so editing it changes every page:
 *   - the five admin pages inline it   (templates/layout.py reads it at import)
 *   - static/index.html links it      (<link href="/static/nav.css">)
 *
 * Layout is  brand | links … | spacer | sign out,  and that is the whole bar on
 * every page. Page-specific controls go in the page, not in here — Dataset Review
 * puts its dataset dropdown on its own stats row.
 */

.ves-nav {
  background: #1a1a2e;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  /* min-height, not height: the bar wraps rather than clipping links on a narrow
     window, and an unwrapped bar still matches the other pages exactly.
     36px, down from 52 (2026-09-10): every pixel of this bar comes out of the
     screenshot panes on Result Analysis, which is the page people stare at, and a
     tab strip has nothing to do with the extra 16. */
  min-height: 36px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.ves-nav .brand {
  font-weight: 700;
  font-size: 14px;
  color: #a78bfa;
  margin-right: 4px;
  white-space: nowrap;
}

.ves-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}

.ves-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.ves-nav a.active {
  color: #fff;
  background: #7c3aed;
}

.ves-nav .spacer {
  flex: 1;
}

/* Sign out is a button on the admin pages and a link on the review page, so both
   element types are styled. font-family:inherit stops <button> falling back to the
   UA font next to the <a> version. */
.ves-nav .signout {
  font-size: 12px;
  color: #94a3b8;
  background: transparent;
  border: 1px solid #475569;
  padding: 3px 10px;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
  line-height: normal;
}

.ves-nav .signout:hover {
  background: #334155;
  color: #fff;
}
