/* Home Page Fade Out */
.home-page-fadeout {
  opacity: 0 !important;
  transform: translateY(-20px) !important;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* AI Loading Animation Keyframes */
@keyframes aiThinking {
  0%, 20% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
  60%, 100% { opacity: 0.3; transform: scale(0.8); }
}

@keyframes aiPulse {
  0%, 100% { opacity: 0.6; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}

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

@keyframes aiSlideIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes progressGrow {
  0% { width: 0%; }
  100% { width: var(--target-width); }
}

.ai-loading-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: #FAF9F6 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.ai-loading-overlay.show {
  opacity: 1 !important;
  visibility: visible !important;
  animation: fadeInOverlay 0.3s ease-out !important;
}

.ai-loading-content {
  max-width: 480px !important;
  width: 100% !important;
  padding: 2rem !important;
  text-align: center !important;
  transform: translateY(-17.5%) !important;
}

@keyframes fadeInOverlay {
  0% {
    opacity: 0;
    background: rgba(255, 255, 255, 0);
  }
  100% {
    opacity: 1;
    background: #ffffff;
  }
}

.ai-loading-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 1.5rem !important;
  padding: 2rem !important;
  background: rgba(251, 254, 251, 0.9) !important;
  border: 1px solid #EFE5DC !important;
  border-radius: 1rem !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  animation: aiFloatUp 3s ease-in-out infinite !important;
}

.ai-thinking-dots {
  display: flex !important;
  gap: 0.5rem !important;
  align-items: center !important;
}

.ai-thinking-dot {
  width: 12px !important;
  height: 12px !important;
  background: #D0B8AC !important;
  border-radius: 50% !important;
  animation: aiThinking 1.5s ease-in-out infinite !important;
}

.ai-thinking-dot:nth-child(2) {
  animation-delay: 0.2s !important;
}

.ai-thinking-dot:nth-child(3) {
  animation-delay: 0.4s !important;
}

.ai-loading-text {
  color: #4A4A4A !important;
  font-size: 1.125rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  animation: aiPulse 2s ease-in-out infinite !important;
}

.ai-loading-subtext {
  color: #6B6B6B !important;
  font-size: 0.875rem !important;
  text-align: center !important;
  max-width: 280px !important;
  line-height: 1.5 !important;
}

.ai-progress-bar {
  width: 200px !important;
  height: 3px !important;
  background: #EFE5DC !important;
  border-radius: 2px !important;
  overflow: hidden !important;
  position: relative !important;
}

.ai-progress-fill {
  height: 100% !important;
  background: linear-gradient(90deg, #D0B8AC, #F3D8C7, #D0B8AC) !important;
  background-size: 200% 100% !important;
  border-radius: 2px !important;
  width: 60% !important;
  transform: translateX(-100%) !important;
  animation: aiGradient 2s linear infinite, progressSlide 3s ease-in-out infinite !important;
}

/* Material Design 3 Loading Interface */
.ai-loading-screen {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100vh !important;
  padding: 2rem !important;
  animation: aiSlideIn 0.4s cubic-bezier(0.2, 0, 0, 1) !important;
}

/* Material Design 3 Circular Progress */
.ai-circular-progress {
  width: 48px !important;
  height: 48px !important;
  margin-bottom: 32px !important;
  position: relative !important;
}

.ai-circular-progress svg {
  width: 100% !important;
  height: 100% !important;
  transform: rotate(-90deg) !important;
}

.ai-circular-progress circle {
  fill: none !important;
  stroke-width: 4 !important;
  stroke-linecap: round !important;
}

.ai-circular-track {
  stroke: #e0e0e0 !important;
}

.ai-circular-fill {
  stroke: #6750a4 !important;
  stroke-dasharray: 144 !important;
  stroke-dashoffset: 144 !important;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.2, 0, 0, 1) !important;
  animation: aiCircularRotate 2s linear infinite !important;
}

@keyframes aiCircularRotate {
  0% {
    stroke-dasharray: 0 144;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 72 144;
    stroke-dashoffset: -18;
  }
  100% {
    stroke-dasharray: 72 144;
    stroke-dashoffset: -90;
  }
}

/* Material Design 3 Typography */
.ai-status-text {
  color: #49454f !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  text-align: center !important;
  max-width: 280px !important;
  margin: 0 !important;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  letter-spacing: 0.1px !important;
}

.ai-step-label {
  color: #1c1b1f !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 24px !important;
  text-align: center !important;
  margin-bottom: 8px !important;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  letter-spacing: 0.15px !important;
}

/* 3-Step Progress Styles */
.progress-steps {
  width: 100% !important;
  max-width: 400px !important;
  margin: 0 auto !important;
}

.progress-step {
  opacity: 1 !important;
  transition: opacity 0.3s ease !important;
}

.step-indicator {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.step-loading {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.step-success {
  display: flex;
  align-items: center !important;
  justify-content: center !important;
}

.step-text {
  margin-left: 12px !important;
}

.step-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1f2937 !important;
  margin-bottom: 4px !important;
}

.step-description {
  font-size: 14px !important;
  color: #6b7280 !important;
  line-height: 1.4 !important;
}

/* Animation for spinning loading icons */
@keyframes spin {
  0% {
    transform: rotate(0deg) !important;
  }
  100% {
    transform: rotate(360deg) !important;
  }
}

.animate-spin {
  animation: spin 1s linear infinite !important;
}

/* Remove old unused styles */
.ai-logo-section,
.ai-logo,
.ai-title,
.ai-progress-container,
.ai-progress-track,
#ai-progress-fill,
.ai-progress-percentage {
  display: none !important;
}
