@import url("style.css");
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1d2087 0%, #2d30a7 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

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

.loading-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 30px;
  animation: pulse 2s ease-in-out infinite;
}

.loading-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.loading-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.loading-subtitle {
  font-size: var(--body-size);
  line-height: var(--body-line-height);
  margin-bottom: var(--body-size);
}

.progress-container {
  width: 300px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #fff 0%, #e0e0e0 100%);
  border-radius: 10px;
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
}

.loading-status {
  font-size: 12px;
  opacity: 0.7;
  min-height: 20px;
}

@media screen and (max-width: 600px) {
  .loading-title {
    font-size: 24px;
  }

  .progress-container {
    width: 250px;
  }

  .loading-logo {
    width: 60px;
    height: 60px;
  }
}

body.loading #main-content {
  visibility: hidden;
}

body.loading {
  overflow: hidden;
}
