/**
 * TableOrder Design System & Theme
 * Multi-Tenant Restaurant QR Dine-In Ordering SaaS
 */

:root {
  /* Brand Palette */
  --color-primary: #f97316;
  --color-primary-hover: #ea580c;
  --color-primary-focus: rgba(249, 115, 22, 0.25);
  --color-primary-light: #fff7ed;
  --color-primary-soft: #ffedd5;
  --color-primary-dark: #c2410c;

  /* Secondary & Surfaces */
  --color-secondary: #0f172a;
  --color-secondary-hover: #1e293b;
  --color-secondary-light: #334155;

  /* Accent */
  --color-accent: #f59e0b;
  --color-accent-light: #fef3c7;
  --color-accent-dark: #d97706;

  /* Backgrounds & Surfaces */
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-surface: #ffffff;
  --color-surface-hover: #f8fafc;
  --color-surface-dark: #1e293b;

  /* Typography */
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-text-subtle: #94a3b8;
  --color-text-inverse: #ffffff;

  /* Borders & Dividers */
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-border-focus: #f97316;

  /* Status Colors */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-success-dark: #047857;

  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-warning-dark: #b45309;

  --color-error: #ef4444;
  --color-error-light: #fee2e2;
  --color-error-dark: #b91c1c;

  --color-info: #0284c7;
  --color-info-light: #e0f2fe;

  /* Typography & Geometry */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-2xl: 1.75rem;
  --radius-full: 9999px;

  /* Elevation Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  --shadow-brand: 0 10px 25px -5px rgba(249, 115, 22, 0.28);
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom scrollbar for modern browsers */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Pulse Animation for Live Incoming Orders */
@keyframes orderPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.5);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
  }
}

.order-pulse-active {
  animation: orderPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

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

/* Toast Notification Styles */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Print Styling for Table QR Stand / Card */
@media print {
  body * {
    visibility: hidden;
  }
  #printable-qr-card, #printable-qr-card * {
    visibility: visible;
  }
  #printable-qr-card {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    box-shadow: none !important;
    border: 2px dashed #0f172a !important;
  }
  .no-print {
    display: none !important;
  }
}
