/*login page*/
.login-anim-body {
  --login-primary-rgb: 100, 91, 239;
}

@keyframes login-card-in {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes login-logo-wrap-in {
  from {
    opacity: 0;
    transform: translate3d(0, -10px, 0);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes login-logo-spring-scale {
  0% {
    transform: scale(0.92);
    animation-timing-function: cubic-bezier(0.33, 0.89, 0.45, 1);
  }
  52% {
    transform: scale(1.04);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes login-title-wrap-in {
  from {
    opacity: 0;
    transform: translate3d(0, -8px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes login-title-spring-scale {
  0% {
    transform: scale(0.95);
    animation-timing-function: cubic-bezier(0.33, 0.89, 0.45, 1);
  }
  48% {
    transform: scale(1.02);
    animation-timing-function: cubic-bezier(0.25, 1, 0.5, 1);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes login-field-in {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes login-btn-in {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.login-anim-body .login {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transform-origin: 50% 50%;
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(0.92);
  will-change: transform, opacity;
}

.login-anim-body.login-anim-play .login {
  animation: login-card-in 300ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.login-anim-body .login-anim-logo-div {
  opacity: 0;
  transform: translate3d(0, -10px, 0);
  filter: blur(4px);
  will-change: transform, opacity, filter;
}

.login-anim-body.login-anim-play .login-anim-logo-div {
  animation: login-logo-wrap-in 260ms ease-out forwards;
  animation-delay: 200ms;
}

.login-anim-body .client-logo {
  transform: scale(0.92);
  transform-origin: 50% 50%;
  will-change: transform;
}

.login-anim-body.login-anim-play .client-logo {
  animation: login-logo-spring-scale 480ms forwards;
  animation-delay: 200ms;
}

.login-anim-body .login-anim-title {
  opacity: 0;
  transform: translate3d(0, -8px, 0);
  will-change: transform, opacity;
}

.login-anim-body.login-anim-play .login-anim-title {
  animation: login-title-wrap-in 260ms ease-out forwards;
  animation-delay: 268ms;
}

.login-anim-body .login-anim-title span {
  transform: scale(0.95);
  transform-origin: 50% 50%;
  will-change: transform;
}

.login-anim-body.login-anim-play .login-anim-title span {
  animation: login-title-spring-scale 370ms forwards;
  animation-delay: 268ms;
}

.login-anim-body .login-anim-field {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  will-change: transform, opacity;
}

.login-anim-body.login-anim-play .login-anim-field {
  animation: login-field-in 300ms ease-out forwards;
  animation-delay: 400ms;
}

.login-anim-body.login-anim-play .login-anim-field-2 {
  animation-delay: 500ms;
}

.login-anim-body .login-anim-btn {
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(0.98);
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  transition: transform 120ms ease-out;
}

.login-anim-body.login-anim-play .login-anim-btn {
  animation: login-btn-in 300ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 800ms;
}

.login-anim-body .custom-field {
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .login-anim-body .login,
  .login-anim-body .login-anim-logo-div,
  .login-anim-body .client-logo,
  .login-anim-body .login-anim-title,
  .login-anim-body .login-anim-title span,
  .login-anim-body .login-anim-field,
  .login-anim-body .login-anim-btn {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/*nav active pills*/
@media (min-width: 1024px) {
  .nav-pill-bg {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 0;
    border-radius: 32px;
    background-color: var(--purple);
    pointer-events: none;
    opacity: 0;
  }

  .customer-body .nav-pill-bg {
    background-color: var(--brand);
  }

  .nav-pill-bg.is-visible {
    opacity: 1;
    display: block;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1), height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
  }

  .rounded-panel:has(.nav-pill-bg.is-visible) li,
  .tab-list:has(.nav-pill-bg.is-visible) li,
  .nav-list:has(.nav-pill-bg.is-visible) li {
    position: relative;
    z-index: 1;
  }

  .rounded-panel:has(.nav-pill-bg.is-visible) li a.active,
  .tab-list:has(.nav-pill-bg.is-visible) li a.active,
  .nav-list:has(.nav-pill-bg.is-visible) li.active a {
    background-color: transparent !important;
  }

  .rounded-panel .nav-pill-bg,
  .nav-list .nav-pill-bg {
    --tw-shadow: 0 5px 12px 0 rgba(0, 0, 0, 0.25);
    --tw-shadow-colored: 0 5px 12px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }

  .rounded-panel:has(.nav-pill-bg.is-visible) li a.active,
  .nav-list:has(.nav-pill-bg.is-visible) li.active a {
    box-shadow: none !important;
    --tw-shadow: none !important;
  }

  .nav-list:has(.nav-pill-bg.is-visible) .nav-btn,
  .nav-list:has(.nav-pill-bg.is-visible) .customer-nav-btn {
    transition: none !important;
  }
}

@media (max-width: 1023px) {
  .nav-pill-bg {
    display: none !important;
  }
}

/*gridstck*/
.grid-stack-item-content.grid-stack-anim {
    animation: gridItemIn 620ms cubic-bezier(0.22, 1.2, 0.36, 1) forwards;
}

@keyframes gridItemIn {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Customer dashboard motion */
:root {
  --motion-enter: cubic-bezier(0.22, 1, 0.36, 1);
  --motion-interact: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes screenFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardEnter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerEnter {
  from {
    opacity: 0;
    transform: translateY(-14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerItemEnter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bookingCardQuickIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes upcomingCardQuickIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.customer-body .fade-in {
  animation: screenFadeIn 984ms var(--motion-enter) backwards;
}

.customer-body .slide-up {
  animation: cardEnter 950ms var(--motion-enter) backwards;
}

.customer-body .motion-header-enter {
  animation: headerEnter 980ms var(--motion-enter) var(--motion-delay, 0ms) backwards !important;
}

.customer-body .motion-header-item-enter {
  animation: headerItemEnter 950ms var(--motion-enter) var(--motion-delay, 0ms) backwards !important;
}

.customer-body .motion-card-enter {
  animation: cardEnter 950ms var(--motion-enter) var(--motion-delay, 0ms) backwards !important;
}

.customer-body .dashboard_item.dashboard-card-enter {
  animation: cardEnter 950ms var(--motion-enter) var(--motion-delay, 840ms) backwards !important;
}

.customer-body .dashboard_item.booking-card-quick-in {
  animation: bookingCardQuickIn 260ms var(--motion-enter) var(--booking-stagger, 0ms) backwards !important;
}

.customer-body .upcoming-events-card.upcoming-card-quick-in {
  animation: upcomingCardQuickIn 320ms ease backwards !important;
}

.customer-body .quick-links-card,
.customer-body .upcoming-events-card,
.customer-body .dashboard_item,
.customer-body .customer-primary-btn,
.customer-body .dashboard-btn,
.customer-body .li-tab,
.customer-body .customer-nav-btn,
.customer-body #hamburger,
.customer-body .featured_btn {
  transition:
    transform 180ms var(--motion-interact),
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.customer-body .quick-links-card-bg {
  transition: transform 260ms var(--motion-interact);
}

@media (hover: hover) and (pointer: fine) {
  .customer-body .quick-links-card:hover { transform: translateY(-3px); }
  .customer-body .quick-links-card:hover .quick-links-card-bg { transform: scale(1.05); }
  .customer-body .upcoming-events-card:hover,
  .customer-body .dashboard_item:hover { transform: translateY(-2px); }
  .customer-body .customer-primary-btn:not(:disabled):hover,
  .customer-body .dashboard-btn:not(.disabled):hover,
  .customer-body .customer-nav-btn:not(.active):hover,
  .customer-body .dash_filter:not(.active):hover,
  .customer-body #hamburger:hover { transform: translateY(-1px); }
  .customer-body .upcoming-events-dot:hover { transform: scale(1.25); }
}

.customer-body .quick-links-card:active,
.customer-body .customer-primary-btn:not(:disabled):active,
.customer-body .dashboard-btn:not(.disabled):active,
.customer-body .customer-nav-btn:active,
.customer-body .dash_filter:active,
.customer-body .featured_btn:active,
.customer-body #hamburger:active {
  transform: scale(0.97);
}

@media (prefers-reduced-motion: reduce) {
  .customer-body *,
  .customer-body *::before,
  .customer-body *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
