:root {
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

/* Base styles */
body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.font-geist-mono {
  font-family: 'SF Mono', SFMono-Regular, ui-monospace, monospace;
}

/* Canvas styles */
#drawing-canvas {
  height: 500px;
  width: 100%;
  touch-action: none;
}

#preview-canvas {
  touch-action: none;
}

/* Range input styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.15s ease;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #000;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
}

/* Color input styling */
input[type="color"] {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  padding: 0;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
}

input[type="color"]::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

/* Texture grid item */
.texture-item {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.texture-item:hover {
  transform: scale(1.05);
}

.texture-item.active {
  border-color: #000;
}

/* Preset item styling */
.preset-item {
  display: flex;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
  transition: all 0.15s ease;
  cursor: pointer;
}

.preset-item:hover {
  border-color: #d1d5db;
  background-color: #f9fafb;
}

.preset-thumbnail {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  overflow: hidden;
  margin-right: 12px;
  flex-shrink: 0;
  border: 1px solid #e5e7eb;
}

.preset-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.preset-name {
  font-weight: 500;
  font-size: 0.875rem;
  margin-bottom: 2px;
}

.preset-description {
  font-size: 0.75rem;
  color: #6b7280;
}
