/*
 * Chat Widget Styles
 * Styles for the chat interface, including Markdown formatting
 */

.chatbox-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
    height: 500px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    font-family: "Segoe UI", Roboto, sans-serif;
    background: #fff;
}

.chatbox-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f9f9f9;
}

.chatbox-message {
    max-width: 80%;
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 18px;
    line-height: 1.4;
    word-wrap: break-word;
}

.chatbox-message.user {
    background: #dcf8c6;
    color: #000;
    align-self: flex-end;
}

.chatbox-message.assistant {
    background: #e2e8f0;
    color: #000;
    align-self: flex-start;
}

/* Markdown element styling */
.chatbox-message code {
    background: #e8e8e8;
    font-family: monospace;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 4px;
}

.chatbox-message pre {
    background: #e8e8e8;
    padding: 8px;
    border-radius: 4px;
    overflow-x: auto;
    margin: 12px 0;
    font-family: monospace;
    font-size: 13px;
}

.chatbox-message strong {
    font-weight: bold;
}

.chatbox-message em {
    font-style: italic;
}

.chatbox-message ul,
.chatbox-message ol {
    margin: 8px 0 8px 20px;
}

.chatbox-form {
    display: flex;
    padding: 12px;
    border-top: 1px solid #ddd;
    background: #fff;
}

.chatbox-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 20px;
    outline: none;
}

.chatbox-form button {
    margin-left: 8px;
    padding: 8px 16px;
    font-size: 14px;
    border: none;
    border-radius: 20px;
    background: #007bff;
    color: #fff;
    cursor: pointer;
}

.chatbox-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}