/* ============================================================
   Clothing Tester — shares the TextureMapper design system
   ============================================================ */

@import url('../texturemapper/styles.css');

/* --- Tool-specific --- */
.color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 2px;
}

.color-label {
  font-size: 13px;
  color: var(--on-surface);
}

#body-color {
  width: 48px;
  height: 32px;
  padding: 2px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-sm);
  background: var(--surface-container-low);
  cursor: pointer;
}

.upload-area.dragover {
  border-color: var(--primary-container);
  background: var(--surface-warm-hover);
}

#btn-sample {
  margin-top: 8px;
}

/* Template preview inside the file chip */
.file-chip .file-thumb {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--outline-variant);
  object-fit: cover;
  flex-shrink: 0;
}

/* View-snap buttons in the floating controls bar */
.view-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.view-btn:hover {
  background: var(--surface-container-high);
  color: var(--on-surface);
}

.view-btn:active {
  background: var(--primary-container);
  color: var(--on-primary-container);
}

@media (prefers-reduced-motion: reduce) {
  .view-btn {
    transition: none;
  }
}
