/* SahaPark Mobile-First Native PWA Styles */

:root {
  --primary: #2563eb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark-bg: #0b1120;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  overscroll-behavior-y: none;
}

/* Touch Action & Haptics */
.btn-touch {
  min-height: 48px;
  touch-action: manipulation;
  transition: transform 0.08s cubic-bezier(0.4, 0, 0.2, 1), filter 0.08s ease;
}

.btn-touch:active {
  transform: scale(0.96);
  filter: brightness(0.92);
}

/* Bottom Nav Bar Safe Area on iOS / Android */
.bottom-nav {
  padding-bottom: max(12px, env(safe-area-inset-bottom));
}

.safe-bottom-padding {
  padding-bottom: max(96px, calc(env(safe-area-inset-bottom) + 80px));
}

/* Scanner Viewfinder Laser Effect */
.scanner-laser-container {
  position: relative;
  overflow: hidden;
}

.scanner-laser-line {
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 3px;
  background: #3b82f6;
  box-shadow: 0 0 14px 4px rgba(59, 130, 246, 0.8);
  animation: laserScan 2s infinite ease-in-out alternate;
  z-index: 10;
}

@keyframes laserScan {
  0% { top: 5%; }
  100% { top: 92%; }
}

/* Corner markers for scanner viewfinder */
.scanner-corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #3b82f6;
  border-style: solid;
  pointer-events: none;
  z-index: 12;
}
.scanner-corner-tl { top: 12px; left: 12px; border-width: 4px 0 0 4px; }
.scanner-corner-tr { top: 12px; right: 12px; border-width: 4px 4px 0 0; }
.scanner-corner-bl { bottom: 12px; left: 12px; border-width: 0 0 4px 4px; }
.scanner-corner-br { bottom: 12px; right: 12px; border-width: 0 4px 4px 0; }

/* Parking Slot Visualization Mini Boxes */
.slot-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.75rem;
}

.slot-occupied {
  background-color: #ef4444;
  color: #ffffff;
  border: 1px solid #b91c1c;
}

.slot-empty {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px dashed #cbd5e1;
}

.dark .slot-empty {
  background-color: #1e293b;
  color: #64748b;
  border: 1px dashed #475569;
}

.slot-available-next {
  background-color: #1e40af;
  color: #93c5fd;
  border: 2px solid #3b82f6;
  animation: pulseSlot 1.5s infinite;
}

@keyframes pulseSlot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}

/* No scrollbar utility */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
