.ai-crm-chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ai-crm-chat-bubble {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #6e8efb, #a777e3);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(110, 142, 251, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-crm-chat-bubble:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 30px rgba(110, 142, 251, 0.5);
}

.ai-crm-icon {
    font-size: 28px;
}

.ai-crm-chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 380px;
    height: 550px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    animation: ai-crm-slideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes ai-crm-slideUp {
    from { opacity: 0; transform: translateY(30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-crm-chat-header {
    background: #ffffff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.ai-crm-agent-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-crm-agent-avatar {
    width: 40px;
    height: 40px;
    background: #f0f4ff;
    color: #6e8efb;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 14px;
}

.ai-crm-agent-name strong {
    display: block;
    font-size: 15px;
    color: #1a1a1a;
}

.ai-crm-agent-status {
    font-size: 12px;
    color: #2ecc71;
}

.ai-crm-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
}

.ai-crm-close-btn:hover {
    color: #333;
}

.ai-crm-chat-body {
    flex: 1;
    padding: 20px;
    background: #fcfcfc;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ai-crm-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.ai-crm-msg-received {
    background: #f0f0f0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-crm-msg-sent {
    background: #6e8efb;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 10px rgba(110, 142, 251, 0.2);
}

.ai-crm-chat-footer {
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.ai-crm-chat-footer input {
    flex: 1;
    border: 1px solid #e0e0e0;
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.ai-crm-chat-footer input:focus {
    border-color: #6e8efb;
}

.ai-crm-chat-send {
    background: #6e8efb;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.ai-crm-chat-send:hover {
    background: #5a7be0;
}
