/* Custom styles for Gold Color Tool */

/* Slider styling */
input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #e5e7eb;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #000000;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Color sample hover effect */
.color-sample {
    transition: transform 0.2s ease;
}

.color-sample:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Copy icon hover */
.copy-icon:hover {
    color: #000000 !important;
}

/* Accordion styling */
.accordion-button[aria-expanded="true"] .accordion-icon {
    transform: rotate(180deg);
}

/* Toast notification */
#toast {
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Current color display */
#currentColor {
    background-color: #FFD700;
    transition: background-color 0.3s ease;
}

/* Palette colors */
.palette-color {
    transition: transform 0.2s ease;
}

.palette-color:hover {
    transform: scale(1.02);
}

/* Copy icon hover */
.copy-icon:hover {
    color: #FFD700 !important;
}

/* Preset color buttons */
.preset-color {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.preset-color:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile optimizations */
@media (max-width: 640px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    .palette-color {
        height: 60px;
    }
}