/* ============================================================
   SIDEBAR — navigation, brand, footer, on-call info
   ============================================================ */

.sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 13px;
  box-shadow: var(--glow);
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.2px;
}

.brand-sub {
  font-size: 10.5px;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Nav */
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-label {
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-family: 'JetBrains Mono', monospace;
  padding: 0 10px;
  margin-bottom: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s;
}

.nav-item svg {
  width: 15px;
  height: 15px;
  opacity: 0.85;
  flex-shrink: 0;
}

.nav-item:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--border);
  font-weight: 600;
}

/* Footer */
.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-soft);
}

.sidebar-footer .label {
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: 'JetBrains Mono', monospace;
}

.sidebar-footer .val {
  font-size: 12.5px;
  margin-top: 4px;
  color: var(--text-dim);
}

.oncall-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.oncall-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: var(--glow);
  flex-shrink: 0;
}

/* ============================================================
   TOPBAR — page header with clock and theme picker
   ============================================================ */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 10;
}

.crumb {
  font-size: 11px;
  color: var(--text-faint);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.page-title {
  font-size: 19px;
  font-weight: 700;
  margin-top: 2px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.clock {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-dim);
  text-align: right;
  line-height: 1.3;
}

.clock .tz {
  font-size: 9.5px;
  color: var(--text-faint);
  letter-spacing: 0.5px;
}

/* ============================================================
   THEME PICKER — button + dropdown menu
   ============================================================ */

.theme-picker {
  position: relative;
}

.theme-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.15s;
}

.theme-btn:hover {
  border-color: var(--accent);
}

.theme-btn .swatch-stack {
  display: flex;
}

.theme-btn .swatch-stack span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--bg-elevated);
  margin-left: -5px;
}

.theme-btn .swatch-stack span:first-child {
  margin-left: 0;
}

.theme-btn svg {
  width: 12px;
  height: 12px;
  opacity: 0.7;
  margin-left: 2px;
}

.theme-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 250px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  padding: 8px;
  display: none;
  z-index: 50;
}

.theme-menu.open {
  display: block;
}

.theme-menu-label {
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: 'JetBrains Mono', monospace;
  padding: 8px 10px 6px;
}

.theme-opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s;
}

.theme-opt:hover {
  background: var(--surface);
}

.theme-opt.active {
  background: var(--accent-soft);
  border-color: var(--border);
}

.theme-opt .opt-swatch {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  flex-shrink: 0;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--border-soft);
}

.theme-opt .opt-swatch i {
  flex: 1;
}

.theme-opt .opt-text {
  flex: 1;
}

.theme-opt .opt-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.theme-opt .opt-desc {
  font-size: 10.5px;
  color: var(--text-faint);
  margin-top: 1px;
}

.theme-opt .opt-check {
  width: 14px;
  height: 14px;
  color: var(--accent);
  opacity: 0;
}

.theme-opt.active .opt-check {
  opacity: 1;
}
