/* Custom styles for smooth animations and visual enhancements */

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
}

/* Smooth hand transitions */
svg line {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Second hand gets faster transition */
svg line[stroke="red"] {
  transition: transform 0.1s ease-out;
}

/* Watch face shadow enhancement */
.watch-shadow {
  box-shadow: 
    0 0 0 2px rgba(255, 255, 255, 0.1),
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* Fullscreen adjustments */
:fullscreen {
  background: linear-gradient(135deg, #1f2937, #111827);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Range slider styling */
input[type="range"] {
  appearance: none;
  background: transparent;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-track {
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  border-radius: 2px;
}

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

input[type="range"]::-moz-range-track {
  background: rgba(255, 255, 255, 0.3);
  height: 4px;
  border-radius: 2px;
  border: none;
}

input[type="range"]::-moz-range-thumb {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: none;
}

/* Button hover effects */
button {
  transition: all 0.2s ease-in-out;
}

button:active {
  transform: scale(0.98);
}

/* Clock number positioning refinements */
.clock-number {
  transform: translate(-50%, -50%);
}

/* Responsive design for smaller screens */
@media (max-width: 640px) {
  .watch-container {
    width: 280px;
    height: 280px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .watch-face {
    border-width: 4px;
  }
  
  svg line {
    stroke-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  svg line {
    transition: none;
  }
  
  button {
    transition: none;
  }
}