/* Animations and Keyframes */

/* Enhanced Glass Morphism Animations */
@keyframes glassReflectionShift {
    0%, 100% { 
        background: linear-gradient(135deg, 
            rgba(255, 255, 255, 0.4) 0%, 
            rgba(255, 255, 255, 0.1) 25%, 
            transparent 50%, 
            rgba(255, 255, 255, 0.05) 75%, 
            transparent 100%);
    }
    50% { 
        background: linear-gradient(225deg, 
            rgba(255, 255, 255, 0.3) 0%, 
            rgba(255, 255, 255, 0.05) 30%, 
            transparent 60%, 
            rgba(255, 255, 255, 0.1) 80%, 
            transparent 100%);
    }
}

@keyframes glassFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.05);
    }
    50% { 
        transform: translateY(-8px) rotate(1deg); 
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    }
}

@keyframes glassPulse {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 255, 255, 0.2);
        transform: scale(1.02);
    }
}

@keyframes glassBreathe {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2), 0 0 30px rgba(255, 255, 255, 0.2);
    }
}

@keyframes glassGlow {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 20px rgba(99, 102, 241, 0.2);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 30px rgba(99, 102, 241, 0.4);
    }
}

@keyframes titleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 20px var(--color-primary), 0 0 40px var(--color-primary); }
    100% { text-shadow: 0 0 30px var(--color-primary), 0 0 60px var(--color-primary); }
}

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

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

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

@keyframes buttonGlow {
    0%, 100% { 
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 0 20px rgba(99, 102, 241, 0.2);
    }
    50% { 
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25), 0 0 30px rgba(99, 102, 241, 0.4);
    }
}

@keyframes glassRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes glassShimmer {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }
    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

/* Boot and Login Animations */
@keyframes bootBackground { 
    0% { background: #000; } 
    50% { background: linear-gradient(135deg, #0a0f16 0%, #1a1f2a 50%, #0a0f16 100%); } 
    100% { background: linear-gradient(135deg, #0a0f16 0%, #1a1f2a 50%, #0a0f16 100%); } 
}

@keyframes bootLogoGlow { 
    0% { filter: drop-shadow(0 0 20px var(--primary-color)); } 
    100% { filter: drop-shadow(0 0 30px var(--primary-color)) drop-shadow(0 0 40px var(--primary-color)); } 
}

@keyframes textGlow { 
    0% { text-shadow: 0 0 20px var(--primary-color); } 
    100% { text-shadow: 0 0 30px var(--primary-color), 0 0 40px var(--primary-color); } 
}

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

@keyframes loginFadeIn { 
    0% { opacity: 0; } 
    100% { opacity: 1; } 
}

@keyframes windowOpen { 
    0% { opacity: 0; transform: scale(0.95); } 
    100% { opacity: 1; transform: scale(1); } 
}

@keyframes windowClose { 
    0% { opacity: 1; transform: scale(1); } 
    100% { opacity: 0; transform: scale(0.95); } 
}

@keyframes desktopIconPop { 
    0% { transform: scale(0.8); opacity: 0; } 
    100% { transform: scale(1); opacity: 1; } 
}

/* Window Animations */
@keyframes windowSlideIn {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes scanLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Background Animations */
@keyframes backgroundShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Network and Circuit Animations */
@keyframes connectionPulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes typing {
    0%, 50% { border-color: var(--primary-color); }
    51%, 100% { border-color: transparent; }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing-effect {
    border-right: 2px solid var(--primary-color);
    animation: typing 1s infinite, blink 0.5s infinite;
}

@keyframes circuitFlow {
    0% { 
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    50% { 
        opacity: 1;
    }
    100% { 
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

/* Particle System Animations */
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes rainFall {
    0% {
        transform: translateY(-100px) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(20px);
        opacity: 0;
    }
}

@keyframes stormFall {
    0% {
        transform: translateY(-100px) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) translateX(-30px) rotate(720deg);
        opacity: 0;
    }
}

@keyframes calmFloat {
    0% {
        transform: translateY(100vh) translateX(0) scale(0.8);
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(50px) scale(1.2);
        opacity: 0;
    }
}

@keyframes danceFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(-50px) rotate(360deg);
        opacity: 0;
    }
}

/* Data Flow Animations */
@keyframes dataFlow {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateX(calc(100vw + 100px));
        opacity: 0;
    }
}

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

/* Logo and UI Animations */
@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

@keyframes titleGlow {
    0% { text-shadow: 0 0 20px var(--primary-color); }
    100% { text-shadow: 0 0 30px var(--primary-color), 0 0 40px var(--primary-color); }
}

@keyframes progressGlow {
    0% { box-shadow: 0 0 10px var(--primary-color); }
    100% { box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color); }
}

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

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

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

@keyframes loginGlow {
    0% { box-shadow: 0 0 0 0 var(--primary-glow); }
    100% { box-shadow: 0 0 0 20px transparent; }
}

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

@keyframes avatarFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

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

@keyframes loginLogoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes audioControlsFadeIn {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Spin Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background Spinner Animation */
@keyframes backgroundSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Solar Orbit Animation */
@keyframes solarOrbit {
    0% { 
        transform: translate(-50%, -50%) rotate(0deg) translateX(var(--orbit-radius)) rotate(0deg); 
    }
    100% { 
        transform: translate(-50%, -50%) rotate(360deg) translateX(var(--orbit-radius)) rotate(-360deg); 
    }
}

/* Enhanced Sun Pulse Animation */
@keyframes sunPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 
            0 0 60px #ffd700,
            0 0 120px #ff8c00,
            0 0 180px #ff4500,
            0 0 240px rgba(255, 69, 0, 0.5),
            0 0 300px rgba(255, 69, 0, 0.3),
            0 0 360px rgba(255, 69, 0, 0.2),
            inset 0 0 50px rgba(255, 215, 0, 0.6),
            inset 0 0 25px rgba(255, 255, 255, 0.4);
    }
    25% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 
            0 0 65px #ffd700,
            0 0 130px #ff8c00,
            0 0 195px #ff4500,
            0 0 260px rgba(255, 69, 0, 0.55),
            0 0 325px rgba(255, 69, 0, 0.35),
            0 0 390px rgba(255, 69, 0, 0.25),
            inset 0 0 55px rgba(255, 215, 0, 0.7),
            inset 0 0 30px rgba(255, 255, 255, 0.5);
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 
            0 0 70px #ffd700,
            0 0 140px #ff8c00,
            0 0 210px #ff4500,
            0 0 280px rgba(255, 69, 0, 0.6),
            0 0 350px rgba(255, 69, 0, 0.4),
            0 0 420px rgba(255, 69, 0, 0.3),
            inset 0 0 60px rgba(255, 215, 0, 0.8),
            inset 0 0 35px rgba(255, 255, 255, 0.6);
    }
    75% {
        transform: translate(-50%, -50%) scale(1.1);
        box-shadow: 
            0 0 65px #ffd700,
            0 0 130px #ff8c00,
            0 0 195px #ff4500,
            0 0 260px rgba(255, 69, 0, 0.55),
            0 0 325px rgba(255, 69, 0, 0.35),
            0 0 390px rgba(255, 69, 0, 0.25),
            inset 0 0 55px rgba(255, 215, 0, 0.7),
            inset 0 0 30px rgba(255, 255, 255, 0.5);
    }
}

/* Solar Corona Pulse Animation */
@keyframes coronaPulse {
    0%, 100% { 
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(2px);
    }
    25% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.05);
        filter: blur(2.5px);
    }
    50% { 
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1.1);
        filter: blur(3px);
    }
    75% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.05);
        filter: blur(2.5px);
    }
}



