/* Motion layer for the manager dashboard (loaded after the colour layer). */
/* Tab change: short fade/slide when a panel becomes visible */
.dash-content{animation:vm-tab .28s ease-out}
@keyframes vm-tab{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* Cards: lift and a soft highlight that follows the pointer */
.bistrot-kpi,.bistrot-service-card,.bistrot-gauge{transition:transform .25s cubic-bezier(.34,1.56,.64,1),box-shadow .25s}
.bistrot-kpi:hover,.bistrot-service-card:hover,.bistrot-gauge:hover{transform:translateY(-2px);box-shadow:0 12px 28px rgba(20,30,60,.14)}
.bistrot-kpi::before,.bistrot-service-card::before,.bistrot-gauge::before{content:'';position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .25s;border-radius:inherit;background:radial-gradient(180px circle at var(--mx,50%) var(--my,50%),rgba(255,255,255,.35),rgba(255,255,255,0) 70%)}
.bistrot-kpi:hover::before,.bistrot-service-card:hover::before,.bistrot-gauge:hover::before{opacity:1}
.bistrot-service-card{position:relative}

/* Fill gauge: one ring per service */
.bistrot-gauge{position:relative;display:grid;grid-template-columns:auto 1fr 1fr;align-items:center;gap:18px;margin-bottom:16px;padding:16px 20px;border-radius:14px;border:1px solid rgba(33,52,45,.1);background:#fff;overflow:hidden}
.bistrot-gauge-title{font:700 .72rem/1.2 'Inter',sans-serif;letter-spacing:.08em;text-transform:uppercase;opacity:.65;max-width:9em}
.bistrot-gauge-ring{display:flex;align-items:center;gap:12px;--gc:#2f9e6a}
.bistrot-gauge-ring.busy{--gc:#e0a030}.bistrot-gauge-ring.full{--gc:#d64545}
.bistrot-gauge-ring svg{width:76px;height:76px;transform:rotate(-90deg);flex:none}
.bistrot-gauge-ring circle{fill:none;stroke-width:9;stroke-linecap:round}
.bistrot-gauge-ring .track{stroke:rgba(120,130,150,.2)}
.bistrot-gauge-ring .bar{stroke:var(--gc);stroke-dashoffset:var(--target);animation:vm-gauge 1s cubic-bezier(.22,1,.36,1)}
@keyframes vm-gauge{from{stroke-dashoffset:264}}
.bistrot-gauge-ring.full .bar{animation:vm-gauge 1s cubic-bezier(.22,1,.36,1),vm-pulse 2s 1s ease-in-out infinite}
@keyframes vm-pulse{50%{opacity:.55}}
.bistrot-gauge-ring div{display:grid;gap:2px}
.bistrot-gauge-ring strong{font:800 1.35rem/1 'Syne',sans-serif}
.bistrot-gauge-ring span{font-weight:600;font-size:.8rem}
.bistrot-gauge-ring small{opacity:.65;font-size:.72rem}
@media (max-width:640px){.bistrot-gauge{grid-template-columns:1fr 1fr}.bistrot-gauge-title{grid-column:1/-1;max-width:none}}

/* A booking that just arrived slides in with a halo */
.bistrot-timeline-row.is-new{animation:vm-new .6s cubic-bezier(.34,1.56,.64,1),vm-halo 2.4s ease-out;border-radius:10px}
@keyframes vm-new{from{opacity:0;transform:translateX(-18px)}to{opacity:1;transform:none}}
@keyframes vm-halo{0%,30%{background:rgba(56,72,191,.16)}100%{background:transparent}}

/* Confirmation toast with a drawn check */
#bma-booking-feedback.is-pop{animation:vm-toast .35s cubic-bezier(.34,1.56,.64,1)}
@keyframes vm-toast{from{opacity:0;transform:translateY(8px) scale(.97)}to{opacity:1;transform:none}}
.toast-check{width:1.1em;height:1.1em;margin-right:.4em;vertical-align:-.18em;overflow:visible}
.toast-check circle{fill:none;stroke:#1f9d55;stroke-width:2;stroke-dasharray:63;stroke-dashoffset:63;animation:vm-draw .45s ease-out forwards}
.toast-check path{fill:none;stroke:#1f9d55;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:18;stroke-dashoffset:18;animation:vm-draw .3s .3s ease-out forwards}
@keyframes vm-draw{to{stroke-dashoffset:0}}

@media (prefers-reduced-motion:reduce){
  .dash-content,.bistrot-timeline-row.is-new,#bma-booking-feedback.is-pop,.bistrot-gauge-ring .bar{animation:none!important}
  .bistrot-kpi,.bistrot-service-card,.bistrot-gauge{transition:none}
  .bistrot-kpi:hover,.bistrot-service-card:hover,.bistrot-gauge:hover{transform:none}
  .toast-check circle,.toast-check path{animation:none;stroke-dashoffset:0}
}

/* Dark mode: the fill gauge was a white card with white text */
html.dark .bistrot-gauge,html.dark body.manager-polished .bistrot-gauge{background:linear-gradient(180deg,rgba(32,35,49,.92),rgba(22,25,38,.92));border-color:rgba(120,150,230,.22);color:#eef1fb}
html.dark .bistrot-gauge-title,html.dark .bistrot-gauge-ring small{color:#aab4d0;opacity:1}
html.dark .bistrot-gauge-ring .track{stroke:rgba(150,170,220,.2)}
