/* 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: #007FFF;
}

.form-range::-moz-range-thumb {
    background: #007FFF;
}

.form-range::-ms-thumb {
    background: #007FFF;
}

.form-range::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #E6F3FF, #99CCFF, #007FFF, #0066CC, #004C99);
}

.form-range::-moz-range-track {
    background: linear-gradient(to right, #E6F3FF, #99CCFF, #007FFF, #0066CC, #004C99);
}

.form-range::-ms-track {
    background: linear-gradient(to right, #E6F3FF, #99CCFF, #007FFF, #0066CC, #004C99);
}

/* 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: #007FFF !important;
}

/* Form Focus States */
.form-control:focus,
.form-select:focus {
    border-color: #007FFF;
    box-shadow: 0 0 0 0.25rem rgba(0, 127, 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: linear-gradient(to bottom, #E6F3FF, #99CCFF, #007FFF, #0066CC, #004C99);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #99CCFF, #007FFF, #0066CC);
}

/* 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;
    }
}

/* Animation for color changes */
@keyframes colorPulse {
    0% { opacity: 1; }
    50% { opacity: 0.8; }
    100% { opacity: 1; }
}

.palette-color:active {
    animation: colorPulse 0.3s ease;
}

/* Table hover effects */
.table-hover tbody tr:hover {
    background-color: rgba(0, 127, 255, 0.05);
}

/* Azure specific styles */
.azure-header {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Azure gradient text effect */
.azure-text {
    background: linear-gradient(to right, #E6F3FF, #99CCFF, #007FFF, #0066CC, #004C99);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Azure animation for special elements */
@keyframes azureAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.azure-animated {
    background: linear-gradient(90deg, #E6F3FF, #99CCFF, #007FFF, #0066CC, #004C99, #E6F3FF);
    background-size: 600% 600%;
    animation: azureAnimation 8s ease infinite;
}

/* Azure border effect */
.azure-border {
    border: 2px solid transparent;
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    background-image: 
        linear-gradient(to bottom, white, white), 
        linear-gradient(90deg, #E6F3FF, #99CCFF, #007FFF, #0066CC, #004C99);
}

/* Azure shadow effect */
.azure-shadow:hover {
    box-shadow: 
        0 0 10px rgba(0, 127, 255, 0.5),
        0 0 20px rgba(0, 127, 255, 0.3),
        0 0 30px rgba(0, 127, 255, 0.2);
}

/* Azure button styles */
.btn-azure {
    background: linear-gradient(to right, #99CCFF, #007FFF, #0066CC);
    border: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-azure:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Azure tooltip */
.azure-tooltip {
    position: relative;
}

.azure-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: linear-gradient(to right, #99CCFF, #007FFF, #0066CC);
    color: white;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 10;
}