.app-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f7f9f5;
  color: var(--text-primary);
  transition:
    opacity 0.32s ease,
    visibility 0.32s ease;
}

.app-loader.is-hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.loading-mascot {
  width: 172px;
  height: 180px;
  background: url("../../assets/01_actions/04_laptop.png") center / contain
    no-repeat;
  animation: mascotFloat 1.25s ease-in-out infinite;
}

.app-loader strong {
  margin-top: 5px;
  color: var(--primary-dark);
  font-size: 18px;
}

.app-loader > span {
  margin-top: 7px;
  color: var(--text-secondary);
  font-size: 12px;
}

.loading-dots {
  display: flex;
  gap: 5px;
  margin-top: 18px;
}

.loading-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  animation: loadingDot 1s ease-in-out infinite;
}

.loading-dots i:nth-child(2) {
  animation-delay: 0.14s;
}
.loading-dots i:nth-child(3) {
  animation-delay: 0.28s;
}

@keyframes mascotFloat {
  50% {
    transform: translateY(-7px);
  }
}

@keyframes loadingDot {
  0%,
  60%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-mascot,
  .loading-dots i {
    animation: none;
  }
}
