/* Mobile-first responsive styles for SaaS Color Tools */

@layer components {
    .shadow-glow {
        box-shadow: 0 0 0 1px rgba(249, 115, 22, 0.25), 0 0 40px rgba(249, 115, 22, 0.18);
    }
}

/* Custom scrollbar for color grid */
#colorGrid::-webkit-scrollbar {
    width: 6px;
}

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

#colorGrid::-webkit-scrollbar-thumb {
    background: rgba(249, 115, 22, 0.1);
    border-radius: 3px;
}

#colorGrid::-webkit-scrollbar-thumb:hover {
    background: rgba(249, 115, 22, 0.2);
}

/* Animations */
@keyframes popIn {
    0% { transform: scale(0.95); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

#colorGrid > div {
    animation: popIn 0.2s ease-out forwards;
}

/* Custom slider thumb */
input[type=range] {
  -webkit-appearance: none;
  background: transparent;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #f97316;
  cursor: pointer;
  margin-top: -6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  background: #fed7aa;
  border-radius: 3px;
}

/* Transition for preview */
#gradPreview {
    transition: background 0.2s ease;
}
