/* ===== EXTRACTED: DEVOPS LOADER STYLES (Single Source of Truth) ===== */

.devops-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.devops-loader.fade-out {
  opacity: 0;
  transform: scale(1.1);
  pointer-events: none;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 600px;
  width: 100%;
  padding: 40px;
}

/* Cloud Infrastructure Animation */
.cloud-infrastructure {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 400px;
  margin-bottom: 30px;
}

.cloud {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 32px;
  animation: cloudFloat 3s ease-in-out infinite;
}

.cloud-1 {
  animation-delay: 0s;
  color: #3b82f6;
}

.cloud-2 {
  animation-delay: 1s;
  color: #06b6d4;
}

.cloud-3 {
  animation-delay: 2s;
  color: #8b5cf6;
}

.cloud-dots {
  display: flex;
  gap: 4px;
}

.cloud-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  animation: cloudDotPulse 1.5s ease-in-out infinite;
}

.cloud-dots span:nth-child(1) { animation-delay: 0s; }
.cloud-dots span:nth-child(2) { animation-delay: 0.3s; }
.cloud-dots span:nth-child(3) { animation-delay: 0.6s; }

.server-status {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #64748b;
  opacity: 0.4;
}

.status-dot.active {
  background: #22c55e;
  opacity: 1;
  animation: statusPulse 2s ease-in-out infinite;
}

.status-dot.loading {
  background: #f59e0b;
  animation: statusLoading 1s ease-in-out infinite;
}

/* CI/CD Pipeline Animation */
.pipeline-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  max-width: 500px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pipeline-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.4;
  transition: all 0.5s ease;
}

.pipeline-stage.active {
  opacity: 1;
  transform: scale(1.1);
}

.stage-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e293b, #334155);
  border: 2px solid #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #64748b;
  position: relative;
  overflow: hidden;
  transition: all 0.5s ease;
}

.pipeline-stage.active .stage-icon {
  border-color: #3b82f6;
  color: #3b82f6;
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

.stage-icon::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
  transition: left 0.5s ease;
}

.pipeline-stage.active .stage-icon::after {
  left: 100%;
}

.stage-progress {
  width: 40px;
  height: 4px;
  background: #334155;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.stage-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: left 0.8s ease;
}

.pipeline-stage.active .stage-progress::after {
  left: 0;
}

.stage-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.5s ease;
}

.pipeline-stage.active .stage-label {
  color: #3b82f6;
}

.pipeline-connector {
  width: 30px;
  height: 2px;
  background: #334155;
  position: relative;
  overflow: hidden;
}

.connector-flow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  transition: left 0.5s ease;
}

.pipeline-connector.active .connector-flow {
  left: 0;
}

/* Loading Text Animation */
.loading-text-container {
  text-align: center;
  margin: 20px 0;
}

.loading-title {
  margin-bottom: 15px;
}

.loading-title .gradient-text {
  font-size: 36px;
  font-weight: 900;
  background: linear-gradient(135deg, #3b82f6, #06b6d4, #8b5cf6);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientFlow 3s ease-in-out infinite;
}

.loading-title .title-subtitle {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  margin-top: 5px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.loading-process {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.process-text {
  font-size: 16px;
  color: #94a3b8;
  font-weight: 500;
  min-width: 200px;
  text-align: left;
}

.loading-dots {
  display: flex;
  gap: 4px;
}

.loading-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3b82f6;
  animation: loadingDotBounce 1.4s ease-in-out infinite both;
}

.loading-dots span:nth-child(1) { animation-delay: 0s; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

/* Progress Bar */
.main-progress-container {
  width: 100%;
  max-width: 400px;
  margin: 20px 0;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #1e293b;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4, #8b5cf6);
  background-size: 300% 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
  animation: progressGradient 2s ease-in-out infinite;
}

.progress-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
  transform: translateX(-100%);
  animation: progressGlow 2s ease-in-out infinite;
}

.progress-percentage {
  text-align: center;
  margin-top: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #3b82f6;
  text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Container Stats */
.container-stats {
  display: flex;
  justify-content: space-around;
  width: 100%;
  max-width: 400px;
  margin: 20px 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  transition: all 0.5s ease;
}

.stat-item.active {
  opacity: 1;
  transform: scale(1.1);
}

.stat-item i {
  font-size: 24px;
  color: #64748b;
  transition: color 0.5s ease;
}

.stat-item.active i {
  color: #3b82f6;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #f8fafc;
  text-shadow: 0 0 10px rgba(248, 250, 252, 0.3);
}

.stat-label {
  font-size: 12px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Floating Particles */
.floating-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  font-size: 20px;
  color: #334155;
  opacity: 0.3;
  animation: particleFloat 15s linear infinite;
}

.particle-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  color: #f59e0b;
}

.particle-2 {
  top: 60%;
  left: 80%;
  animation-delay: 3s;
  color: #06b6d4;
}

.particle-3 {
  top: 30%;
  left: 70%;
  animation-delay: 6s;
  color: #8b5cf6;
}

.particle-4 {
  top: 80%;
  left: 20%;
  animation-delay: 9s;
  color: #3b82f6;
}

.particle-5 {
  top: 10%;
  left: 60%;
  animation-delay: 12s;
  color: #22c55e;
}

.particle-6 {
  top: 70%;
  left: 40%;
  animation-delay: 2s;
  color: #ef4444;
}

/* Animations */
@keyframes cloudFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

@keyframes cloudDotPulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

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

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes loadingDotBounce {
  0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
  40% { transform: scale(1.2); opacity: 1; }
}

@keyframes progressGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes particleFloat {
  0% { transform: translateY(0px) rotate(0deg); opacity: 0.3; }
  25% { opacity: 0.6; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.3; }
  75% { opacity: 0.6; }
  100% { transform: translateY(0px) rotate(360deg); opacity: 0.3; }
}

