/**
 * PicDriver Image Background Color Changer - Styles
 */

.bgchanger-stage {
  position: relative;
  min-height: 440px;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.95) 100%);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px;
  user-select: none;
}

#bgchanger-canvas {
  display: block;
  max-width: 100%;
  max-height: 480px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  background-image: 
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%), 
    linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%), 
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%), 
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.05) 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0px;
  cursor: default;
}

#bgchanger-canvas.eyedropper-active {
  cursor: crosshair !important;
}

.preset-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.preset-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
  white-space: nowrap;
}

.preset-chip:hover, .preset-chip.active {
  background: rgba(99, 102, 241, 0.18);
  border-color: var(--brand-primary);
  color: #fff;
}

.gradient-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.gradient-chip {
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.gradient-chip:hover, .gradient-chip.active {
  transform: scale(1.04);
  border-color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}
