/* Burgundy Color Tool CSS */

/* Custom slider styling */
input[type="range"] {
  -webkit-appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(to right, #4E0000, #800020, #A52A2A);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid #800020;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  border: 2px solid #800020;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.15s ease;
}

input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

/* Color sample styling */
.color-sample {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.color-sample:hover {
  transform: scale(1.05);
}

/* Palette color styling */
.palette-color {
  transition: all 0.2s ease;
  position: relative;
}

.palette-color:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.palette-color:active {
  transform: translateY(0);
}

/* Copy button styling */
.copy-icon {
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  outline: none;
}

.copy-icon:hover {
  transform: scale(1.2);
}

/* Current color display */
#currentColor {
  transition: background-color 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Preset color buttons */
.preset-color {
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.preset-color:hover {
  transform: scale(1.15);
  z-index: 1;
}

.preset-color:active {
  transform: scale(0.95);
}

/* Table styling enhancements */
.min-w-full {
  border-collapse: separate;
  border-spacing: 0;
}

.min-w-full th {
  font-weight: 600;
  letter-spacing: 0.05em;
}

.min-w-full tr:last-child td {
  border-bottom: none;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
  
  input[type="range"] {
    height: 10px;
  }
  
  input[type="range"]::-webkit-slider-thumb,
  input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.palette-color, #currentColor {
  animation: fadeIn 0.5s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #800020;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4E0000;
}

/* Card hover effects */
.bg-white.rounded-lg.shadow-sm {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-white.rounded-lg.shadow-sm:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(128, 0, 32, 0.08);
}

/* Typography enhancements */
h1, h2, h3 {
  color: #800020;
}

/* Link styling */
a:not(.bg-\[\#\w+\]) {
  transition: color 0.2s ease;
}

a:not(.bg-\[\#\w+\]):hover {
  color: #800020;
}

/* Focus states */
input:focus, select:focus {
  border-color: #800020;
  box-shadow: 0 0 0 2px rgba(128, 0, 32, 0.2);
}