canvas {
  max-width: 100%;
  height: auto;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #111827;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

input[type="range"]::-moz-range-track {
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #111827;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input[type="range"]::-moz-range-thumb:hover {
  background: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  #canvasWrapper {
    max-height: 50vh;
    overflow: hidden;
  }

  #canvas {
    max-height: 50vh;
    width: auto;
    margin: 0 auto;
    display: block;
  }
}

#imageModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 50;
  padding: 20px;
}

#imageModal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

#imageModal canvas {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.upload-container {
  min-height: 300px;
}
