/* Variation tree sidebar (right rail of trainer page). */

.trainer-vt-sidebar {
  display: flex;
  flex-direction: column;
  background: var(--color-surface, #1a1d22);
  border: 1px solid var(--color-border, #2a2f36);
  border-radius: 8px;
  height: 100%;
  overflow: hidden;
}

.trainer-vt-sidebar__head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border, #2a2f36);
}

.trainer-vt-sidebar__head h3 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted, #8a8f98);
}

.trainer-vt-sidebar__list,
.trainer-vt-sidebar__children {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  flex: 1;
}

.trainer-vt-sidebar__node.is-active > .trainer-vt-sidebar__row {
  background: rgba(255, 127, 0, 0.12);
  border-left: 3px solid var(--color-accent, #ff7f00);
}

.trainer-vt-sidebar__node.is-ancestor > .trainer-vt-sidebar__row {
  background: rgba(255, 255, 255, 0.04);
}

.trainer-vt-sidebar__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.1s ease;
  font-size: 13px;
}

.trainer-vt-sidebar__row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.trainer-vt-sidebar__label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trainer-vt-sidebar__type {
  text-transform: capitalize;
  font-size: 10px;
}

.trainer-vt-sidebar__empty {
  color: var(--color-text-muted, #8a8f98);
  padding: 16px;
  text-align: center;
  font-size: 13px;
}
