body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f0f2f5;
}

/* Loader Styles - Inlined to ensure immediate display */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loader-container {
  width: 600px;
  text-align: center;
  padding: 40px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
  margin: 25px 0;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background-color: #0d6efd;
  background-image: linear-gradient(45deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
  background-size: 1rem 1rem;
  transition: width 0.5s ease, background-color 0.5s ease;
  border-radius: 4px;
  animation: progress-bar-stripes 1s linear infinite;
}

.bg-info {
  background-color: #0d6efd !important;
}

.bg-warning {
  background-color: #fd7e14 !important;
}

.bg-purple {
  background-color: #6f42c1 !important;
}

.bg-success {
  background-color: #198754 !important;
}

.bg-brown {
  background-color: #b5651d !important;
}

.bg-pink {
  background-color: #d63384 !important;
}

.bg-gray {
  background-color: #6c757d !important;
}

@keyframes progress-bar-stripes {
  0% {
    background-position: 1rem 0;
  }

  100% {
    background-position: 0 0;
  }
}

.stage-indicators {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #adb5bd;
  margin-bottom: 10px;
  font-weight: 500;
}

.stage-item {
  position: relative;
  transition: color 0.3s ease;
}

.stage-item.active {
  color: #0d6efd;
  font-weight: 700;
}

/* Transitions */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.8s ease;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

/* Error Modal Styles */
.error-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: sans-serif;
}

.error-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  max-width: 500px;
  text-align: center;
}

.error-modal-title {
  color: #dc3545;
  margin-top: 0;
  margin-bottom: 1rem;
}

.error-modal-text {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.error-modal-details {
  background: #fff3cd;
  color: #856404;
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid #ffeeba;
  font-family: monospace;
  text-align: left;
  overflow-x: auto;
  word-break: break-all;
}

.error-modal-button {
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: #0d6efd;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
}

.error-modal-button:hover {
  background: #0b5ed7;
}