/* Asteroid Orbit Animation */
@keyframes asteroidOrbit {
    0% { 
        transform: translate(-50%, -50%) rotate(calc(var(--asteroid-offset, 0deg) + 0deg)) translateX(var(--orbit-radius)) rotate(calc(var(--asteroid-offset, 0deg) * -1 + 0deg)) scale(1); 
        opacity: 0.8;
    }
    50% { 
        transform: translate(-50%, -50%) rotate(calc(var(--asteroid-offset, 0deg) + 180deg)) translateX(var(--orbit-radius)) rotate(calc(var(--asteroid-offset, 0deg) * -1 + 180deg)) scale(1.1);
        opacity: 1;
    }
    100% { 
        transform: translate(-50%, -50%) rotate(calc(var(--asteroid-offset, 0deg) + 360deg)) translateX(var(--orbit-radius)) rotate(calc(var(--asteroid-offset, 0deg) * -1 + 360deg)) scale(1); 
        opacity: 0.8;
    }
}

/* KBO Orbit Animation */
@keyframes kboOrbit {
    0% { 
        transform: translate(-50%, -50%) rotate(calc(var(--kbo-offset, 0deg) + 0deg)) translateX(var(--orbit-radius)) rotate(calc(var(--kbo-offset, 0deg) * -1 + 0deg)) scale(1); 
        opacity: 0.7;
        filter: brightness(1);
    }
    25% {
        transform: translate(-50%, -50%) rotate(calc(var(--kbo-offset, 0deg) + 90deg)) translateX(var(--orbit-radius)) rotate(calc(var(--kbo-offset, 0deg) * -1 + 90deg)) scale(1.05);
        opacity: 0.8;
        filter: brightness(1.1);
    }
    50% { 
        transform: translate(-50%, -50%) rotate(calc(var(--kbo-offset, 0deg) + 180deg)) translateX(var(--orbit-radius)) rotate(calc(var(--kbo-offset, 0deg) * -1 + 180deg)) scale(1.1);
        opacity: 0.9;
        filter: brightness(1.2);
    }
    75% {
        transform: translate(-50%, -50%) rotate(calc(var(--kbo-offset, 0deg) + 270deg)) translateX(var(--orbit-radius)) rotate(calc(var(--kbo-offset, 0deg) * -1 + 270deg)) scale(1.05);
        opacity: 0.8;
        filter: brightness(1.1);
    }
    100% { 
        transform: translate(-50%, -50%) rotate(calc(var(--kbo-offset, 0deg) + 360deg)) translateX(var(--orbit-radius)) rotate(calc(var(--kbo-offset, 0deg) * -1 + 360deg)) scale(1); 
        opacity: 0.7;
        filter: brightness(1);
    }
}

