/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.6;
}

/* Color Picker Styles */
#currentColor {
    transition: background-color 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Range Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #f0f0f0;
    outline: none;
    transition: background 0.2s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #D2B48C;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #D2B48C;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="range"]:focus {
    outline: none;
}

/* Hue slider specific styling */
#hueSlider {
    background: linear-gradient(to right, #D2B48C, #E8D0B0, #A68B69);
}

/* Saturation slider specific styling */
#saturationSlider {
    background: linear-gradient(to right, #d9d9d9, #D2B48C);
}

/* Lightness slider specific styling */
#lightnessSlider {
    background: linear-gradient(to right, #000, #D2B48C, #fff);
}

/* Preset Color Buttons */
.preset-color {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.preset-color:hover {
    transform: scale(1.1);
}

.preset-color:active {
    transform: scale(0.95);
}

/* Palette Colors */
.palette-color {
    transition: transform 0.2s;
    position: relative;
}

.palette-color:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.palette-color:hover::after {
    content: "Click to use";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
}

/* Copy Icons */
.copy-icon {
    cursor: pointer;
    transition: transform 0.2s;
}

.copy-icon:hover {
    transform: scale(1.2);
}

/* Color Sample in Table */
.color-sample {
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.color-sample:hover {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .palette-color:hover::after {
        display: none;
    }
}

/* Select Dropdown Styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.7rem center;
    background-size: 1em;
}

/* Explore Other Colors Section */
.grid-cols-2 a, .grid-cols-4 a {
    transition: transform 0.2s, opacity 0.2s;
}

.grid-cols-2 a:hover, .grid-cols-4 a:hover {
    transform: translateY(-2px);
}

/* Footer Links */
footer a {
    transition: color 0.2s;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.container {
    animation: fadeIn 0.5s ease-in-out;
}