#vmai-ai-agent {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 350px;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
}

#vmai-ai-agent.vmai-agent-closed {
    width: 60px;
    height: 60px;
}

#vmai-ai-agent.vmai-agent-closed #vmai-agent-header,
#vmai-ai-agent.vmai-agent-closed #vmai-agent-chat {
    display: none;
}

#vmai-agent-trigger {
    width: 60px;
    height: 60px;
    background: #8b5cf6;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(139, 92, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    bottom: 0;
    right: 0;
}

#vmai-agent-trigger .vmai-icon {
    font-size: 24px;
}

#vmai-ai-agent.vmai-agent-open #vmai-agent-trigger {
    display: none;
}

#vmai-agent-header {
    background: #8b5cf6;
    color: white;
    padding: 15px 20px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
}

#vmai-agent-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

#vmai-agent-chat {
    background: white;
    border: 1px solid #e2e8f0;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    height: 450px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

#vmai-agent-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.vmai-msg {
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    max-width: 85%;
}

.vmai-msg-ai {
    background: #f1f5f9;
    color: #1e293b;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.vmai-msg-user {
    background: #8b5cf6;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

#vmai-agent-input-wrap {
    padding: 15px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    gap: 10px;
}

#vmai-agent-query {
    flex: 1;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}

#vmai-agent-send {
    background: #8b5cf6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0 15px;
    font-weight: 700;
    cursor: pointer;
}

.vmai-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #8b5cf6;
    border-radius: 50%;
    opacity: 0.6;
    animation: vmai-pulse-anim 2s infinite;
}

@keyframes vmai-pulse-anim {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.5); opacity: 0; }
}

.vmai-aeo-intel-block {
    background: #f8fafc;
    border-left: 4px solid #8b5cf6;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}
.vmai-aeo-intel-block h4 {
    margin-top: 0;
    color: #1e293b;
}

@media (max-width: 480px) {
    #vmai-ai-agent {
        right: 15px;
        bottom: 15px;
        width: calc(100% - 30px);
    }
    #vmai-ai-agent.vmai-agent-closed {
        width: 60px;
    }
}
