/* Canvas and Flag Guidelines Styles */
.canvas-wrapper {
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  background: #ffffff;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#design-canvas {
  display: block;
}

/* Overlay Guide Lines (Sewing 2cm Margin & Sleeve & Feather Curve Cut-Line) */
.canvas-overlay-guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
}

.guide-safe-line {
  position: absolute;
  border: 2px dashed rgba(245, 158, 11, 0.9);
  box-shadow: 0 0 4px rgba(0,0,0,0.2);
  transition: opacity 0.2s ease;
}

.guide-safe-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: #f59e0b;
  color: #000000;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
}

.guide-sleeve-area {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(59, 130, 246, 0.15),
    rgba(59, 130, 246, 0.15) 10px,
    rgba(59, 130, 246, 0.05) 10px,
    rgba(59, 130, 246, 0.05) 20px
  );
  border-right: 2px dashed #3b82f6;
}

.guide-sleeve-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%) rotate(-90deg);
  white-space: nowrap;
  background: #3b82f6;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}

/* Feather Flag Visual Cut-Line Overlay */
.guide-feather-curve-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Rulers */
.ruler-h {
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 20px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 0 4px;
  font-size: 10px;
  color: var(--text-muted);
}

.ruler-v {
  position: absolute;
  top: 0;
  bottom: 0;
  right: -26px;
  width: 20px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 10px;
  color: var(--text-muted);
}
