.page-loader {
  width: 100%; 
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: $body-bg;
  // z-index: 999999999;
  z-index: 8;
  align-items: center;
  justify-content: center;
  display: flex;
  & .page-loader__message {
    position: absolute;
    margin-top: 40px;
  }

}

.page-loader__app {
  margin-left: 0;
  z-index: 9;

  @include media-breakpoint-up(xl) {
    margin-left: $sidebar-width;
  }
}

.page-loader__main {
  z-index: 9999999999;
}

.page-loader__spinner {
  position: relative;
  width: 50px; 
  height: 50px;


  svg {
    animation: rotate 2s linear infinite;
    transform-origin: center center;
    width: 100%; 
    height: 100%;

    position: absolute;
    top: 0;
    left: 0;

    circle {
      stroke-dasharray: 1, 200;
      stroke-dashoffset: 0;
      animation: dash 1.5s ease-in-out infinite, color 6s ease-in-out infinite;
      stroke-linecap: round;
    }
  }
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 200;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -35px;
  }
  100% {
    stroke-dasharray: 89, 200;
    stroke-dashoffset: -124px;
  }
}

@keyframes color {
  100%,
  0% {
    stroke: $red;
  }
  40% {
    stroke: $blue;
  }
  66% {
    stroke: $green;
  }
  80%,
  90% {
    stroke: $orange;
  }
}
