.udap-message {
    padding: 10px;
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
}

.udap-my-ai-prompt {
    padding: 15px;
    background-color: #e9f5ff;
    border: 1px solid #b3d7ff;
    border-radius: 5px;
    margin-bottom: 20px;
}
.udap-my-ai-prompt h4 {
    margin-top: 0;
    color: #0056b3;
}
.udap-my-ai-prompt pre {
    background-color: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    white-space: pre-wrap; /* Allows text to wrap */
    word-wrap: break-word; /* Breaks long words */
    font-family: monospace;
    max-height: 300px;
    overflow-y: auto;
}


/* Chatbot styles */
.udap-chatbot-container {
    max-width: 500px;
    margin: 20px auto;
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    font-family: Arial, sans-serif;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.udap-chat-window {
    height: 350px;
    overflow-y: auto;
    padding: 15px;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
}

.udap-chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    margin-bottom: 10px;
    line-height: 1.4;
    word-wrap: break-word;
}

.udap-chat-message.user {
    background-color: #007bff;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 5px;
}

.udap-chat-message.ai {
    background-color: #e9ecef;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 5px;
}
.udap-chat-message.ai.typing-indicator {
    font-style: italic;
    color: #777;
}
.udap-chat-message.ai.error {
    background-color: #ffebee;
    color: #c62828;
    font-weight: bold;
}


.udap-chatbot-form {
    display: flex;
    padding: 10px;
    border-top: 1px solid #ccc;
    background-color: #fff;
}

#udap-chatbot-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 1em;
}
#udap-chatbot-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

.udap-chatbot-form button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 1em;
}

.udap-chatbot-form button:hover {
    background-color: #0056b3;
}