/* Custom Styles & Mobile Enhancements for Tumakuru Dasara 2026 Webapp */

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

.font-serif {
  font-family: 'Rozha One', serif, Georgia;
}

/* Touch friendly mobile inputs */
input, textarea, button, select {
  touch-action: manipulation;
}

/* Active tab styles */
.active-tab {
  background: linear-gradient(135deg, #e11d48, #d97706);
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

.filter-badge.active {
  background-color: #0f172a;
  color: #ffffff;
}

/* Smooth transitions */
input:focus, textarea:focus, select:focus {
  transition: all 0.2s ease-in-out;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Print styling for Digital Pass */
@media print {
  body * {
    visibility: hidden;
  }
  #riderPassCard, #riderPassCard * {
    visibility: visible;
  }
  #riderPassCard {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    border: 2px solid #b45309;
    box-shadow: none;
  }
}

/* PhonePe / Google Pay QR Scanner Laser Animation */
@keyframes qrLaserScan {
  0% {
    top: 10%;
    opacity: 0.85;
  }
  50% {
    top: 90%;
    opacity: 1;
  }
  100% {
    top: 10%;
    opacity: 0.85;
  }
}

.scanner-laser-line {
  position: absolute;
  left: 6%;
  right: 6%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c084fc, #e879f9, #c084fc, transparent);
  box-shadow: 0 0 16px 3px rgba(192, 132, 252, 0.95);
  animation: qrLaserScan 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 25;
}
