.sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  padding: 0;
  user-select: none;
  --wails-draggable: drag;
}

.sidebar-brand {
  padding: 28px 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}

.sidebar-subtitle {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

.sidebar-nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
  position: relative;
}

.nav-item:hover {
  background: rgba(59, 130, 246, 0.08);
  color: var(--text-primary);
}

.nav-item.active {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
}

.nav-item.active .nav-icon {
  transform: scale(1.1);
}

.nav-delete {
  display: none;
  position: absolute;
  right: 8px;
  width: 20px;
  height: 20px;
  border: none;
  background: rgba(239, 68, 68, 0.15);
  color: var(--status-error);
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.nav-item:hover .nav-delete {
  display: flex;
}

.nav-delete:hover {
  background: rgba(239, 68, 68, 0.3);
}

.nav-add-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 4px;
  border: 1px dashed var(--border-color);
  background: transparent;
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  width: 100%;
  text-align: left;
}

.nav-add-btn:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
}

.nav-add-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  font-weight: 300;
}

.nav-icon {
  font-size: 16px;
  width: 22px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.nav-label {
  white-space: nowrap;
}

.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
}

.version-badge {
  font-size: 10px;
  color: var(--text-dim);
  font-family: 'JetBrains Mono', monospace;
}
