@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@300;400;500;600;700&family=Prompt:wght@300;400;500;600;700&display=swap');

:root {
  --primary-blue: #0284c7;
  --dark-navy: #0b192c;
  --aqua-cyan: #06b6d4;
  --emerald-safe: #10b981;
  --amber-warn: #f59e0b;
  --rose-danger: #ef4444;
}

body {
  font-family: 'Prompt', 'Kanit', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  -webkit-tap-highlight-color: transparent;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-card-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Credit Card 3D Preview */
.credit-card-preview {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #0c4a6e 100%);
  box-shadow: 0 15px 35px rgba(2, 132, 199, 0.35);
  border-radius: 1.25rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.credit-card-preview:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 40px rgba(2, 132, 199, 0.45);
}

/* Mobile Drawer Animation */
#mobile-drawer {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobile-drawer.open {
  transform: translateX(0);
}

#mobile-drawer.closed {
  transform: translateX(100%);
}

#drawer-backdrop {
  transition: opacity 0.3s ease;
}

/* Water Ripple Effect */
@keyframes waterPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(2, 132, 199, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

.water-pulse {
  animation: waterPulse 2s infinite;
}

/* Custom Scrollbar */
::-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 Stylesheet for e-Receipt */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-receipt, #printable-receipt * {
    visibility: visible;
  }
  #printable-receipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: white;
    color: black;
  }
  .no-print {
    display: none !important;
  }
}

/* Tab Active Transitions */
.tab-btn.active {
  color: #0284c7;
  border-bottom: 2px solid #0284c7;
  font-weight: 600;
}

.payment-method-card.selected {
  border-color: #0284c7;
  background-color: #f0f9ff;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

/* Skeleton Loading */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeletonLoad 1.5s infinite;
}

@keyframes skeletonLoad {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Scanner Laser Animation */
@keyframes scanLaser {
  0% {
    top: 5%;
    opacity: 0.6;
  }
  50% {
    top: 92%;
    opacity: 1;
  }
  100% {
    top: 5%;
    opacity: 0.6;
  }
}

.scanner-laser-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #f59e0b, #fbbf24, #f59e0b, transparent);
  box-shadow: 0 0 12px 3px rgba(245, 158, 11, 0.85);
  animation: scanLaser 2s ease-in-out infinite;
}

#camera-reader video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 1rem;
}
