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

:root {
  --font-main: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Kanit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --color-brand-primary: #ea580c;
  --color-brand-dark: #7c2d12;
  --color-brand-teal: #0d9488;
}

* {
  font-family: var(--font-main);
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: var(--font-heading);
}

.font-mono {
  font-family: var(--font-mono);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.8);
}

/* Custom Animations */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(234, 88, 12, 0);
  }
}

.animate-pulse-glow {
  animation: pulseGlow 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* Card Hover Effects */
.pos-card-interactive {
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
}

.pos-card-interactive:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

.pos-card-interactive:active {
  transform: translateY(0);
}

/* PIN Keypad Button */
.keypad-btn {
  aspect-ratio: 1 / 1;
  font-size: 1.25rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.12s ease;
  user-select: none;
}

.keypad-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: scale(1.03);
}

.keypad-btn:active {
  background: #e2e8f0;
  transform: scale(0.96);
}

/* Receipt Paper Styling */
.receipt-paper {
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-family: var(--font-mono), monospace;
  position: relative;
}

.receipt-paper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(-45deg, #000, #000 4px, #fff 4px, #fff 8px);
}

.receipt-paper::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 8px;
  background: radial-gradient(circle, transparent, transparent 50%, #fff 50%, #fff 100% );
  background-size: 12px 12px;
}

/* Print Only Styles */
@media print {
  body * {
    visibility: hidden;
  }
  
  #printable-receipt, #printable-receipt * {
    visibility: visible;
  }
  
  #printable-receipt {
    position: fixed;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0 auto;
    padding: 10px;
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }

  .no-print {
    display: none !important;
  }
}

/* Badge styling */
.badge-stock-high {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.badge-stock-low {
  background-color: #fef9c3;
  color: #a16207;
  border: 1px solid #fde047;
}

.badge-stock-out {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
