/* ai */

    .ai-box-body {
        background-color: #f5f5f5;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
        margin: 0;
    }
    #chat-wrapper {
        width: 100%;
        max-width: 700px;
        background-color: #fff;
        border: 1px solid #ccc;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        height: 80vh;
        margin: 10px;
    }
    #chat-container {
        flex: 1;
        padding: 10px;
        overflow-y: auto;
        height: calc(100% - 80px);
        box-sizing: border-box;
        text-align: right;
    }
    #chat-messages {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }
    .message {
        margin-bottom: 10px;
        padding: 10px;
        border-radius: 5px;
        word-wrap: break-word;
        background-color: #f0f0f0;
        text-align: right;
    }
    .bot-message {
        background-color: #e0f7fa;
    }
    #message-form {
        display: flex;
        border-top: 1px solid #ccc;
        padding: 10px;
        background-color: #fff;
        align-items: center;
    }
    #user-message {
        flex: 1;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        outline: none;
        margin-left: 10px;
        resize: none;
        direction: rtl;
    }
    #send-button {
        background-color: #4CAF50;
        color: white;
        border: none;
        padding: 10px;
        border-radius: 5px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #loading-indicator {
        display: none;
        align-items: center;
        margin-left: 10px;
    }

    /* استایل‌های ریسپانسیو */
    @media (max-width: 600px) {
        #chat-wrapper {
            height: 90vh;
        }
        #chat-container {
            padding: 5px;
        }
        #message-form {
            flex-direction: column;
        }
        #user-message {
            margin-left: 0;
            margin-bottom: 10px;
            width: 100%;
        }
        #send-button, #loading-indicator {
            width: 100%;
        }
    }



