/* ── Sidebar shell ─────────────────────────────────────────────────── */
#sidebar-root { background: var(--fx-primary-main); z-index: 20; }

.side-nav {
  width: var(--fx-sidebar-w);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

/* Logo */
.side-nav-logo {
  height: 60px;
  background: var(--fx-primary-main);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
}
.side-nav-logo img { display: block; }

/* ── Nav items ─────────────────────────────────────────────────────── */
.side-nav-item {
  height: 60px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  color: rgba(255,255,255,.38);
  cursor: pointer;
  text-decoration: none;
  transition: background .12s, color .12s;
  position: relative;
  flex-shrink: 0;
}

/* Subtle left accent on active */
.side-nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  background: rgba(255,255,255,.75);
  border-radius: 0 2px 2px 0;
}

.side-nav-item img {
  opacity: 0.38;
  filter: brightness(0) invert(1);
  transition: opacity .12s;
}
.side-nav-item .nav-label {
  font: 400 10px/13px 'Open Sans';
  text-transform: none;
  letter-spacing: 0;
  transition: color .12s;
}

.side-nav-item:hover {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.72);
}
.side-nav-item:hover img { opacity: 0.72; }

.side-nav-item.active {
  color: white;
}
.side-nav-item.active img { opacity: 1; }

/* Home item — uses Fixenator avatar, slightly more prominent */
.side-nav-home { height: 60px; }
.side-nav-home .fxn-avatar {
  transition: box-shadow .2s;
}
.side-nav-home.active .fxn-avatar {
  box-shadow: 0 0 0 2px rgba(255,255,255,.25);
}
.side-nav-home:hover .fxn-avatar {
  box-shadow: 0 0 0 2px rgba(255,255,255,.15);
}

/* ── Spacer ─────────────────────────────────────────────────────────── */
.side-nav-spacer { flex: 1; min-height: 8px; }

/* ── Agent status strip ─────────────────────────────────────────── */
.side-nav-agent {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin: 0 10px 6px;
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(39,174,96,.08);
  border: 1px solid rgba(39,174,96,.15);
  flex-shrink: 0; overflow: hidden;
}
.side-nav-agent-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #27AE60; flex-shrink: 0;
  animation: cmdk-dot-pulse 2.2s ease-in-out infinite;
}
.side-nav-agent-mode {
  font: 600 9px/12px 'Open Sans';
  letter-spacing: 0.3px; text-transform: uppercase;
  color: rgba(39,174,96,.9);
  white-space: nowrap;
}

/* ── Ask Fixenator — primary AI CTA (visually distinct from nav items) */
.side-nav-ask {
  height: 64px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
  background: rgba(86,135,147,.18);
  border: none;
  border-top: 1px solid rgba(86,135,147,.28);
  border-bottom: 1px solid rgba(86,135,147,.28);
  cursor: pointer;
  transition: background .12s;
  flex-shrink: 0;
  position: relative;
}
.side-nav-ask::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #568793;
  border-radius: 0 2px 2px 0;
}
.side-nav-ask:hover { background: rgba(86,135,147,.28); }
.side-nav-ask .side-nav-ask-star {
  font-size: 20px;
  color: #87C4CE;
  animation: aiStarTwinkle 4s ease-in-out infinite;
}
.side-nav-ask .nav-label {
  font: 700 9px/12px 'Open Sans';
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #87C4CE;
}

/* ── ⌘K search ──────────────────────────────────────────────────── */
.side-nav-cmdk {
  height: 48px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  cursor: pointer;
  transition: background .12s;
  flex-shrink: 0;
  background: transparent;
  border: none;
  width: 100%;
}
.side-nav-cmdk:hover { background: rgba(255,255,255,.06); }
.side-nav-cmdk .icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 18px !important;
  text-transform: none !important; letter-spacing: 0 !important;
  color: rgba(255,255,255,.35);
  transition: color .12s;
}
.side-nav-cmdk:hover .icon { color: rgba(255,255,255,.6); }
.side-nav-cmdk .cmdk-label {
  font: 500 8px/11px 'Open Sans';
  letter-spacing: 0.3px;
  color: rgba(255,255,255,.3);
  transition: color .12s;
}
.side-nav-cmdk:hover .cmdk-label { color: rgba(255,255,255,.55); }

/* ── Help / bottom ───────────────────────────────────────────────── */
.side-nav-bottom {
  height: 48px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px;
  color: rgba(255,255,255,.25);
  cursor: pointer;
  transition: color .12s;
  flex-shrink: 0;
}
.side-nav-bottom:hover { color: rgba(255,255,255,.5); }
.side-nav-bottom img {
  opacity: 0.25;
  filter: brightness(0) invert(1);
  transition: opacity .12s;
}
.side-nav-bottom:hover img { opacity: 0.5; }
