config-page {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem;
  background: var(--bs-body-bg);
}

.config-page {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.config-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.config-sets {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 680px;
}

.config-set {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.config-set-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--bs-border-color);
}

.config-set-name {
  font-size: 1rem;
  font-weight: 700;
}

.config-set-desc {
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
  margin-top: 0.1rem;
}

.config-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.config-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
}

.config-row-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.config-row-desc {
  font-size: 0.8rem;
  color: var(--bs-secondary-color, #6c757d);
}

.config-row-control {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.config-input {
  flex: 1;
  max-width: 400px;
}

.config-save-btn {
  white-space: nowrap;
  min-width: 64px;
}

.config-bool-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.config-bool-switch .form-check-input {
  cursor: pointer;
  width: 2.5em;
  height: 1.25em;
  margin: 0;
}
