html {
  overflow: hidden;
}

body {
  margin: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.87);
  background-color: #000000;
}

#app {
  width: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    #4a4a4a 0%,
    #3a3a3a 40%,
    #2a2a2a 70%,
    #0a0a0a 100%
  );
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

#preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.preloader-content {
  text-align: center;
  color: white;
}

.preloader-spinner {
  width: 60px;
  height: 60px;
  border: 6px solid rgba(255, 255, 255, 0.3);
  border-top: 6px solid #ffffff;
  border-radius: 50%;
  margin: 0 auto 20px;
  animation: spin 1s linear infinite;
}

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

.preloader-text {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
  letter-spacing: 2px;
}

.preloader-progress-bar {
  width: 350px;
  height: 14px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  margin: 0 auto 15px;
  overflow: hidden;
}

.preloader-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4caf50, #8bc34a);
  border-radius: 12px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(76, 175, 80, 0.8);
}

.preloader-percent {
  font-size: 18px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .preloader-content {
    padding: 0 20px;
  }

  .preloader-spinner {
    width: 50px;
    height: 50px;
    border-width: 5px;
    margin-bottom: 15px;
  }

  .preloader-text {
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 1px;
  }

  .preloader-progress-bar {
    width: 280px;
    max-width: 90vw;
    height: 12px;
    margin-bottom: 12px;
  }

  .preloader-progress-fill {
    height: 12px;
  }

  .preloader-percent {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .preloader-spinner {
    width: 45px;
    height: 45px;
    border-width: 4px;
    margin-bottom: 12px;
  }

  .preloader-text {
    font-size: 16px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
  }

  .preloader-progress-bar {
    width: 250px;
    max-width: 85vw;
    height: 10px;
    margin-bottom: 10px;
  }

  .preloader-progress-fill {
    height: 10px;
  }

  .preloader-percent {
    font-size: 14px;
  }
}
