@media (hover: hover) and (pointer: fine) {
  #dropZone {
    display: none;
  }
}
.color-swatch {
    width: 50px;
    height: 50px;
    margin: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.color-swatch:hover {
    border-color: #3B82F6;
}
.color-swatch.selected {
    border-color: #2563EB;
}

#canvasContainer {
    width: 100%;
    position: relative;
    overflow: hidden;
}
canvas {
    display: block;
    max-width: 100%;
    height: auto;
}
.download-btn-loading {
    opacity: 0.7;
    cursor: wait;
}
#imageUpload {
    display: none;
}
/* Toast styles */
#toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
}
.toast {
  background: #fff;
  border: 1px solid #ccc;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
}
.toast-error {
  border-color: #f87171;
  color: #b91c1c;
}
.toast-info {
  border-color: #60a5fa;
  color: #1e3a8a;
}

/* Tooltip for special blending */
.tooltip {
  position: absolute;
  z-index: 1000;
  background: white;
  border: 1px solid #ccc;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: #333;
  border-radius: 0.25rem;
  box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.1);
  max-width: 90vw;
  word-wrap: break-word;
}

/* Label overlay for mobile compatibility */
#initialOverlayLabel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background: transparent;
    color: #555;
    text-align: center;
}
#initialOverlayLabel.hidden {
    display: none;
}

/* Replaces former inline style attributes (CSP: no inline styles). */
.min-w-240 {
    min-width: 240px;
}
