/* Jarvis Neon Cloud UI CSS */
.jarvis-widget-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100px;
    z-index: 9999;
    pointer-events: none; /* Let clicks pass through the cloud */
    display: flex;
    justify-content: center;
    align-items: flex-end;
}/* The neon cloud wave wrapper */
.jarvis-neon-cloud-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: transparent;
    transition: all 0.5s ease;
    z-index: 1;
}.jarvis-neon-cloud {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.4), transparent);
    box-shadow: 0 -5px 20px rgba(0, 255, 255, 0.3), inset 0 0 10px rgba(0, 255, 255, 0.2);
    filter: blur(2px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    background-size: 200% 100%;
    animation: calmWave 8s linear infinite;
}/* --- LISTENING STATE --- */
.jarvis-widget-container.listening .jarvis-neon-cloud-wrapper {
    height: 35px; /* Rises much higher */
}.jarvis-widget-container.listening .jarvis-neon-cloud {
    background: linear-gradient(90deg, transparent, rgba(0, 255, 128, 0.9), rgba(0, 255, 255, 0.9), rgba(0, 255, 128, 0.9), transparent);
    background-size: 300% 100%;
    box-shadow: 0 -20px 50px rgba(0, 255, 128, 0.8), inset 0 0 25px rgba(0, 255, 128, 0.6);
    animation: listenGradient 1.5s ease-in-out infinite;
    opacity: 1;
    filter: blur(2px);
}/* --- SPEAKING STATE --- */
.jarvis-widget-container.speaking .jarvis-neon-cloud-wrapper {
    height: 25px; /* Rises higher */
}.jarvis-widget-container.speaking .jarvis-neon-cloud {
    background: linear-gradient(90deg, transparent, rgba(255, 0, 255, 0.8), rgba(0, 255, 255, 0.8), rgba(255, 0, 255, 0.8), transparent);
    background-size: 200% 100%;
    box-shadow: 0 -15px 50px rgba(255, 0, 255, 0.6), inset 0 0 20px rgba(255, 0, 255, 0.5);
    animation: speakRipple 0.4s ease-in-out infinite alternate;
    opacity: 1;
    filter: blur(4px);
    border-top: 1px solid rgba(255,255,255,0.5);
}/* --- PROCESSING STATE (Thinking/API Call) --- */
.jarvis-widget-container.processing .jarvis-neon-cloud-wrapper {
    height: 20px;
}.jarvis-widget-container.processing .jarvis-neon-cloud {
    background: linear-gradient(90deg, transparent, rgba(0, 150, 255, 0.7), rgba(0, 200, 255, 0.7), rgba(0, 150, 255, 0.7), transparent);
    background-size: 300% 100%;
    box-shadow: 0 -12px 35px rgba(0, 150, 255, 0.6), inset 0 0 15px rgba(0, 150, 255, 0.4);
    animation: processingGradient 2s ease-in-out infinite;
    opacity: 1;
    filter: blur(2px);
}/* Tooltip (Speech Bubble) */
.jarvis-tooltip {
    position: absolute;
    bottom: 80px; /* Above the button */
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, rgba(2, 12, 27, 0.85), rgba(10, 25, 47, 0.95));
    backdrop-filter: blur(8px) saturate(160%);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-top: 1px solid rgba(0, 255, 255, 0.4);
    border-radius: 20px;
    padding: 18px 24px;
    width: max-content;
    max-width: 340px;
    min-width: 260px;
    color: var(--text-strong);
    font-family: 'Inter', sans-serif;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1), 0 0 20px rgba(0, 255, 255, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}.jarvis-tooltip::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: rgba(0, 255, 255, 0.3) transparent transparent transparent;
}.jarvis-widget-container.show-tooltip .jarvis-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}.jarvis-status {
    font-size: 12px;
    color: #0ff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0,255,255,0.5);
}.jarvis-text {
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    color: #e2e8f0;
}

/* Animations */
@keyframes calmWave {0% { background-position: 100% 0; }100% { background-position: -100% 0; }
}

@keyframes listenGradient {0% { background-position: 0% 50%; }50% { background-position: 100% 50%; }100% { background-position: 0% 50%; }
}

@keyframes speakRipple {0% { filter: blur(3px); height: 100%; box-shadow: 0 -10px 40px rgba(255,0,255,0.4); }100% { filter: blur(5px); height: 130%; box-shadow: 0 -25px 70px rgba(255,0,255,0.8), inset 0 0 30px rgba(255,0,255,0.6); border-top-color: rgba(255,255,255,0.9); }
}

@keyframes processingGradient {0% { background-position: 0% 50%; }50% { background-position: 100% 50%; }100% { background-position: 0% 50%; }
}

@keyframes jarvisProcessPulse {0% { opacity: 1; transform: scale(1); }50% { opacity: 0.5; transform: scale(0.95); }100% { opacity: 1; transform: scale(1); }
}

@keyframes jarvisPulseListen {0% { transform: scale(1); opacity: 0.8; }50% { transform: scale(1.6); opacity: 0; }100% { transform: scale(1); opacity: 0; }
}

@keyframes jarvisRotate {0% { transform: rotate(0deg); }100% { transform: rotate(360deg); }
}

@keyframes jarvisSpeakPulse {0% { transform: scale(1.1); opacity: 0.6; }100% { transform: scale(1.3); opacity: 1; border-color: rgba(255, 255, 255, 0.8); }
}

@keyframes jarvisLogoShake {0% { transform: translateY(0); }100% { transform: translateY(-2px) scale(1.05); }
}/* HUD Sci-Fi Scan & Target Animations */
.jarvis-scan-overlay {
    position: relative;
    overflow: hidden !important;
}.jarvis-scan-overlay::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 10%;
    background: linear-gradient(to bottom, transparent, rgba(0, 243, 255, 0.8), transparent);
    animation: jarvisScanDown 1s ease-in-out forwards;
    z-index: 9999;
    pointer-events: none;
}
@keyframes jarvisScanDown {0% { top: -100%; opacity: 0; }20% { opacity: 1; }80% { opacity: 1; }100% { top: 150%; opacity: 0; }
}
@keyframes jarvisTargetGlow {0% { box-shadow: 0 0 0px rgba(0, 243, 255, 0); }50% { box-shadow: 0 0 30px rgba(0, 243, 255, 1), inset 0 0 15px rgba(0, 243, 255, 0.6); }100% { box-shadow: 0 0 0px rgba(0, 243, 255, 0); }
}
