/* Efek Glassmorphism & Background Modern Dark Canvas */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #151e2a 0%, #0c1117 70%, #070a0e 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
  color: #fff;
  text-align: center;
  transition: opacity 0.4s ease-in-out;
}

/* Animasi Floating & Glow untuk Logo BMI */
.logo-container {
  width: 110px;
  height: 110px;
  background: #111720;
  border-radius: 50%;
  border: 3px solid #7f6000;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 25px rgba(127, 96, 0, 0.45), inset 0 0 15px rgba(226, 240, 217, 0.15);
  margin-bottom: 22px;
  animation: floatLogo 3.2s ease-in-out infinite;
}

.logo-container img {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.6));
}

@keyframes floatLogo {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 0 22px rgba(127, 96, 0, 0.45), 0 10px 20px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: 0 0 35px rgba(127, 96, 0, 0.7), 0 20px 25px rgba(0, 0, 0, 0.3);
  }
}

/* Teks Elegan Brand */
.company-name {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin: 5px 0;
  background: linear-gradient(135deg, #ffffff 30%, #e2f0d9 70%, #d4a82a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.loading-text {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 1.8px;
  margin: 12px 0 8px;
  color: #e2f0d9;
  font-weight: 600;
  animation: pulseText 2s infinite ease-in-out;
}

@keyframes pulseText {
  0%, 100% {
    opacity: 0.7;
    text-shadow: 0 0 6px rgba(226, 240, 217, 0.4);
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 15px rgba(226, 240, 217, 0.8), 0 0 25px rgba(127, 96, 0, 0.5);
  }
}

/* Progress Bar Dinamis & Modern */
.progress-bar {
  width: 55%;
  max-width: 540px;
  height: 20px;
  background: #141b24;
  border-radius: 12px;
  margin-top: 14px;
  border: 1.5px solid rgba(127, 96, 0, 0.45);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.7), 0 0 16px rgba(127, 96, 0, 0.25);
  position: relative;
}

.progress-bar .progress {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  background: repeating-linear-gradient(
    45deg,
    #7f6000 0px,
    #7f6000 14px,
    #947206 14px,
    #947206 28px
  );
  background-size: 39.6px 39.6px;
  box-shadow: 0 0 14px rgba(127, 96, 0, 0.6);
  transition: width 0.12s linear;
  position: relative;
  animation: moveStripes 1s linear infinite;
}

@keyframes moveStripes {
  0% { background-position: 0 0; }
  100% { background-position: 39.6px 0; }
}

/* Truk yang Berada di Ujung Progress */
.progress-bar .progress::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -30px;
  width: 40px;
  height: 40px;
  background-image: url("https://cdn-icons-png.flaticon.com/512/3512/3512274.png");
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.6));
  animation: truckBounce 0.4s infinite alternate ease-in-out;
}

@keyframes truckBounce {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

/* Teks Persentase */
.loading-pct {
  font-family: 'Inter', 'Segoe UI', monospace;
  font-size: 1.35rem;
  color: #e2f0d9;
  margin-top: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 10px rgba(226, 240, 217, 0.5);
}

/* Slogan Fade In */
.slogan {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 0.92rem;
  margin-top: 8px;
  color: #94a3b8;
  letter-spacing: 1.2px;
  animation: fadeInSlogan 3.5s infinite alternate ease-in-out;
}

@keyframes fadeInSlogan {
  0% { opacity: 0.5; letter-spacing: 1px; }
  100% { opacity: 1; letter-spacing: 2px; color: #f8fafc; }
}

@media (max-width: 500px) {
  .company-name { font-size: 1.45rem; }
  .loading-text { font-size: 0.95rem; }
  .logo-container { width: 85px; height: 85px; }
  .logo-container img { width: 64px; height: 64px; }
  .progress-bar { width: 85%; height: 16px; }
  .progress-bar .progress::after {
    width: 32px;
    height: 32px;
    top: -24px;
    right: -14px;
  }
  .loading-pct { font-size: 1.15rem; }
}