/**
 * beaded_generator.css , Task 12b
 * Styles for the beaded logo generator panel in Settings.
 * Follows the existing settings-block / settings-row patterns.
 * Does NOT touch style.css.
 */

/* ── Upload label acts as a button ─────────────────────────────────────── */
.beaded-gen-upload-label {
  position: relative;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
}

/* ── Preview box ─────────────────────────────────────────────────────────── */
.beaded-gen-preview-row {
  flex-wrap: wrap;
  gap: 12px;
}

.beaded-gen-preview {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 12px;
  border: 1px solid rgba(25, 118, 210, 0.18);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.beaded-gen-placeholder {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.32);
  text-align: center;
  padding: 8px;
}

.beaded-gen-svg-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beaded-gen-svg-wrap svg {
  max-width: 100%;
  max-height: 100%;
}

/* ── Range sliders ───────────────────────────────────────────────────────── */
.beaded-gen-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 140px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}

.beaded-gen-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1565C0;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(21, 101, 192, 0.5);
  transition: background 0.15s;
}

.beaded-gen-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #1565C0;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(21, 101, 192, 0.5);
}

.beaded-gen-slider:hover::-webkit-slider-thumb {
  background: #1976D2;
}

/* ── Action buttons row ──────────────────────────────────────────────────── */
.beaded-gen-actions-row {
  flex-wrap: wrap;
  gap: 8px;
}

.beaded-gen-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Light-mode overrides , if settings are ever used in light mode */
@media (prefers-color-scheme: light) {
  .beaded-gen-preview {
    border-color: rgba(21, 101, 192, 0.2);
    background: rgba(0, 0, 0, 0.03);
  }

  .beaded-gen-placeholder {
    color: rgba(0, 0, 0, 0.38);
  }

  .beaded-gen-slider {
    background: rgba(0, 0, 0, 0.12);
  }
}
