/* static/assets/css/custom_chat_styles.css */

.chat-message-bot table {
    width: 100%; /* Or a specific max-width if preferred */
    border-collapse: collapse;
    margin-top: 1rem;
    margin-bottom: 1rem;
    color: var(--kt-text-gray-700); /* Metronic text color */
}

.chat-message-bot th,
.chat-message-bot td {
    border: 1px solid var(--kt-border-color); /* Metronic border color */
    padding: 8px 12px;
    text-align: left;
}

.chat-message-bot th {
    background-color: var(--kt-table-header-bg); /* Metronic table header background */
    color: var(--kt-table-header-color); /* Metronic table header text color */
    font-weight: 600; /* Metronic table header font weight */
}

/* Optional: Alternating row colors (zebra striping) */
.chat-message-bot tbody tr:nth-child(odd) {
    background-color: var(--kt-table-striped-bg); /* Metronic striped table background */
}

/* Ensure links within tables are styled appropriately if needed */
.chat-message-bot table a {
    color: var(--kt-link-color);
    text-decoration: none;
}
.chat-message-bot table a:hover {
    color: var(--kt-link-hover-color);
    text-decoration: underline;
}

/* Styles moved from _chat_message_pair.html for .markdown-content */
.markdown-content pre {
    background-color: var(--bs-light-bg-subtle, #f8f9fa);
    padding: 0.5rem;
    border-radius: 0.3rem;
    border: 1px solid var(--bs-border-color);
    overflow-x: auto;
}
.markdown-content code {
    font-family: monospace;
    font-size: 0.85em;
    background-color: transparent; /* Avoid double background if code is inside pre */
    padding: 0.1em 0.3em;
    border-radius: 0.2rem;
}
.markdown-content pre code {
    background-color: transparent; /* Reset for code inside pre */
    padding: 0;
    border: none;
}
.markdown-content table {
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 1rem;
    border: 2px solid blue !important; /* Forcing table border for diagnostics */
}
.markdown-content th,
.markdown-content td {
    border: 1px solid red !important; /* Forcing cell borders for diagnostics */
    padding: 0.5rem 0.75rem;
    text-align: left;
}
.markdown-content th {
    background-color: var(--bs-tertiary-bg);
    font-weight: 600;
}
.markdown-content ul,
.markdown-content ol {
    padding-left: 20px;
}
/* Remove default white-space: pre-wrap from accordion-body if markdown content handles it */
.accordion-body.markdown-content {
    white-space: normal;
    font-family: inherit; /* Reset from monospace if previously set */
} 