/* Loader */
.loader-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 102, 0, 0.3);
  border-radius: 50%;
  border-top-color: var(--primary-color, #ff6600);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Blocking Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 14, 23, 0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  backdrop-filter: blur(10px);
}

.loader-content {
  width: 80%;
  max-width: 500px;
  text-align: center;
}

.loader-content h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #fff;
}

.progress-bar-container {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff9f43, #ff6b6b);
  width: 0%;
  transition: width 0.3s ease-out;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(255, 159, 67, 0.5);
}

.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #a0a5b5;
}

#import-progress-text {
  font-weight: bold;
  color: #fff;
}

/* Error State */
.error-message {
  text-align: center;
  padding: 2rem;
  color: #fff;
  width: 100%;
}

.error-icon {
  font-size: 3rem;
  color: var(--primary-color, #ff6600);
  margin-bottom: 1rem;
}

.retry-btn {
  margin-top: 1rem;
  background: var(--primary-color, #ff6600);
  border: none;
  padding: 0.8rem 2rem;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}
