/* ======================================================
   BASE
====================================================== */

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
}

body {
  background-color: #ffffff;
}

body.theme-dark {
  background-color: #111111;
}


/* ======================================================
   PRELOADER
====================================================== */

.preloader {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background-color: #ffffff;
  z-index: 9999;
}

.theme-dark .preloader {
  background-color: #111111;
  color: #ffffff;
}

.preloader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.preloader-img {
  animation: animloaderimg 3s ease-in-out infinite;
}

.preloader .loader {
  width: 140px;
  height: 4px;
  position: relative;
  background: rgba(0, 0, 0, 0.15);
  overflow: hidden;
  border-radius: 50rem;
}

.theme-dark .preloader .loader {
  background: rgba(255, 255, 255, 0.15);
}

.preloader .loader::after {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline-start: 0;
  width: 30px;
  height: 100%;
  background: #000000;
  animation: animloader 2s linear infinite;
  border-radius: 50rem;
}

.theme-dark .preloader .loader::after {
  background: #ffffff;
}


/* ======================================================
   HEADER (Skeleton)
====================================================== */

.header {
  position: fixed;
  inset-block-start: 0;
  inset-inline-start: 0;
  inline-size: 100%;
  z-index: 100;
}

.header-container {
  max-inline-size: 1200px;
  margin-inline: auto;
  padding: 1.25rem 1.6rem;
  background-color: #ffffff;
  box-shadow: 0 6px 12px -3px rgba(4, 97, 165, 0.1);
  border-radius: 0 0 10px 10px;
}

.theme-dark .header-container {
  background-color: #222222;
  color: #ffffff;
}

.header .logo {
  max-height: 30px;
}

@media (max-width: 1199px) {
  .header {
    display: none;
  }
}


/* ======================================================
   PLACEHOLDERS (Skeleton UI)
====================================================== */

.placeholder {
  height: 0.85rem;
  width: 3rem;
  background-color: #f5f5f5;
  border-radius: 0.3rem;
}

.placeholder-wide {
  width: 12rem;
}

.theme-dark .placeholder {
  background-color: #555555;
}


/* ======================================================
   FLEX HELPERS
====================================================== */

.d-flex {
  display: flex;
}

.flex-column {
  flex-direction: column;
}

.align-items-center {
  align-items: center;
}

.justify-content-center {
  justify-content: center;
}

.justify-content-between {
  justify-content: space-between;
}

.gap-3 {
  gap: 1rem;
}

.gap-4 {
  gap: 1.5rem;
}

.gap-5 {
  gap: 3rem;
}


/* ======================================================
   ANIMATIONS
====================================================== */

@keyframes animloader {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(140px);
  }
}

@keyframes animloaderimg {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1rem);
  }
  100% {
    transform: translateY(0);
  }
}
