@import '_content/Corvenia.Yggdrasil.Module.Common/Corvenia.Yggdrasil.Module.Common.xyhh9gdrqy.bundle.scp.css';

/* /Components/ChatWindow/ChatWindow.razor.rz.scp.css */
.chat-window[b-qyi16wkjwk] {
    background: var(--mud-palette-background, #fff);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 280px;
    max-height: 420px;
}

/* Side panel / full-column hosts: grow with parent flex; default max-height stays for compact embeds */
.chat-window.chat-window--fill[b-qyi16wkjwk] {
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    align-self: stretch;
}

/* Embedded under a parent card: host removes outer border/radius via ::deep */
.chat-window--no-header[b-qyi16wkjwk] {
    min-height: 260px;
}

.chat-header[b-qyi16wkjwk] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mud-palette-lines-default, #e2e8f0);
}

.chat-header-leading[b-qyi16wkjwk] {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

/* .chat-header-icon-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--mud-palette-primary, #1976d2) 14%, var(--mud-palette-surface, #f8fafc) 86%);
    color: var(--mud-palette-primary, #1976d2);
}

.chat-header-icon-wrap ::deep .mud-icon-root {
    font-size: 1.15rem !important;
} */

.chat-header-text[b-qyi16wkjwk] {
    flex: 1;
    min-width: 0;
}

.chat-header-title[b-qyi16wkjwk] {
    font-weight: 600 !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.chat-header-subtitle[b-qyi16wkjwk] {
    display: block;
    margin: 4px 0 0 !important;
    line-height: 1.35 !important;
}

.chat-placeholder[b-qyi16wkjwk] {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.875rem;
    max-width: 22rem;
    margin-inline: auto;
    min-height: 12rem;
    padding-block: 1rem;
}

.chat-placeholder-icon-wrap[b-qyi16wkjwk] {
    flex-shrink: 0;
    display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	padding: 0;
	margin: 0;
	border: 1px solid #ffb488;
	border-radius: 50%;
	background: linear-gradient(135deg, #ffeedf 0%, #ffb774 100%);
	box-shadow: 0 2px 8px rgba(255, 180, 136, 0.35);
}

.chat-placeholder-icon[b-qyi16wkjwk] {
    opacity: 0.92;
}

.chat-placeholder-text[b-qyi16wkjwk] {
    line-height: 1.55;
    margin: 0 !important;
}

.chat-messages[b-qyi16wkjwk] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--mud-palette-primary, #1976d2) 35%, transparent) transparent;
}

.chat-messages[b-qyi16wkjwk]::-webkit-scrollbar {
    width: 6px;
}

.chat-messages[b-qyi16wkjwk]::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--mud-palette-primary, #1976d2) 35%, transparent);
    border-radius: 999px;
}

.chat-messages[b-qyi16wkjwk]::-webkit-scrollbar-track {
    background: transparent;
}

.chat-bubble-wrap[b-qyi16wkjwk] {
    max-width: 85%;
}

.tool-info-line[b-qyi16wkjwk] {
    padding: 2px 16px;
    opacity: 0.7;
    font-style: italic;
}

.chat-input-area[b-qyi16wkjwk] {
    flex-shrink: 0;
    padding: 8px 16px 12px;
    border-top: 1px solid var(--mud-palette-lines-default, #e2e8f0);
    background: linear-gradient(
        180deg,
        color-mix(in srgb, var(--mud-palette-surface, #f8fafc) 92%, var(--mud-palette-primary, #1976d2) 8%) 0%,
        var(--mud-palette-surface, #f8fafc) 100%
    );
}

.chat-input-field[b-qyi16wkjwk] {
    width: 100%;
}

.chat-input-field[b-qyi16wkjwk]  .mud-input-outlined .mud-input-outlined-border {
    border-radius: 12px;
}

.chat-input-field[b-qyi16wkjwk]  .mud-input-slot {
    padding-top: 10px;
    padding-bottom: 10px;
}

.thinking-toggle[b-qyi16wkjwk] {
    min-width: 0;
    padding-left: 0;
    justify-content: flex-start;
    text-transform: none;
}

.thinking-panel[b-qyi16wkjwk] {
    background: color-mix(in srgb, var(--mud-palette-surface, #f8fafc) 88%, var(--mud-palette-primary, #1976d2) 12%);
    border: 1px solid var(--mud-palette-lines-default, #e2e8f0);
    border-radius: 10px;
}

.thinking-label[b-qyi16wkjwk] {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.thinking-content[b-qyi16wkjwk] {
    white-space: pre-wrap;
}

/* Markdown rendered inside AI chat bubbles */
.assistant-response[b-qyi16wkjwk] {
    min-width: 0;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown {
    font-size: 0.875rem;
    line-height: 1.65;
    color: var(--mud-palette-text-primary, inherit);
    word-break: break-word;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown > :first-child {
    margin-top: 0;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown > :last-child {
    margin-bottom: 0;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown h1,
.assistant-response[b-qyi16wkjwk]  .chat-markdown h2,
.assistant-response[b-qyi16wkjwk]  .chat-markdown h3,
.assistant-response[b-qyi16wkjwk]  .chat-markdown h4 {
    margin: 0.9em 0 0.35em;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown h1 { font-size: 1.15rem; }
.assistant-response[b-qyi16wkjwk]  .chat-markdown h2 { font-size: 1.05rem; }
.assistant-response[b-qyi16wkjwk]  .chat-markdown h3 { font-size: 0.95rem; }
.assistant-response[b-qyi16wkjwk]  .chat-markdown h4 { font-size: 0.875rem; }

.assistant-response[b-qyi16wkjwk]  .chat-markdown p {
    margin: 0 0 0.7em;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown ul,
.assistant-response[b-qyi16wkjwk]  .chat-markdown ol {
    margin: 0.35em 0 0.7em 1.35em;
    padding: 0;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown li {
    margin-bottom: 0.25em;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown li > p {
    margin: 0.2em 0 0.35em;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown code {
    background: color-mix(in srgb, var(--mud-palette-surface, #f8fafc) 78%, var(--mud-palette-text-primary, #111827) 7%);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default, #e2e8f0) 78%, var(--mud-palette-text-primary, #111827) 8%);
    border-radius: 5px;
    padding: 0.15em 0.4em;
    font-size: 0.82em;
    font-family: 'Cascadia Code', 'Fira Code', Consolas, monospace;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown pre {
    background: color-mix(in srgb, var(--mud-palette-surface, #f8fafc) 90%, var(--mud-palette-dark, #111827) 10%);
    border: 1px solid var(--mud-palette-lines-default, #e2e8f0);
    border-radius: 10px;
    padding: 0.85em 1em;
    margin: 0.75em 0;
    overflow-x: auto;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.92em;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown .chat-markdown-table-wrap {
    margin: 0.8em 0 0.95em;
    overflow-x: auto;
    border: 1px solid var(--mud-palette-lines-default, #e2e8f0);
    border-radius: 10px;
    background: var(--mud-palette-background, #fff);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown .chat-markdown-table-wrap table {
    width: 100%;
    min-width: 26rem;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.82em;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown .chat-markdown-table-wrap th,
.assistant-response[b-qyi16wkjwk]  .chat-markdown .chat-markdown-table-wrap td {
    padding: 0.55em 0.75em;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--mud-palette-lines-default, #e2e8f0);
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown .chat-markdown-table-wrap th + th,
.assistant-response[b-qyi16wkjwk]  .chat-markdown .chat-markdown-table-wrap td + td {
    border-left: 1px solid var(--mud-palette-lines-default, #e2e8f0);
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown .chat-markdown-table-wrap thead th {
    background: color-mix(in srgb, var(--mud-palette-surface, #f8fafc) 88%, var(--mud-palette-primary, #1976d2) 12%);
    font-weight: 700;
    white-space: nowrap;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown .chat-markdown-table-wrap thead th:first-child {
    border-top-left-radius: 10px;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown .chat-markdown-table-wrap thead th:last-child {
    border-top-right-radius: 10px;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown .chat-markdown-table-wrap tbody tr:nth-child(even) {
    background: color-mix(in srgb, var(--mud-palette-surface, #f8fafc) 94%, var(--mud-palette-primary, #1976d2) 6%);
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown .chat-markdown-table-wrap tbody tr:last-child td {
    border-bottom: none;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown blockquote {
    margin: 0.75em 0;
    padding: 0.7em 0.95em;
    border-left: 4px solid var(--mud-palette-primary, #1976d2);
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--mud-palette-surface, #f8fafc) 90%, var(--mud-palette-primary, #1976d2) 10%);
    color: var(--mud-palette-text-secondary, #666);
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown blockquote > :last-child {
    margin-bottom: 0;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown hr {
    border: none;
    border-top: 1px solid var(--mud-palette-lines-default, #e2e8f0);
    margin: 1em 0;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown strong {
    font-weight: 700;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown a {
    color: var(--mud-palette-primary, #1976d2);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.14em;
}

.assistant-response[b-qyi16wkjwk]  .chat-markdown img {
    max-width: 100%;
    border-radius: 8px;
}

/* ─── DIFF_TABLE renderer ─── */

.assistant-response[b-qyi16wkjwk]  .chat-diff-table-wrap {
    overflow-x: auto;
    margin: 0.6em 0;
}

.assistant-response[b-qyi16wkjwk]  .chat-diff-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85em;
    border: 1px solid var(--mud-palette-lines-default, #e2e8f0);
    border-radius: 6px;
    overflow: hidden;
}

.assistant-response[b-qyi16wkjwk]  .chat-diff-table thead th {
    background: var(--mud-palette-surface, #f8fafc);
    padding: 6px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--mud-palette-lines-default, #e2e8f0);
}

.assistant-response[b-qyi16wkjwk]  .chat-diff-table .chat-diff-op-col {
    width: 32px;
    text-align: center;
}

.assistant-response[b-qyi16wkjwk]  .chat-diff-table tbody td {
    padding: 5px 10px;
    border-bottom: 1px solid var(--mud-palette-lines-default, #e2e8f0);
}

.assistant-response[b-qyi16wkjwk]  .chat-diff-table tbody tr:last-child td {
    border-bottom: none;
}

.assistant-response[b-qyi16wkjwk]  .chat-diff-table .chat-diff-op-cell {
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
}

.assistant-response[b-qyi16wkjwk]  .chat-diff-icon.diff-add {
    color: #2e7d32;
}

.assistant-response[b-qyi16wkjwk]  .chat-diff-icon.diff-delete {
    color: #c62828;
}

.assistant-response[b-qyi16wkjwk]  .chat-diff-icon.diff-modify {
    color: #e65100;
}

.assistant-response[b-qyi16wkjwk]  .chat-diff-table tr.diff-add {
    background: color-mix(in srgb, transparent 92%, #2e7d32 8%);
}

.assistant-response[b-qyi16wkjwk]  .chat-diff-table tr.diff-delete {
    background: color-mix(in srgb, transparent 92%, #c62828 8%);
}

.assistant-response[b-qyi16wkjwk]  .chat-diff-table tr.diff-modify {
    background: color-mix(in srgb, transparent 92%, #e65100 8%);
}

/* ─── MAPPING_IMPACT renderer ─── */

.assistant-response[b-qyi16wkjwk]  .chat-mapping-impact-wrap {
    margin: 0.6em 0;
    border: 1px solid #ef6c00;
    border-radius: 6px;
    overflow: hidden;
}

.assistant-response[b-qyi16wkjwk]  .chat-mapping-impact-warning {
    background: #fff3e0;
    color: #e65100;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.85em;
}

.assistant-response[b-qyi16wkjwk]  .chat-mapping-impact-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82em;
}

.assistant-response[b-qyi16wkjwk]  .chat-mapping-impact-table thead th {
    background: #fff8e1;
    padding: 5px 10px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #ffe0b2;
}

.assistant-response[b-qyi16wkjwk]  .chat-mapping-impact-table tbody td {
    padding: 4px 10px;
    border-bottom: 1px solid #ffe0b2;
}

.assistant-response[b-qyi16wkjwk]  .chat-mapping-impact-table tbody tr:last-child td {
    border-bottom: none;
}
/* /Components/Pages/AIChat.razor.rz.scp.css */
.ai-chat-page[b-fr7h16w5bj] {
    display: flex;
    height: calc(100vh - 64px);
    overflow: hidden;
}

/* --- Left sidebar --- */

.sidebar[b-fr7h16w5bj] {
    width: 300px;
    min-width: 240px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--mud-palette-lines-default, #e2e8f0);
    background: var(--mud-palette-surface, #f8fafc);
    overflow: hidden;
}

.sidebar-header[b-fr7h16w5bj] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--mud-palette-lines-default, #e2e8f0);
    flex-shrink: 0;
}

.sidebar-header h5[b-fr7h16w5bj] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.sidebar[b-fr7h16w5bj]  .mud-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 0;
    scrollbar-width: thin;
}

.session-item[b-fr7h16w5bj] {
    border-bottom: 1px solid color-mix(in srgb, var(--mud-palette-lines-default) 50%, transparent);
    transition: background 0.15s ease;
}

.session-item:hover[b-fr7h16w5bj] {
    background: color-mix(in srgb, var(--mud-palette-primary, #1976d2) 6%, transparent);
}

.session-item.active[b-fr7h16w5bj] {
    background: color-mix(in srgb, var(--mud-palette-primary, #1976d2) 10%, transparent);
    border-left: 3px solid var(--mud-palette-primary, #1976d2);
}

.loading-indicator[b-fr7h16w5bj] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 24px 16px;
    color: var(--mud-palette-text-secondary);
    font-size: 0.875rem;
}

.empty-state[b-fr7h16w5bj] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    text-align: center;
    color: var(--mud-palette-text-secondary);
    flex: 1;
}

.empty-state .empty-icon[b-fr7h16w5bj] {
    font-size: 2.5rem;
    opacity: 0.4;
    margin-bottom: 12px;
}

.empty-state p[b-fr7h16w5bj] {
    margin: 0 0 4px;
    font-weight: 500;
}

.empty-state small[b-fr7h16w5bj] {
    opacity: 0.7;
}

[b-fr7h16w5bj] .message-count-chip {
    min-width: 28px;
    height: 22px;
    font-size: 0.75rem;
}

/* --- Right chat area --- */

.chat-container[b-fr7h16w5bj] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ChatWindow inside the container should fill available space */
.chat-container[b-fr7h16w5bj]  .chat-window {
    flex: 1;
    max-height: none;
    min-height: 0;
    height: 100%;
}

.welcome-screen[b-fr7h16w5bj] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.welcome-content[b-fr7h16w5bj] {
    text-align: center;
    max-width: 400px;
    padding: 24px;
}

.welcome-content h2[b-fr7h16w5bj] {
    margin: 16px 0 8px;
    font-weight: 600;
}

.welcome-content p[b-fr7h16w5bj] {
    color: var(--mud-palette-text-secondary);
    margin-bottom: 24px;
    line-height: 1.6;
}

[b-fr7h16w5bj] .welcome-icon {
    font-size: 3rem !important;
    color: var(--mud-palette-primary);
    opacity: 0.7;
}

/* --- Responsive: stack on narrow viewports --- */

@media (max-width: 768px) {
    .ai-chat-page[b-fr7h16w5bj] {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 64px);
    }

    .sidebar[b-fr7h16w5bj] {
        width: 100%;
        max-height: 35vh;
        border-right: none;
        border-bottom: 1px solid var(--mud-palette-lines-default, #e2e8f0);
    }

    .chat-container[b-fr7h16w5bj] {
        flex: 1;
        min-height: 50vh;
    }
}
