/**
 * PicDriver Image Canvas Resize Tool - Styles
 */

.canvas-resize-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;
}

#preview-canvas {
  display: block;
  max-width: 100%;
  max-height: 480px;
  border-radius: 4px;
  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;
}

/* 3x3 Anchor Positioning Grid */
.anchor-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  grid-template-rows: repeat(3, 36px);
  gap: 6px;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-top: 8px;
}

.anchor-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  color: var(--text-muted);
}

.anchor-btn:hover {
  border-color: var(--brand-primary);
  color: #fff;
}

.anchor-btn.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.dimension-inputs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.input-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #fff;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  width: 100%;
}

.input-box:focus {
  border-color: var(--brand-primary);
  outline: none;
}
