/* =====================================================
   AKIDOC PRO - Custom Preloader
   ===================================================== */

body {
  margin: 0;
}

.loader-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  min-height: 100vh;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  position: relative;
}

/* Animated background gradient */
.loader-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  animation: pulseBackground 3s ease-in-out infinite;
}

.loader {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  z-index: 1;
}

/* AkiDoc Medical Cross Icon */
.akidoc-loader-icon {
  filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.5));
  animation: iconPulse 2s ease-in-out infinite;
}

/* Medical Cross - Vertical */
.cross-vertical {
  fill: #2563eb;
  animation: crossVertical 2s ease-in-out infinite;
  transform-origin: center;
}

/* Medical Cross - Horizontal */
.cross-horizontal {
  fill: #2563eb;
  animation: crossHorizontal 2s ease-in-out infinite;
  transform-origin: center;
}

/* Stethoscope Circle */
.stethoscope-circle {
  fill: none;
  stroke: #60a5fa;
  stroke-width: 2;
  opacity: 0.7;
  animation: stethoscopeCircle 2s ease-in-out infinite;
  transform-origin: 8px 8px;
}

/* Stethoscope Line */
.stethoscope-line {
  fill: none;
  stroke: #60a5fa;
  opacity: 0.7;
  animation: stethoscopeLine 2s ease-in-out infinite;
}

/* Loader Text */
.loader-text {
  font-family: 'InterDisplay', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  animation: textFade 2s ease-in-out infinite;
  text-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.loader-subtext {
  font-family: 'InterDisplay', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #94a3b8;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: subtextDots 1.5s ease-in-out infinite;
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

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

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 20px rgba(37, 99, 235, 0.5));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(37, 99, 235, 0.8));
  }
}

@keyframes crossVertical {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  25% {
    opacity: 0.8;
    transform: scaleY(0.95);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
  75% {
    opacity: 0.8;
    transform: scaleY(0.95);
  }
}

@keyframes crossHorizontal {
  0%, 100% {
    opacity: 1;
    transform: scaleX(1);
  }
  25% {
    opacity: 0.8;
    transform: scaleX(0.95);
  }
  50% {
    opacity: 1;
    transform: scaleX(1);
  }
  75% {
    opacity: 0.8;
    transform: scaleX(0.95);
  }
}

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

@keyframes stethoscopeLine {
  0%, 100% {
    opacity: 0.7;
    stroke-dasharray: 0 100;
  }
  50% {
    opacity: 1;
    stroke-dasharray: 100 0;
  }
}

@keyframes textFade {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .akidoc-loader-icon {
    width: 60px;
    height: 60px;
  }
  
  .loader-text {
    font-size: 1.5rem;
  }
  
  .loader-subtext {
    font-size: 0.75rem;
  }
}

