/* Events Makers loading states — the EM pin (evm-mark.png) replaces Frappe's splash logo, the blank page
   between routes and the save/submit "freeze" overlay. Behaviour in evm-loader.js; injected by nginx. */
:root{ --evm-pin:url(/files/orca/evm-mark.png); }

@keyframes evm-hop{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
@keyframes evm-shadow{ 0%,100%{transform:scaleX(1);opacity:.35} 50%{transform:scaleX(.6);opacity:.15} }

/* the pin + its ground shadow */
.evm-pin{position:relative;width:46px;height:58px}
.evm-pin::before{content:"";position:absolute;inset:0 0 12px;background:var(--evm-pin) center/contain no-repeat;
  animation:evm-hop .9s cubic-bezier(.45,0,.55,1) infinite}
.evm-pin::after{content:"";position:absolute;left:11px;right:11px;bottom:0;height:6px;border-radius:50%;
  background:#0EB9C8;animation:evm-shadow .9s cubic-bezier(.45,0,.55,1) infinite}

/* between pages: covers the content area only (sidebar + top bar stay usable) */
#evm-loader{position:fixed;z-index:1019;top:var(--orca-bar-h,60px);left:0;right:0;bottom:0;display:grid;place-items:center;
  background:var(--bg-color,#f8f9fb);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .15s ease,visibility 0s linear .15s}
#evm-loader.on{opacity:1;visibility:visible;transition:opacity .12s ease}
@media (min-width:992px){ body.orca-shell #evm-loader{left:var(--orca-nav-w,230px)} }

/* desk startup splash (img src comes from Website Settings → Splash Image) */
.splash img{width:64px!important;height:auto;animation:evm-hop .9s cubic-bezier(.45,0,.55,1) infinite}

/* save / submit / "Loading..." freeze overlay */
#freeze .freeze-message-container{flex-direction:column;gap:14px}
#freeze .freeze-message-container::before{content:"";width:46px;height:46px;background:var(--evm-pin) center/contain no-repeat;
  animation:evm-hop .9s cubic-bezier(.45,0,.55,1) infinite;filter:drop-shadow(0 6px 8px rgba(14,21,80,.25))}
#freeze .freeze-message .lead{font-size:14px;font-weight:600;color:#0E1550}

@media (prefers-reduced-motion:reduce){
  .evm-pin::before,.evm-pin::after,.splash img,#freeze .freeze-message-container::before{animation:none}
}
