.ai-chatbot-container {
    max-width: 800px;
    margin: 20px auto;
}

.ai-chatbox {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 15px;
    height: 400px;
    overflow-y: auto;
    margin-bottom: 10px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.message {
    max-width: 75%;
    padding: 10px 14px;
    margin: 8px 0;
    border-radius: 15px;
    line-height: 1.4;
    display: inline-block;
}

.user-message {
    background-color: #0078ff;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
    float: right;
    clear: both;
}

.bot-message {
    background-color: #f1f0f0;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 0;
    float: left;
    clear: both;
}

.typing {
    font-style: italic;
    color: #888;
    margin: 5px 0;
}

.ai-user-input {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    outline: none;
}

.ai-send-btn,
.ai-clear-btn,
.ai-export-btn {
    padding: 8px 14px;
    cursor: pointer;
    background: #0078ff;
    color: white;
    border: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.ai-send-btn:hover,
.ai-clear-btn:hover,
.ai-export-btn:hover {
    background: #005fcc;
}

.ai-clear-btn {
    background: #6c757d;
}

.ai-clear-btn:hover {
    background: #5a6268;
}

.ai-export-btn {
    background: #28a745;
}

.ai-export-btn:hover {
    background: #218838;
}