/* Floating Loading Assistant Styles - Abstract Modern Design */
.floating-loading-assistant {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-loading-assistant.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.assistant-container {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3B82F6 0%, #1E40AF 100%);
    border-radius: 50%;
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    animation: assistantFloat 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

@keyframes assistantFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-8px) scale(1.05);
    }
}

.assistant-icon {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-core {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    animation: corePulse 2s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.icon-rings {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: ringExpand 2.5s ease-in-out infinite;
}

.ring-1 {
    width: 30px;
    height: 30px;
    animation-delay: 0s;
}

.ring-2 {
    width: 40px;
    height: 40px;
    animation-delay: 0.5s;
}

.ring-3 {
    width: 50px;
    height: 50px;
    animation-delay: 1s;
}

@keyframes ringExpand {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.8;
    }
}

.icon-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: pulseWave 2s ease-in-out infinite;
}

@keyframes pulseWave {
    0% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.assistant-tooltip {
    position: absolute;
    bottom: 75px;
    right: 0;
    background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    color: white;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    transform: translateY(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.assistant-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #1E40AF;
}

.floating-loading-assistant.show .assistant-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-text {
    animation: tooltipGlow 2s ease-in-out infinite;
}

@keyframes tooltipGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .floating-loading-assistant {
        bottom: 15px;
        right: 15px;
    }
    
    .assistant-container {
        width: 55px;
        height: 55px;
    }
    
    .assistant-tooltip {
        font-size: 11px;
        padding: 8px 12px;
    }
}

/* Loading States */
.floating-loading-assistant.loading .assistant-container {
    animation: loadingPulse 1.2s ease-in-out infinite;
}

.floating-loading-assistant.loading .icon-core {
    animation: loadingCore 1.2s ease-in-out infinite;
}

@keyframes loadingPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 6px 25px rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
    }
}

@keyframes loadingCore {
    0%, 100% {
        transform: scale(1);
        background: white;
    }
    50% {
        transform: scale(1.3);
        background: #E0E7FF;
    }
}

/* Success State */
.floating-loading-assistant.success .assistant-container {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    animation: successBounce 0.8s ease-out;
}

.floating-loading-assistant.success .icon-core {
    background: #D1FAE5;
    animation: successCore 0.8s ease-out;
}

@keyframes successBounce {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes successCore {
    0% {
        transform: scale(1);
        background: white;
    }
    100% {
        transform: scale(1.4);
        background: #D1FAE5;
    }
}

/* Error State */
.floating-loading-assistant.error .assistant-container {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    animation: errorShake 0.8s ease-in-out;
}

.floating-loading-assistant.error .icon-core {
    background: #FEE2E2;
    animation: errorCore 0.8s ease-in-out;
}

@keyframes errorShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}

@keyframes errorCore {
    0%, 100% {
        transform: scale(1);
        background: white;
    }
    50% {
        transform: scale(1.2);
        background: #FEE2E2;
    }
}

/* Hover Effects */
.assistant-container:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6);
}

.assistant-container:hover .icon-core {
    animation: hoverCore 0.5s ease-in-out;
}

@keyframes hoverCore {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

/* Hide on print */
@media print {
    .floating-loading-assistant {
        display: none !important;
    }
} 