/* General Styles */
.cursor-pointer {
    cursor: pointer;
}

/* Color Sample Styles */
.color-sample {
    transition: transform 0.2s ease;
}

tr:hover .color-sample {
    transform: scale(1.1);
}

/* Palette Color Styles */
.palette-color {
    transition: all 0.2s ease;
}

.palette-color:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

/* Custom Range Slider Styling */
.form-range::-webkit-slider-thumb {
    background: #8F00FF;
}

.form-range::-moz-range-thumb {
    background: #8F00FF;
}

.form-range::-ms-thumb {
    background: #8F00FF;
}

.form-range::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #4B0082, #8F00FF, #B19CD9);
}

.form-range::-moz-range-track {
    background: linear-gradient(to right, #4B0082, #8F00FF, #B19CD9);
}

.form-range::-ms-track {
    background: linear-gradient(to right, #4B0082, #8F00FF, #B19CD9);
}

/* Preset Color Button Styles */
.preset-color {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.preset-color:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.preset-color.active {
    border: 2px solid #333;
}

/* Copy Button Styles */
.copy-icon {
    transition: all 0.2s ease;
}

.copy-icon:hover {
    color: #8F00FF !important;
}

/* Form Focus States */
.form-control:focus,
.form-select:focus {
    border-color: #8F00FF;
    box-shadow: 0 0 0 0.25rem rgba(143, 0, 255, 0.25);
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05) !important;
}

/* Other Colors Links */
.row-cols-2 a {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.row-cols-2 a:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f8f8f8;
}

::-webkit-scrollbar-thumb {
    background: #8F00FF;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4B0082;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .color-sample {
        height: 30px;
    }
    
    .palette-color {
        height: 100px !important;
    }

    .preset-color {
        width: 35px !important;
        height: 35px !important;
    }
}

@media (max-width: 576px) {
    .color-sample {
        height: 25px;
    }

    .palette-color {
        height: 80px !important;
    }

    .preset-color {
        width: 30px !important;
        height: 30px !important;
    }
}