/* Comet Trajectory Animation */
@keyframes cometTrajectory {
    0% { 
        transform: translate(-50%, -50%) translateX(-800px) translateY(-400px) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(-600px) translateY(-300px) scale(0.7);
    }
    50% { 
        transform: translate(-50%, -50%) translateX(0px) translateY(0px) scale(1);
        opacity: 1;
    }
    90% {
        opacity: 1;
        transform: translate(-50%, -50%) translateX(600px) translateY(300px) scale(0.7);
    }
    100% { 
        transform: translate(-50%, -50%) translateX(800px) translateY(400px) scale(0.5);
        opacity: 0;
    }
}

/* Particle Trail Fade Animation */
@keyframes trailFade {
    0% { 
        opacity: 1;
        transform: scale(1);
    }
    100% { 
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Sparkle Fade Animation */
@keyframes sparkleFade {
    0% { 
        opacity: 1;
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.5);
        filter: brightness(2);
    }
    100% { 
        opacity: 0;
        transform: scale(0.5);
        filter: brightness(1);
    }
}

/* Atmosphere Glow Animation */
@keyframes atmosphereGlow {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1);
        filter: blur(3px);
    }
    25% {
        opacity: 0.8;
        transform: scale(1.02);
        filter: blur(3.5px);
    }
    50% { 
        opacity: 0.9;
        transform: scale(1.05);
        filter: blur(4px);
    }
    75% {
        opacity: 0.8;
        transform: scale(1.02);
        filter: blur(3.5px);
    }
}

/* Planet Ring Rotation */
@keyframes planetRingRotate {
    0% { 
        transform: translate(-50%, -50%) rotate(0deg) scale(1); 
        opacity: 0.8;
        filter: brightness(1);
    }
    12.5% {
        transform: translate(-50%, -50%) rotate(45deg) scale(1.01);
        opacity: 0.85;
        filter: brightness(1.05);
    }
    25% {
        transform: translate(-50%, -50%) rotate(90deg) scale(1.02);
        opacity: 0.9;
        filter: brightness(1.1);
    }
    37.5% {
        transform: translate(-50%, -50%) rotate(135deg) scale(1.01);
        opacity: 0.85;
        filter: brightness(1.05);
    }
    50% { 
        transform: translate(-50%, -50%) rotate(180deg) scale(1);
        opacity: 0.8;
        filter: brightness(1);
    }
    62.5% {
        transform: translate(-50%, -50%) rotate(225deg) scale(1.01);
        opacity: 0.85;
        filter: brightness(1.05);
    }
    75% {
        transform: translate(-50%, -50%) rotate(270deg) scale(1.02);
        opacity: 0.9;
        filter: brightness(1.1);
    }
    87.5% {
        transform: translate(-50%, -50%) rotate(315deg) scale(1.01);
        opacity: 0.85;
        filter: brightness(1.05);
    }
    100% { 
        transform: translate(-50%, -50%) rotate(360deg) scale(1); 
        opacity: 0.8;
        filter: brightness(1);
    }
}

