/* ==========================================================================
   SteadyEats Culinary Design System (Based on Stitch SteadyFoods UI Sample)
   Colors: Deep Emerald (#065F46), Fresh Mint (#059669 / #10B981), Sage (#6EE7B7)
   Typography: Plus Jakarta Sans
   ========================================================================== */

:root {
  --surface: #faf8ff;
  --surface-dim: #d2d9f4;
  --surface-bright: #faf8ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f2f3ff;
  --surface-container: #eaedff;
  --surface-container-high: #e2e7ff;
  --surface-container-highest: #dae2fd;
  --on-surface: #131b2e;
  --on-surface-variant: #3f4944;
  --inverse-surface: #283044;
  --inverse-on-surface: #eef0ff;
  --outline: #6f7973;
  --outline-variant: #bec9c2;
  --primary: #059669;
  --primary-deep: #004532;
  --primary-container: #047857;
  --secondary: #006c49;
  --secondary-container: #6cf8bb;
  --on-secondary-container: #00714d;
  --tertiary: #004530;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--surface);
  color: var(--on-surface);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

/* Tabular numbers for Naira currency & live counters */
.font-currency-display,
.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Hide scrollbars cleanly while keeping scrollability */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Safe area padding for mobile viewports */
.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.pt-safe {
  padding-top: env(safe-area-inset-top, 0px);
}

/* Mobile shell responsive container */
.mobile-shell-wrapper {
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(circle at top right, #ecfdf5 0%, #f1f5f9 55%, #e2e8f0 100%);
}

.mobile-app-container {
  width: 100%;
  max-width: 480px;
  min-height: 100dvh;
  background-color: var(--surface);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(6, 95, 70, 0.12), 0 4px 16px rgba(15, 23, 42, 0.06);
}

.mobile-app-container.wide-mode {
  max-width: 1120px;
}

@media (min-width: 640px) {
  .mobile-shell-wrapper.framed-phone {
    padding: 1.25rem 1rem;
  }
  .mobile-shell-wrapper.framed-phone .mobile-app-container:not(.wide-mode) {
    min-height: 860px;
    border-radius: 2rem;
    border: 6px solid #0f172a;
    overflow-x: hidden;
  }
}

/* Botanical ambient elevation cards */
.steady-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0px 2px 8px -2px rgba(6, 95, 70, 0.05), 0px 1px 3px rgba(15, 23, 42, 0.03);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.steady-card:hover {
  box-shadow: 0px 10px 24px -4px rgba(6, 95, 70, 0.08), 0px 4px 8px -2px rgba(15, 23, 42, 0.04);
}

/* Modal & Bottom Sheet animations */
@keyframes slideUpSheet {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-sheet-up {
  animation: slideUpSheet 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pulseRing {
  0% {
    transform: scale(0.85);
    opacity: 0.8;
  }
  70% {
    transform: scale(1.65);
    opacity: 0;
  }
  100% {
    transform: scale(1.65);
    opacity: 0;
  }
}

.rider-pulse::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background-color: rgba(5, 150, 105, 0.35);
  animation: pulseRing 2s infinite;
}

/* Print optimization for Dockets & Receipts */
@media print {
  .no-print {
    display: none !important;
  }
  body, .mobile-shell-wrapper, .mobile-app-container {
    background: #ffffff !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
  }
}
