/* Image Stitcher Specific Styling */

.stitcher-uploader-box {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  background: var(--bg-surface);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.stitcher-uploader-box:hover,
.stitcher-uploader-box.dragover {
  border-color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
}

.mode-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mode-pill-btn {
  padding: 10px 6px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mode-pill-btn .icon {
  font-size: 1.1rem;
}

.mode-pill-btn:hover {
  border-color: var(--border-medium);
  color: var(--text-primary);
}

.mode-pill-btn.active {
  border-color: var(--brand-primary);
  background: rgba(99, 102, 241, 0.15);
  color: var(--brand-primary-hover);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

.aspect-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.aspect-chip {
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.aspect-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.aspect-chip.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.color-palette-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
  padding: 0;
}

.color-swatch:hover {
  transform: scale(1.15);
}

.color-swatch.active {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
}

.color-picker-input {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: transparent;
  padding: 0;
}

/* Loaded Photos Strip */
.stitcher-photos-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px;
  scrollbar-width: thin;
}

.stitch-photo-card {
  position: relative;
  flex: 0 0 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border-subtle);
  background: var(--bg-surface-elevated);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.stitch-photo-card:hover {
  border-color: var(--brand-primary);
}

.stitch-photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stitch-photo-card .photo-idx {
  position: absolute;
  top: 2px;
  left: 2px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
}

.stitch-photo-card .card-actions {
  position: absolute;
  bottom: 2px;
  left: 2px;
  right: 2px;
  display: flex;
  justify-content: space-between;
}

.card-action-btn {
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border: none;
  border-radius: 3px;
  font-size: 0.6rem;
  padding: 2px 4px;
  cursor: pointer;
}

.card-action-btn:hover {
  background: var(--brand-primary);
}
