<!-- A globally-mounted loading overlay controlled by util/loader.ts. -->
<script setup lang="ts"></script>
<template>
  <div class="loading-overlay">
    <div class="loader-indicator"></div>
  </div>
</template>
<style lang="css">
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-indicator {
  width: 100px;
  height: 5px;
  background-color: white;
  border-radius: 5px;
  animation: 1s ease-in-out 0s loader-movement;
  animation-iteration-count: infinite;
}

@keyframes loader-movement {
  0% {
    margin-left: -50%;
  }

  50% {
    margin-left: 50%;
  }

  100% {
    margin-left: -50%;
  }
}
</style>
