/* ── Toggle Switch — Industrial Theme ────────────────────────── */
/* Used for inline feature toggles (watermark, bg-removal, etc.)   */

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  vertical-align: middle;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-strong, #c4cad8);
  border-radius: 22px;
  transition: background 200ms ease-out;
}

.slider::before {
  position: absolute;
  content: '';
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  border-radius: 50%;
  transition: transform 200ms ease-out;
}

input:checked + .slider {
  background: var(--accent, #c8973b);
}

input:checked + .slider::before {
  transform: translateX(18px);
}

/* Green variant for watermark toggle */
input#toggle-watermark:checked + .slider {
  background: var(--success-fg, #16a34a);
}

/* ── Toggle Container ─────────────────────────────────────────── */
.toggle-container-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border, #dde2ee);
}

.toggle-label-text {
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary, #4a5570);
  vertical-align: middle;
  user-select: none;
}
