

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loading);
  transition: opacity var(--transition-base);
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

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

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-8);
  animation: loading-spin 1s linear infinite;
}

@keyframes loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-title {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 0 0 var(--space-3);
  letter-spacing: -0.5px;
}

.loading-message {
  font-size: var(--text-base);
  margin: 0;
  opacity: 0.9;
}



.submit-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loading);
  transition: opacity var(--transition-base);
}

.submit-loading-overlay.active {
  display: flex;
}

.submit-loading-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.submit-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-200);
  border-top-color: var(--primary-color);
  border-radius: var(--radius-full);
  margin: 0 auto var(--space-4);
  animation: loading-spin 0.8s linear infinite;
}

.submit-loading-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  color: var(--gray-900);
}

.submit-loading-message {
  font-size: var(--text-sm);
  margin: 0;
  color: var(--gray-600);
}



.upload-loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loading);
  transition: opacity var(--transition-base);
}

.upload-loading-overlay.active {
  display: flex;
}

.upload-loading-content {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.upload-loading-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto var(--space-4);
  color: var(--primary-color);
}

.upload-loading-title {
  font-size: var(--text-xl);
  font-weight: 600;
  margin: 0 0 var(--space-2);
  color: var(--gray-900);
}

.upload-loading-message {
  font-size: var(--text-sm);
  margin: 0 0 var(--space-6);
  color: var(--gray-600);
}

.upload-progress-container {
  width: 100%;
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-progress-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.upload-progress-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.upload-file-count {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: var(--space-2);
}

.upload-size-info {
  font-size: var(--text-xs);
  color: var(--primary-color);
  margin-top: var(--space-1);
  font-weight: 500;
}
