/* ══════════════════════════════════════
   SIDEBAR
   ══════════════════════════════════════ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  width: var(--sidebar-collapsed);
  transition: width var(--sidebar-transition),
              box-shadow var(--sidebar-transition);
  overflow: hidden;

  /* Gradient background */
  background: linear-gradient(180deg, #282828 0%, #0A0A0A 100%);

  display: flex;
  flex-direction: column;
}

.sidebar:hover {
  width: var(--sidebar-expanded);
  box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
}

/* Right-edge accent strip (spectrum gradient) */
.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(
    180deg,
    #ffd24d 0%,
    #ff5b5b 35%,
    #c45bff 70%,
    #6b5bff 100%
  );
}

/* ── Navigation list ── */
.sidebar-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  flex: 1;
  gap: 0;
}

/* ── Individual nav item ── */
.nav-item {
  position: relative;
  height: var(--nav-item-height);
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s ease;
  padding: 0 0 0 0;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Subtle gray divider between icons */
.nav-item + .nav-item {
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

/* Icon */
.nav-item .nav-icon {
  flex-shrink: 0;
  width: var(--sidebar-collapsed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ll-light-gray);
  transition: color 0.2s ease;
}

.nav-item .nav-icon svg {
  width: 42px;
  height: 42px;
}

.nav-item.active .nav-icon {
  color: var(--ll-amber);
}

/* Label */
.nav-item .nav-label {
  white-space: nowrap;
  font-size: 22px;
  font-weight: 400;
  color: var(--ll-light-gray);
  opacity: 0;
  transition: opacity var(--sidebar-transition),
              color 0.2s ease;
  padding-right: 30px;
}

.sidebar:hover .nav-item .nav-label {
  opacity: 1;
}

.nav-item.active .nav-label {
  color: var(--ll-white);
  font-weight: 600;
}

/* ── Profile portal link — pinned to sidebar top ── */
.sidebar-profile {
  display: flex;
  align-items: center;
  height: var(--nav-item-height);
  padding: 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  transition: background 0.2s ease;
}

.sidebar-profile:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-profile .nav-icon {
  flex-shrink: 0;
  width: var(--sidebar-collapsed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ll-light-gray);
  transition: color 0.2s ease;
}

.sidebar-profile .nav-icon svg {
  width: 42px;
  height: 42px;
}

.sidebar-profile .nav-label {
  white-space: nowrap;
  font-size: 22px;
  font-weight: 400;
  color: var(--ll-light-gray);
  opacity: 0;
  transition: opacity var(--sidebar-transition),
              color 0.2s ease;
  padding-right: 30px;
}

.sidebar:hover .sidebar-profile .nav-label {
  opacity: 1;
}

/* ── Sidebar footer links ── */
.sidebar-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 16px;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-footer-link {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 3px 10px;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  width: var(--sidebar-collapsed);
  text-align: center;
  text-overflow: ellipsis;
}

.sidebar:hover .sidebar-footer-link {
  width: auto;
}

.sidebar-footer-link:hover {
  color: var(--ll-amber);
}
