.container {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 16px 0;
}

.list {
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.list::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--border);
}

.indicator {
  position: absolute;
  left: 0;
  width: 2px;
  background-color: var(--primary);
  transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 1;
}

.item {
  position: relative;
  margin: 0;
}

.itemNested {
  padding-left: 16px;
}

.link {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 6px 16px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1.4;
  position: relative;
}

.link:hover {
  color: var(--text);
}

.itemActive .link {
  color: var(--primary);
  font-weight: 500;
}

/* Hide scrollbar for webkit browsers */
.container::-webkit-scrollbar {
  width: 4px;
}

.container::-webkit-scrollbar-track {
  background: transparent;
}

.container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

.container::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Responsive: hide on smaller screens */
@media (max-width: 1280px) {
  .container {
    display: none;
  }
}
