#@import "tailwindcss";

:root {
  --font-arabic: 'Cairo', 'Plus Jakarta Sans', system-ui, sans-serif;
  --bg-primary: #0c0a09;
  --bg-surface: #1c1917;
  --bg-elevated: #292524;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(245, 158, 11, 0.3);
  --accent-amber: #f59e0b;
  --accent-flame: #ea580c;
  --accent-ready: #10b981;
  --accent-alert: #f43f5e;
}

body {
  font-family: var(--font-arabic);
  background-color: var(--bg-primary);
  color: #f5f5f4;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #141210;
}
::-webkit-scrollbar-thumb {
  background: #383431;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #524d47;
}

/* Tabular Numerals */
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Pulse Glow for Real-Time items */
@keyframes ring-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
}
.animate-ring-glow {
  animation: ring-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes urgent-pulse {
  0%, 100% {
    transform: scale(1);
    border-color: rgba(244, 63, 94, 0.8);
  }
  50% {
    transform: scale(1.02);
    border-color: rgba(244, 63, 94, 1);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
  }
}
.animate-urgent {
  animation: urgent-pulse 1.2s ease-in-out infinite;
}

/* Print Styles for POS Thermal Receipt */
@media print {
  body * {
    visibility: hidden;
  }
  #thermal-receipt-modal,
  #thermal-receipt-modal * {
    visibility: visible;
  }
  #thermal-receipt-modal {
    position: absolute;
    left: 0;
    top: 0;
    width: 80mm;
    margin: 0;
    padding: 10px;
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  .no-print {
    display: none !important;
  }
}
