/* Turquoise Color Tool CSS */

/* Custom slider styling */
input[type="range"] {
    -webkit-appearance: none;
    height: 8px;
    border-radius: 4px;
    background: #f0f0f0;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #40E0D0;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #40E0D0;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Hover effects for color palette */
.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);
}

/* Color sample in table */
.color-sample {
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Copy button animations */
.copy-icon {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.copy-icon:hover {
    transform: scale(1.2);
}

.copy-icon:active {
    transform: scale(0.9);
}

/* Preset color buttons */
.preset-color {
    transition: all 0.2s;
    border: 2px solid transparent;
}

.preset-color:hover {
    transform: scale(1.15);
    border: 2px solid white;
}

.preset-color:active {
    transform: scale(0.95);
}

/* Current color display */
#currentColor {
    transition: background-color 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
    
    #currentColor {
        height: 120px;
    }
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #40E0D0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #20B2AA;
}

/* Focus styles for accessibility */
a:focus, button:focus, input:focus, select:focus {
    outline: 2px solid #40E0D0;
    outline-offset: 2px;
}

/* Tooltip styling 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: 100;
}

.preset-color:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Enhance text readability */
.text-black {
    color: #333;
}

/* Enhance table hover effect */
.hover\:bg-gray-50:hover {
    background-color: #f0f9fa;
}

/* Custom styling for the palette type select */
#palette-type {
    transition: border-color 0.2s;
}

#palette-type:hover {
    border-color: #40E0D0;
}

/* Add a subtle turquoise pattern to the page background */
body.bg-gray-50 {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2340E0D0' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* Add a subtle hover effect to the "Explore Other Colors" buttons */
.grid-cols-2 a, .grid-cols-4 a {
    transition: all 0.3s;
}

.grid-cols-2 a:hover, .grid-cols-4 a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Header styling */
nav {
    border-bottom: 3px solid #40E0D0;
}

/* Footer link hover effect */
footer a:hover {
    color: #40E0D0 !important;
}

/* Table header styling */
th.bg-gray-50 {
    background-color: #f0f9fa;
    border-bottom: 2px solid #40E0D0;
}

/* Enhance mobile menu */
#mobile-menu {
    border-top: 1px solid rgba(64, 224, 208, 0.2);
}

/* Add subtle animation to copy success icon */
.fa-check {
    color: #20B2AA;
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Style for the main heading */
h1.text-turquoise-DEFAULT {
    background: linear-gradient(to right, #40E0D0, #20B2AA);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Add subtle shadow to cards */
.shadow-sm {
    box-shadow: 0 2px 10px rgba(64, 224, 208, 0.05);
}

/* Add hover effect to color variants table rows */
.hover\:bg-gray-50:hover {
    background-color: rgba(64, 224, 208, 0.05);
}