#aichan-ai-chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 9999;
    font-family: sans-serif;
    overflow: hidden;
    transition: height 0.3s ease;
}

.aichan-ai-chat-closed {
    height: 40px;
}

.aichan-ai-chat-header {
    background: #0073aa;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.aichan-ai-chat-header button {
    background: none;
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

.aichan-ai-chat-body {
    height: 360px;
    display: flex;
    flex-direction: column;
}

#aichan-ai-chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
}

.aichan-ai-message {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 15px;
    max-width: 80%;
    font-size: 14px;
}

.aichan-ai-message.bot {
    background: #e1e1e1;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.aichan-ai-message.user {
    background: #0073aa;
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.aichan-ai-chat-input {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
}

#aichan-ai-chat-input-field {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-right: 5px;
}

#aichan-ai-chat-send {
    padding: 8px 15px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#aichan-ai-chat-send:disabled {
    background: #ccc;
}