@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Space+Mono:wght@400;700&display=swap');

:root {
  --primary: #059669;
  --primary-dark: #064e3b;
  --primary-light: #34d399;
  --secondary: #1e40af;
  --secondary-light: #3b82f6;
  --accent-gold: #f59e0b;
  --bg-slate: #0f172a;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Outfit', sans-serif;
}

.font-mono-receipt {
  font-family: 'Space Mono', monospace;
}

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

/* Sidebar active link */
.nav-link.active {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.nav-link.active i {
  color: #ffffff !important;
}

/* Thermal Paper Receipt Styling */
.thermal-receipt-preview {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid #e5e7eb;
}

/* Print Specific Rules for Thermal POS (58mm / 80mm) */
@media print {
  body * {
    visibility: hidden;
  }
  
  #printable-area, #printable-area * {
    visibility: visible;
  }
  
  #printable-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 80mm;
    margin: 0;
    padding: 2mm;
    font-family: 'Space Mono', monospace !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    color: #000000 !important;
    background: #ffffff !important;
  }

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

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Keyframe animations */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-down {
  animation: slideDown 0.25s ease-out forwards;
}

/* Input focus ring */
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Badge glows */
.badge-pulse {
  position: relative;
}
.badge-pulse::after {
  content: '';
  position: absolute;
  top: -2px;
  right: -2px;
  bottom: -2px;
  left: -2px;
  border-radius: inherit;
  background: inherit;
  opacity: 0.4;
  animation: pulseGlow 2s infinite;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-up {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Mobile Safe Area & Touch UX */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  #mobile-bottom-nav {
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
  }
}

.mobile-nav-btn:active {
  transform: scale(0.92);
}

/* Responsive Table Horizontal Scroll Indicators */
.table-scroll-container {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