/* Moon Orbit Animation */
@keyframes moonOrbit {
    0% { 
        transform: translate(-50%, -50%) rotate(calc(var(--moon-offset, 0deg) + 0deg)) translateX(var(--orbit-radius)) rotate(calc(var(--moon-offset, 0deg) * -1 + 0deg)) scale(1); 
        opacity: 0.9;
        filter: brightness(1);
    }
    12.5% {
        transform: translate(-50%, -50%) rotate(calc(var(--moon-offset, 0deg) + 45deg)) translateX(var(--orbit-radius)) rotate(calc(var(--moon-offset, 0deg) * -1 + 45deg)) scale(1.02);
        opacity: 0.95;
        filter: brightness(1.05);
    }
    25% {
        transform: translate(-50%, -50%) rotate(calc(var(--moon-offset, 0deg) + 90deg)) translateX(var(--orbit-radius)) rotate(calc(var(--moon-offset, 0deg) * -1 + 90deg)) scale(1.05);
        opacity: 1;
        filter: brightness(1.1);
    }
    37.5% {
        transform: translate(-50%, -50%) rotate(calc(var(--moon-offset, 0deg) + 135deg)) translateX(var(--orbit-radius)) rotate(calc(var(--moon-offset, 0deg) * -1 + 135deg)) scale(1.02);
        opacity: 0.95;
        filter: brightness(1.05);
    }
    50% { 
        transform: translate(-50%, -50%) rotate(calc(var(--moon-offset, 0deg) + 180deg)) translateX(var(--orbit-radius)) rotate(calc(var(--moon-offset, 0deg) * -1 + 180deg)) scale(1);
        opacity: 0.9;
        filter: brightness(1);
    }
    62.5% {
        transform: translate(-50%, -50%) rotate(calc(var(--moon-offset, 0deg) + 225deg)) translateX(var(--orbit-radius)) rotate(calc(var(--moon-offset, 0deg) * -1 + 225deg)) scale(1.02);
        opacity: 0.95;
        filter: brightness(1.05);
    }
    75% {
        transform: translate(-50%, -50%) rotate(calc(var(--moon-offset, 0deg) + 270deg)) translateX(var(--orbit-radius)) rotate(calc(var(--moon-offset, 0deg) * -1 + 270deg)) scale(1.05);
        opacity: 1;
        filter: brightness(1.1);
    }
    87.5% {
        transform: translate(-50%, -50%) rotate(calc(var(--moon-offset, 0deg) + 315deg)) translateX(var(--orbit-radius)) rotate(calc(var(--moon-offset, 0deg) * -1 + 315deg)) scale(1.02);
        opacity: 0.95;
        filter: brightness(1.05);
    }
    100% { 
        transform: translate(-50%, -50%) rotate(calc(var(--moon-offset, 0deg) + 360deg)) translateX(var(--orbit-radius)) rotate(calc(var(--moon-offset, 0deg) * -1 + 360deg)) scale(1); 
        opacity: 0.9;
        filter: brightness(1);
    }
}

/* Scan Line Animation */
@keyframes scanMove {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100vh); }
}

/* Data Transfer Animation */
@keyframes dataTransfer {
    0% { transform: translateX(-100px); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateX(calc(100vw + 100px)); opacity: 0; }
} 

/* Terminal Pulse Animation */
@keyframes terminalPulse {
    0%, 100% { 
        opacity: 1; 
        text-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
    }
    50% { 
        opacity: 0.8; 
        text-shadow: 0 0 12px rgba(16, 185, 129, 0.8);
    }
}

/* Terminal Command Fade In */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(8px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Terminal Typewriter Effect */
@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

/* Terminal Glitch Effect */
@keyframes terminalGlitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

/* Terminal Matrix Rain Effect */
@keyframes matrixRain {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}

/* Terminal Command Highlight */
@keyframes commandHighlight {
    0%, 100% { 
        background: linear-gradient(135deg, 
            rgba(99, 102, 241, 0.08) 0%, 
            rgba(99, 102, 241, 0.05) 100%);
    }
    50% { 
        background: linear-gradient(135deg, 
            rgba(99, 102, 241, 0.12) 0%, 
            rgba(99, 102, 241, 0.08) 100%);
    }
}

/* Terminal Result Slide In */
@keyframes resultSlideIn {
    from { 
        opacity: 0; 
        transform: translateX(-20px); 
        max-height: 0;
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
        max-height: 1000px;
    }
}

/* Terminal Status Pulse */
@keyframes statusPulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1); 
    }
}

/* Terminal Loading Spinner */
@keyframes terminalSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Terminal Error Shake */
@keyframes errorShake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-2px); }
    20%, 40%, 60%, 80% { transform: translateX(2px); }
}

/* Terminal Success Bounce */
@keyframes successBounce {
    0%, 20%, 53%, 80%, 100% { transform: translateY(0); }
    40%, 43% { transform: translateY(-8px); }
    70% { transform: translateY(-4px); }
    90% { transform: translateY(-2px); }
}

/* Terminal Input Focus Glow */
@keyframes inputFocusGlow {
    0%, 100% { 
        box-shadow: 
            0 4px 12px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 8px 24px rgba(0, 0, 0, 0.3),
            0 0 0 1px var(--terminal-prompt, var(--primary-color)),
            inset 0 1px 0 rgba(255, 255, 255, 0.15),
            0 0 20px rgba(99, 102, 241, 0.2);
    }
} 