.splash-screen {
  position: fixed;
  /* ganti absolute -> fixed */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  /* default tetap hidden, akan diaktifkan via class */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-family: Helvetica, 'sans-serif';
  background-color: rgba(242, 243, 248, 0.8);
  /* transparan sedikit */
  /* color: #5E6278; */
  line-height: 1;
  font-size: 14px;
  font-weight: 400;
  z-index: 9999;
  /* samakan dengan loader-overlay */
  backdrop-filter: blur(2px);
  /* tambahkan efek blur */
  transition: opacity 0.3s ease;
}

.page-loading .splash-screen {
  display: flex;
  /* tampilkan saat page-loading aktif */
}

.page-loading .splash-screen span {
  /* color: #5E6278; */
  transition: none !important;
  -webkit-font-smoothing: antialiased;
}

.page-loading .splash-screen img {
  margin-left: calc(100vw - 100%);
  margin-bottom: 10px;
  /* height: 30px !important; */
}

[data-bs-theme='dark'] .splash-screen {
  background-color: rgba(21, 21, 33, 0.85);
  color: #92929f;
}

[data-bs-theme='dark'] .splash-screen span {
  color: #92929f;
}

.loader {
  width: 40px;
  aspect-ratio: 1;
  color: #3688fa;
  position: relative;
  background:
    conic-gradient(from 134deg at top, currentColor 92deg, #0000 0) top,
    conic-gradient(from -46deg at bottom, currentColor 92deg, #0000 0) bottom;
  background-size: 100% 50%;
  background-repeat: no-repeat;
  margin-bottom: 16px;
  /* beri sedikit spasi dari teks di bawahnya */
}

.loader:before {
  content: '';
  position: absolute;
  inset: 0;
  --g: currentColor 14.5px, #0000 0 calc(100% - 14.5px), currentColor 0;
  background: linear-gradient(45deg, var(--g)), linear-gradient(-45deg, var(--g));
  animation: l7 1.5s infinite cubic-bezier(0.3, 1, 0, 1);
}

@keyframes l7 {
  33% {
    inset: -10px;
    transform: rotate(0deg);
  }

  66% {
    inset: -10px;
    transform: rotate(90deg);
  }

  100% {
    inset: 0;
    transform: rotate(90deg);
  }
}

.loader-text {
  margin-bottom: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    opacity: 0.3;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.3;
  }
}

.loading svg polyline {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.loading svg polyline#back {
  fill: none;
  stroke: #ff4d5033;
}

.loading svg polyline#front {
  fill: none;
  stroke: #04b440;
  stroke-dasharray: 48, 144;
  stroke-dashoffset: 192;
  animation: dash_682 1.4s linear infinite;
}

@keyframes dash_682 {
  72.5% {
    opacity: 0;
  }

  to {
    stroke-dashoffset: 0;
  }
}
