/* Cyan Color Tool Styles */

/* Custom Range Slider Styling */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #00FFFF;
    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: #00FFFF;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hue slider gradient */
#hueSlider {
    background: linear-gradient(to right, 
        hsl(170, 100%, 50%), 
        hsl(175, 100%, 50%), 
        hsl(180, 100%, 50%), 
        hsl(185, 100%, 50%), 
        hsl(190, 100%, 50%)
    );
}

/* Saturation slider gradient */
#saturationSlider {
    background: linear-gradient(to right, 
        hsl(180, 0%, 50%), 
        hsl(180, 50%, 50%), 
        hsl(180, 100%, 50%)
    );
}

/* Lightness slider gradient */
#lightnessSlider {
    background: linear-gradient(to right, 
        hsl(180, 100%, 0%), 
        hsl(180, 100%, 50%), 
        hsl(180, 100%, 100%)
    );
}

/* Color sample styling */
.color-sample {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Palette color hover effect */
.palette-color {
    transition: transform 0.2s;
    position: relative;
}

.palette-color:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.palette-color:active {
    transform: scale(0.98);
}

/* Copy button animation */
.copy-icon {
    transition: transform 0.2s, color 0.2s;
}

.copy-icon:hover {
    transform: scale(1.2);
}

.copy-icon:active {
    transform: scale(0.9);
}

/* Preset color buttons */
.preset-color {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.preset-color:hover {
    transform: scale(1.1);
    z-index: 10;
}

.preset-color:active {
    transform: scale(0.95);
}

/* Current color display */
#currentColor {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Table styling */
table {
    border-collapse: separate;
    border-spacing: 0;
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

td, th {
    padding: 0.75rem 1rem;
}

/* Mobile responsiveness adjustments */
@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    #currentColor {
        height: 120px;
    }
    
    .palette-color {
        height: 80px;
    }
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, select:focus {
    outline: 2px solid #00FFFF;
    outline-offset: 2px;
}

/* Custom select styling */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23666666'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Tooltip for preset colors */
.preset-color::after {
    content: attr(title);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 20;
}

.preset-color:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Smooth transitions for color changes */
#palette-color-1, #palette-color-2, #palette-color-3, #palette-color-4, #palette-color-5 {
    transition: background-color 0.3s ease;
}