/* Custom Scrollbars & Reset */
* {
  -webkit-tap-highlight-color: transparent;
}

body {
  touch-action: manipulation;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0B0F14;
}
::-webkit-scrollbar-thumb {
  background: #2A3649;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #00FF87;
}

/* Animations */
@keyframes scaleUp {
  0% {
    opacity: 0;
    transform: scale(0.92);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-scale-up {
  animation: scaleUp 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Animated SVG Exercise Keyframes */
@keyframes squatBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(24px) scaleY(0.85); }
}
@keyframes jumpJackArms {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(45deg); }
}
@keyframes plankGlow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

.anim-squat {
  animation: squatBob 1.6s ease-in-out infinite;
  transform-origin: bottom center;
}
.anim-plank {
  animation: plankGlow 2s ease-in-out infinite;
}

/* Tab Switching State */
.nav-tab.active {
  color: #00FF87;
}
.nav-tab.active svg {
  filter: drop-shadow(0 0 8px rgba(0, 255, 135, 0.4));
}

/* Glassmorphism Card Hover */
.workout-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.workout-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 135, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
}

/* Prevent unwanted drag and text selection */
button, nav, header {
  user-select: none;
}