.wok-ui-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1rem;
  z-index: 2000;
  cursor: wait;
  color: var(--color-text-secondary);
  overflow: hidden;
  animation-name: loading-blur;
  animation-duration: 2s;
  animation-timing-function: ease-in;
  animation-fill-mode: forwards;

  .wok-ui-loading-spinner {
    &>svg {
      animation-name: spinner;
      animation-duration: 1s;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
      height: 2rem !important;
      width: 2rem !important;
    }
  }
}

@keyframes spinner {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes loading-blur {
  0% {
    background-color: rgba(255, 255, 255, 0);
  }

  80% {
    background-color: rgba(255, 255, 255, 0.8);
  }

  100% {
    background-color: rgba(255, 255, 255, 0.8);
  }
}