/* Custom CSS Styles & Animations */

/* Custom Font Fallback */
body {
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

/* Glassmorphism Styles */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* PIN Dots */
.pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #f43f5e;
  background: transparent;
  transition: all 0.2s ease-in-out;
}

.pin-dot.filled {
  background: #f43f5e;
  transform: scale(1.15);
  box-shadow: 0 0 8px rgba(244, 63, 94, 0.5);
}

/* Keypad Button */
.key-btn {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  font-weight: 600;
  color: #374151;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.key-btn:active {
  transform: scale(0.92);
  background: #ffe4e6;
  border-color: #fda4af;
}

/* Shake Animation for Incorrect PIN */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-10px); }
  40%, 80% { transform: translateX(10px); }
}

.shake {
  animation: shake 0.4s ease-in-out;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
/* Hide scrollbar for IE, Edge and Firefox */
.scrollbar-none {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Infinite Auto-Slide Animation Moving Left */
@keyframes slideLeftContinuous {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.auto-slide-container {
  overflow: hidden;
  width: 100%;
  position: relative;
}

.auto-slide-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: slideLeftContinuous 15s linear infinite;
}

.auto-slide-track:hover,
.auto-slide-track:active {
  animation-play-state: paused;
}

/* Fade In Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-fade-in {
  animation: fadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Pulse Glow */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(244, 63, 94, 0.7);
  }
}

.glow-effect {
  animation: pulseGlow 2s infinite;
}
