#custom-loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Modern loading spinner */
.loading-spinner-container {
  position: relative;
  width: 100px;
  height: 100px;
  margin-bottom: 30px;
}

@media (max-width: 768px) {
  .loading-spinner-container {
    width: 80px;
    height: 80px;
  }
}

.loading-spinner-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: #1890ff;
  animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loading-spinner-circle:nth-child(1) {
  animation-delay: -0.45s;
}

.loading-spinner-circle:nth-child(2) {
  animation-delay: -0.3s;
  width: 80%;
  height: 80%;
  top: 10%;
  left: 10%;
  border-top-color: #52c41a;
}

.loading-spinner-circle:nth-child(3) {
  animation-delay: -0.15s;
  width: 60%;
  height: 60%;
  top: 20%;
  left: 20%;
  border-top-color: #faad14;
}

/* Pulse effect in the middle */
.loading-spinner-pulse {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  background-color: #1890ff;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Loading text */
.loading-text {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 500;
  color: #1890ff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.loading-dots:after {
  content: '';
  animation: dots 1.5s steps(5, end) infinite;
}

/* Animations */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
} 