/* Custom styles for enhanced UI */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #111827;
  overflow: hidden;
}

/* Smooth transitions for all interactive elements */
button, input, select {
  transition: all 0.2s ease-in-out;
}

/* Custom scrollbar for chord grid */
.overflow-y-auto::-webkit-scrollbar {
  width: 6px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: #374151;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: #6B7280;
  border-radius: 3px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #9CA3AF;
}

/* Piano key shadows and 3D effect */
.relative button {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.relative button:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive text sizing */
@media (max-width: 1024px) {
  .text-lg { font-size: 1rem; }
  .text-sm { font-size: 0.75rem; }
  .text-xs { font-size: 0.625rem; }
}

/* Animation for orientation overlay */
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-bounce {
  animation: bounce 1s infinite;
}

.animate-spin {
  animation: spin 2s linear infinite;
}

/* Custom range slider styling */
input[type="range"] {
  -webkit-appearance: none;
  background: transparent;
  height: 4px;
  border-radius: 2px;
  background: #374151;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #3B82F6;
  cursor: pointer;
  border: 2px solid #1E40AF;
}

input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #3B82F6;
  cursor: pointer;
  border: 2px solid #1E40AF;
}

/* Touch-friendly button sizing */
@media (max-width: 768px) {
  button {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Enhanced visual feedback for active elements */
.bg-blue-500 {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
}

.bg-gray-700:hover {
  background: linear-gradient(135deg, #4B5563, #374151);
}

/* Professional hardware-inspired styling */
.bg-gray-800 {
  background: linear-gradient(135deg, #1F2937, #111827);
  border-top: 1px solid #374151;
}

.bg-gray-900 {
  background: linear-gradient(135deg, #111827, #000000);
}