/*
 * EasyGas shared design system.
 * Loaded once on every EasyGas surface (client storefront, courier app,
 * seller/depot dashboard, admin content editor) via head-assets.blade.php
 * and head-soft.blade.php. Extends the site-wide --ecm-* tokens defined in
 * layouts/app.blade.php — does not replace them.
 *
 * Visual language: restrained neutral surfaces, one accent color per order
 * status, clean card/route treatment. Inspired by modern delivery-app UIs
 * (Uber/Glovo-style) without cloning their palette.
 */

:root {
  /* Surfaces & cards */
  --eg-surface: #FFFFFF;
  --eg-surface-muted: #F8FAFC;
  --eg-border: #E7ECF3;
  --eg-card-radius: 1rem;
  --eg-card-radius-sm: 0.625rem;
  --eg-card-shadow: 0 1px 3px 0 rgb(15 23 42 / .06), 0 1px 2px -1px rgb(15 23 42 / .06);
  --eg-card-shadow-hover: 0 10px 24px -8px rgb(15 23 42 / .14), 0 4px 8px -4px rgb(15 23 42 / .08);

  /* Brand accent (EasyGas flame) */
  --eg-accent: #D97706;
  --eg-accent-soft: #FFF7ED;

  /* Order-status pill colors: bg / fg pairs */
  --eg-status-pending-bg: #F1F5F9;     --eg-status-pending-fg: #475569;
  --eg-status-confirmed-bg: #EFF6FF;   --eg-status-confirmed-fg: #1D4ED8;
  --eg-status-preparing-bg: #FEF3C7;   --eg-status-preparing-fg: #B45309;
  --eg-status-delivering-bg: #ECFEFF;  --eg-status-delivering-fg: #0E7490;
  --eg-status-delivered-bg: #ECFDF5;   --eg-status-delivered-fg: #047857;
  --eg-status-cancelled-bg: #FEF2F2;   --eg-status-cancelled-fg: #B91C1C;

  /* Map / route treatment */
  --eg-route-line: #2563EB;
  --eg-route-panel-radius: 1.25rem;
}

/* Cards */
.eg-card {
  background: var(--eg-surface);
  border: 1px solid var(--eg-border);
  border-radius: var(--eg-card-radius);
  box-shadow: var(--eg-card-shadow);
  transition: box-shadow .2s ease, transform .2s ease;
}
.eg-card--hoverable:hover {
  box-shadow: var(--eg-card-shadow-hover);
  transform: translateY(-2px);
}
.eg-card-flat {
  background: var(--eg-surface-muted);
  border: 1px solid var(--eg-border);
  border-radius: var(--eg-card-radius-sm);
}

/* Status pills */
.eg-status-pill {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
}
.eg-status-pill::before {
  content: '';
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.eg-status-pill--pending     { background: var(--eg-status-pending-bg);     color: var(--eg-status-pending-fg); }
.eg-status-pill--confirmed   { background: var(--eg-status-confirmed-bg);   color: var(--eg-status-confirmed-fg); }
.eg-status-pill--preparing   { background: var(--eg-status-preparing-bg);   color: var(--eg-status-preparing-fg); }
.eg-status-pill--delivering  { background: var(--eg-status-delivering-bg);  color: var(--eg-status-delivering-fg); }
.eg-status-pill--delivered   { background: var(--eg-status-delivered-bg);   color: var(--eg-status-delivered-fg); }
.eg-status-pill--cancelled   { background: var(--eg-status-cancelled-bg);   color: var(--eg-status-cancelled-fg); }

/* Stat tiles (KPI widgets) */
.eg-stat-tile {
  background: var(--eg-surface);
  border: 1px solid var(--eg-border);
  border-radius: var(--eg-card-radius-sm);
  padding: .9rem 1rem;
}
.eg-stat-tile__label {
  font-size: .72rem;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.eg-stat-tile__value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.2;
}

/* Map / route panel */
.eg-route-panel {
  border-radius: var(--eg-route-panel-radius);
  overflow: hidden;
  border: 1px solid var(--eg-border);
  box-shadow: var(--eg-card-shadow);
  position: relative;
}
.eg-route-panel__sheet {
  position: absolute;
  left: .75rem;
  right: .75rem;
  bottom: .75rem;
  background: var(--eg-surface);
  border-radius: var(--eg-card-radius-sm);
  box-shadow: var(--eg-card-shadow-hover);
  padding: .75rem 1rem;
}

/* Empty states */
.eg-empty-state {
  text-align: center;
  padding: 2.5rem 1.25rem;
  color: #64748B;
}
.eg-empty-state__icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto .75rem;
  border-radius: 50%;
  background: var(--eg-surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eg-accent);
  font-size: 1.25rem;
}
