.ai-chatbox-container {
    max-width: 100%;
    margin: 20px auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    background: #ffffff;
    overflow: hidden;
    font-family: inherit;
    border: 1px solid #e8e8e8;
}

.ai-chatbox-header {
    background: #f5f5f5;
    padding: 16px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.ai-chatbox-title {
    font-weight: 600;
    font-size: 16px;
    color: #4a4a4a;
}

.ai-chatbox-messages {
    height: 180px;
    overflow-y: auto;
    padding: 16px 20px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-chat-message {
    display: flex;
    margin-bottom: 4px;
}

.ai-chat-message.bot {
    justify-content: flex-start;
}

.ai-chat-message.user {
    justify-content: flex-end;
}

.ai-chat-bubble {
    max-width: 80%;
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.ai-chat-message.bot .ai-chat-bubble {
    background: #ffffff;
    color: #333333;
    border: 1px solid #e8e8e8;
    border-bottom-left-radius: 4px;
}

.ai-chat-message.user .ai-chat-bubble {
    background: #e0e0e0;
    color: #222222;
    border-bottom-right-radius: 4px;
}

.ai-chatbox-input-area {
    display: flex;
    padding: 12px 16px;
    gap: 10px;
    background: #ffffff;
    border-top: 1px solid #e8e8e8;
}

.ai-chatbox-input-area input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #dcdcdc;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    transition: border 0.2s;
    background: #f9f9f9;
}

.ai-chatbox-input-area input:focus {
    border-color: #b0b0b0;
    background: #ffffff;
}

.ai-chatbox-input-area button {
    padding: 10px 22px;
    background: #d0d0d0;
    color: #333333;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.ai-chatbox-input-area button:hover {
    background: #b8b8b8;
}

.ai-chatbox-input-area button:active {
    background: #a0a0a0;
}

.ai-chatbox-loading {
    padding: 8px 20px 16px 20px;
    font-size: 13px;
    color: #999999;
    background: #fafafa;
    font-style: italic;
}

/* اسکرول‌بار اختصاصی */
.ai-chatbox-messages::-webkit-scrollbar {
    width: 5px;
}

.ai-chatbox-messages::-webkit-scrollbar-track {
    background: #f0f0f0;
}

.ai-chatbox-messages::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 10px;
}