/* Premium Medical Scan Loader */

.medical-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Scanning Device Animation */
.scan-device {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Outer rotating ring - represents medical scanner */
.scanner-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #FFC457;
    border-right: 4px solid #FFC457;
    border-radius: 50%;
    animation: rotateScanner 2s linear infinite;
}

.scanner-ring-2 {
    position: absolute;
    width: 180px;
    height: 180px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-bottom: 3px solid #FFC457;
    border-left: 3px solid #FFC457;
    border-radius: 50%;
    animation: rotateScanner 2.5s linear infinite reverse;
}

/* Replace previous .medical-cross or .medical-logo code with this */
.medical-logo {
  position: relative;
  width: 300px;     
  height: 300px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.1) 0%, transparent 70%);
  box-shadow: 0 0 20px rgba(255, 242, 0, 0.3);

}

.medical-logo video {
  width: 300%;
  padding: 5px;
  object-fit: cover;
  z-index: 5;
  background-color: transparent;
}



/* Responsive adjustments to maintain proportions */
@media screen and (max-width: 767px) {
  .medical-logo {
    width: 90px;
    height: 90px;
  }
}

@media screen and (max-width: 500px) {
  .medical-logo {
    width: 70px;
    height: 70px;
  }
}


/* Medical cross in center */
/* .medical-cross {
    position: relative;
    width: 80px;
    height: 80px;
    z-index: 2;
}

.medical-cross::before,
.medical-cross::after {
    content: '';
    position: absolute;
    background: linear-gradient(135deg, #FFC457 0%, #0099ff 100%);
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.medical-cross::before {
    width: 20px;
    height: 80px;
    left: 50%;
    transform: translateX(-50%);
    animation: pulseCross 1.5s ease-in-out infinite;
}

.medical-cross::after {
    width: 80px;
    height: 20px;
    top: 50%;
    transform: translateY(-50%);
    animation: pulseCross 1.5s ease-in-out infinite 0.2s;
} */

/* Scanning beam effect */
/* .scan-beam {
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%,
        rgba(0, 212, 255, 0.8) 20%,
        rgba(0, 212, 255, 1) 50%,
        rgba(0, 212, 255, 0.8) 80%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.8), 0 0 20px rgba(0, 212, 255, 0.5);
    animation: scanBeam 2s linear infinite;
    transform-origin: center;
} */

/* Pulse circles */
.pulse-circle {
    position: absolute;
    border: 2px solid rgba(0, 212, 255, 0.4);
    border-radius: 50%;
    animation: pulseExpand 2s ease-out infinite;
}

.pulse-circle:nth-child(1) {
    width: 140px;
    height: 140px;
    animation-delay: 0s;
}

.pulse-circle:nth-child(2) {
    width: 140px;
    height: 140px;
    animation-delay: 0.6s;
}

.pulse-circle:nth-child(3) {
    width: 140px;
    height: 140px;
    animation-delay: 1.2s;
}

/* Premium Brand Text */
.premium-brand {
    text-align: center;
    font-family: 'Inter', 'Afacad', sans-serif;
}

.brand-main {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 3px;
    margin: 0;
    background: linear-gradient(135deg, #ffffff 0%, #FFC457 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
    text-transform: uppercase;
    filter: drop-shadow(0 2px 10px rgba(0, 212, 255, 0.3));
}

.brand-tagline {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 8px;
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    animation: fadeInOut 2s ease-in-out infinite;
}

/* Loading dots */
.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 15px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #FFC457;
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

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

/* Percentage Counter */
.scan-percentage {
    font-size: 20px;
    font-weight: 600;
    color: #FFC457;
    letter-spacing: 2px;
    margin-top: 20px;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* Animations */
@keyframes rotateScanner {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes scanBeam {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulseCross {
    0%, 100% {
        opacity: 0.6;
        box-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
    }
    50% {
        opacity: 1;
        box-shadow: 0 0 30px rgba(0, 212, 255, 0.8);
    }
}

@keyframes pulseExpand {
    0% {
        width: 80px;
        height: 80px;
        opacity: 1;
    }
    100% {
        width: 240px;
        height: 240px;
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 200% center;
    }
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

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

/* Responsive Design */
@media screen and (max-width: 767px) {
    .scan-device {
        width: 200px;
        height: 200px;
    }
    
    .scanner-ring {
        width: 180px;
        height: 180px;
    }
    
    .scanner-ring-2 {
        width: 140px;
        height: 140px;
    }
    
    .medical-cross {
        width: 60px;
        height: 60px;
    }
    
    .medical-cross::before {
        width: 16px;
        height: 60px;
    }
    
    .medical-cross::after {
        width: 60px;
        height: 16px;
    }
    
    .brand-main {
        font-size: 36px;
        letter-spacing: 2px;
    }
    
    .brand-tagline {
        font-size: 11px;
        letter-spacing: 5px;
    }
}

@media screen and (max-width: 500px) {
    .scan-device {
        width: 160px;
        height: 160px;
    }
    
    .scanner-ring {
        width: 140px;
        height: 140px;
    }
    
    .scanner-ring-2 {
        width: 110px;
        height: 110px;
    }
    
    .medical-cross {
        width: 50px;
        height: 50px;
    }
    
    .medical-cross::before {
        width: 14px;
        height: 50px;
    }
    
    .medical-cross::after {
        width: 50px;
        height: 14px;
    }
    
    .brand-main {
        font-size: 32px;
        letter-spacing: 1px;
    }
    
    .brand-tagline {
        font-size: 10px;
        letter-spacing: 4px;
    }
    
    .scan-percentage {
        font-size: 16px;
    }
}

/* Premium glassmorphism effect overlay */
.medical-loader-container::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 3s ease-in-out infinite;
}

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

