@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap');

/* ============================================================
   LAYOUT — top nav shell matching Bear Valley Scheduling App
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--black);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ---- HEADER ---- */
#hdr {
  position: sticky; top: 0; z-index: 200;
  background: var(--red);
  padding: 10px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
  flex-shrink: 0;
}
#hdr .bolt       { font-size: 1.6rem; color: var(--yellow); }
#hdr .brand      { display: flex; flex-direction: column; }
#hdr .brand-name { font-size: .95rem; font-weight: 700; color: var(--yellow); letter-spacing: 1px; text-transform: uppercase; }
#hdr .brand-sub  { font-size: .68rem; color: rgba(255,255,255,.8); text-transform: uppercase; letter-spacing: 1px; }
#hdr .hdr-right  { margin-left: auto; display: flex; align-items: center; gap: 10px; }
#hdr .hdr-spinner        { display: none; }
#hdr .hdr-spinner.show   { display: inline-block; }

/* ---- TOP NAV TABS ---- */
#nav {
  background: var(--red);
  padding: 0 16px;
  display: flex; gap: 2px;
  border-top: 1px solid rgba(255,255,255,.15);
  position: sticky; top: 54px; z-index: 195;
  flex-shrink: 0;
}
.nav-tab {
  padding: 8px 18px;
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  color: rgba(255,255,255,.65);
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  border: 2px solid transparent; border-bottom: none;
  transition: all .15s; user-select: none;
  display: flex; align-items: center; gap: 6px;
}
.nav-tab:hover  { color: #fff; background: rgba(255,255,255,.12); }
.nav-tab.active { background: #fff; color: var(--red); }

.nav-tab-badge {
  background: var(--yellow); color: var(--black);
  font-size: .58rem; font-weight: 700;
  padding: 1px 5px; border-radius: 99px;
  line-height: 1.4;
}
.nav-tab-badge.urgent { background: var(--black); color: var(--yellow); }
.nav-tab-badge.phase2 { background: rgba(255,255,255,.25); color: #fff; font-size: .55rem; }
.nav-tab.active .nav-tab-badge        { background: var(--red); color: #fff; }
.nav-tab.active .nav-tab-badge.urgent { background: var(--black); color: var(--yellow); }
.nav-tab.active .nav-tab-badge.phase2 { background: #ddd; color: #666; }

/* ---- SUB-NAV PILLS ---- */
.sub-nav {
  padding: 7px 16px;
  background: #fff;
  border-bottom: 2px solid var(--border);
  display: flex; gap: 8px; flex-wrap: wrap;
  flex-shrink: 0;
}
.sub-pill {
  padding: 5px 14px; border-radius: 6px; cursor: pointer;
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  border: 2px solid var(--red); color: var(--red);
  transition: all .15s; user-select: none;
}
.sub-pill:hover  { background: rgba(204,0,0,.08); }
.sub-pill.active { background: var(--red); color: #fff; }
.sub-pill.phase2-pill {
  border-color: #bbb; color: #999;
  font-style: italic;
}
.sub-pill.phase2-pill:hover { border-color: #999; }

/* ---- CONTENT ---- */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
}

/* ---- TAB PANES ---- */
.tab-pane          { display: none; }
.tab-pane.active   { display: block; }

/* ---- SIDE PANEL (candidate detail) ---- */
.side-panel {
  background: #fff;
  width: 460px; max-width: 100%;
  height: 100vh;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0,0,0,.3);
  display: flex; flex-direction: column;
  margin-left: auto;
}
