html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.category-card {
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

#canvas {
  cursor: crosshair;
  touch-action: none;
  max-height: 80vh;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.gallery-item {
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
}

.gallery-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.tool-button {
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-weight: 500;
}

.tool-button:hover {
  transform: translateY(-2px);
}

#presetColors button, #recentColors button {
  transition: all 0.2s ease;
  border: 2px solid #ffffff;
}

#presetColors button:hover, #recentColors button:hover {
  transform: scale(1.15);
  border: 2px solid #e5e7eb;
}

.color-picker-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
}

#colorPicker {
  width: 100%;
  height: 50px;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
}

#colorPicker::-webkit-color-swatch-wrapper {
  padding: 0;
}

#colorPicker::-webkit-color-swatch {
  border: none;
  border-radius: 6px;
}

#searchContainer {
  z-index: 50;
  transition: all 0.2s ease;
}

#searchInput {
  border: 1px solid #e5e7eb;
}

#searchInput:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

#menuDropdown {
  transition: all 0.2s ease;
}

#menuDropdown a {
  transition: all 0.2s ease;
}

#studio {
overflow-y: auto;
-webkit-overflow-scrolling: touch;
}

#studio .h-full {
height: auto;
min-height: 100%;
}

.studio-content {
min-height: 100%;
display: flex;
flex-direction: column;
}

.flex-1.flex.flex-col.md\:flex-row {
min-height: min-content;
overflow-y: auto;
}

.w-full.md\:w-64.p-4 {
min-height: min-content;
}

/* Gallery View (hidden by default) */
#gallery {
height: calc(100vh - 80px); /* Account for header height */
overflow-y: auto;
padding: 0.25rem;
-webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 0.25rem;
}
#categories {
grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-3
}