/* ─── Sidebar: Model Info + Config ─── */

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 10;
  overflow-y: auto;
  transform: translateX(0);
  transition: transform 0.25s ease;
}

body.sidebar-hidden {
  grid-template-columns: 0px 1fr;
}

body.sidebar-hidden .sidebar {
  transform: translateX(-100%);
}

.sidebar__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.sidebar__close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}

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

/* Floating tab to reopen sidebar */
.sidebar-tab {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

body.sidebar-hidden .sidebar-tab {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease 0.3s, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sidebar-tab:hover {
  background: var(--bg-elevated);
  color: var(--text-bright);
  border-color: var(--accent);
}

.model-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.model-info__name {
  font-family: var(--font);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-bright);
}

.model-info__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.model-info__params {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: var(--font);
}

/* Config panel */
.config {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.config__group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.config__label {
  font-size: 0.7rem;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font);
}

.config__label span {
  color: var(--accent);
  font-weight: 600;
}

.config__select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-bright);
  padding: 0.5rem;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
}

.config__select:focus {
  border-color: var(--accent);
}

.config__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.config__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(167, 139, 250, 0.3);
}

.config__slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}

/* Info icon */
.config__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  font-size: 0.75rem;
  color: var(--text-dim);
  cursor: help;
  vertical-align: middle;
  margin-left: 0.25rem;
  transition: color 0.15s;
}

.config__info:hover {
  color: var(--accent);
}
