#ai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: Arial, sans-serif;
}

#ai-chat-toggle {
    width: 60px;
    height: 60px;
    background: #6947f8;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}

#ai-chat-toggle:hover {
    transform: scale(1.05);
}

#ai-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-height: 500px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#ai-chat-header {
    background: #6947f8;
    color: #fff;
    padding: 15px;
    font-weight: bold;
    font-size: 16px;
}

#ai-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    min-height: 200px;
    max-height: 350px;
}

#ai-chat-messages .message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 18px;
    max-width: 80%;
    word-wrap: break-word;
}

#ai-chat-messages .user {
    background: #e9ecef;
    align-self: flex-end;
    margin-left: auto;
}

#ai-chat-messages .bot {
    background: #6947f8;
    color: #fff;
    align-self: flex-start;
}

#ai-chat-input-area {
    display: flex;
    padding: 10px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
}

#ai-chat-input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

#ai-chat-input:focus {
    border-color: #6947f8;
}

#ai-chat-send {
    margin-left: 8px;
    padding: 8px 16px;
    background: #6947f8;
    color: #fff;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}

#ai-chat-send:hover {
    background: #5a3bd0;
}