* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
}

.icon-preview {
  position: relative;
}

.icon-preview::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 20px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.3) 0%, transparent 70%);
  filter: blur(8px);
  z-index: -1;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.animate-shimmer {
  background: linear-gradient(
    90deg,
    transparent 25%,
    rgba(255,255,255,0.1) 50%,
    transparent 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(128, 128, 128, 0.5);
}

/* Color input styling */
input[type="color"] {
  -webkit-appearance: none;
  border: none;
  padding: 0;
}

input[type="color"]::-webkit-color-swatch-wrapper {
  padding: 0;
  border-radius: 12px;
  overflow: hidden;
}

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

/* Smooth transitions for dark mode */
.dark body {
  color-scheme: dark;
}

/* Focus states */
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: none;
  ring: 2px;
  ring-color: #007AFF;
}

/* Dock animations */
.dock-icon-wrapper {
  transition: all 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dock reflection effect */
@keyframes dockReflection {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.5; }
}

/* Prevent text selection on dock */
.dock-icon-wrapper {
  user-select: none;
  -webkit-user-select: none;
}

/* Mobile dock adjustments */
@media (max-width: 768px) {
  .dock-icon-wrapper img {
    max-width: 40px;
    max-height: 40px;
  }
}