/* /Components/Layout/GttaChat.razor.rz.scp.css */
.gtta-chat-header[b-tg3un8g29r] {
    display: flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.5em 0.75em;
    border-bottom: 1px solid var(--kendo-color-border, #d0d7de);
    background: var(--kendo-color-surface-alt, #fafafa);
    flex-shrink: 0;
}

.gtta-chat-title[b-tg3un8g29r] {
    font-weight: 600;
    font-size: 1em;
    flex: 1;
    min-width: 0;
}

.gtta-chat-title-truncate[b-tg3un8g29r] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gtta-chat-header-actions[b-tg3un8g29r] {
    display: flex;
    align-items: center;
    gap: 0.1em;
    margin-left: auto;
    flex-shrink: 0;
}

.gtta-chat-list[b-tg3un8g29r] {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 0.5em;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}

.gtta-chat-list[b-tg3un8g29r]::-webkit-scrollbar {
    width: 10px;
}

.gtta-chat-list[b-tg3un8g29r]::-webkit-scrollbar-track {
    background: transparent;
}

.gtta-chat-list[b-tg3un8g29r]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

.gtta-chat-list[b-tg3un8g29r]::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
    background-clip: content-box;
}

.gtta-chat-empty[b-tg3un8g29r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1em;
    padding: 3em 1em;
    text-align: center;
    color: var(--kendo-color-subtle, #666);
}

.gtta-chat-list-item[b-tg3un8g29r] {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.6em 0.75em;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.gtta-chat-list-item:hover[b-tg3un8g29r] {
    background: var(--kendo-color-base-hover, #e8e8e8);
}

.gtta-chat-list-item-content[b-tg3un8g29r] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15em;
}

.gtta-chat-list-item-title[b-tg3un8g29r] {
    font-size: 0.9em;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gtta-chat-list-item-time[b-tg3un8g29r] {
    font-size: 0.75em;
    color: var(--kendo-color-subtle, #888);
}

.gtta-chat-tool-status[b-tg3un8g29r] {
    display: flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.4em 0.75em;
    font-size: 0.8em;
    color: var(--kendo-color-primary, #0078d4);
    background: var(--kendo-color-primary-subtle, #eff6fc);
    border-bottom: 1px solid var(--kendo-color-border, #d0d7de);
    flex-shrink: 0;
}

.gtta-chat-tool-dot[b-tg3un8g29r] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: gtta-pulse-b-tg3un8g29r 1s ease-in-out infinite;
}

@keyframes gtta-pulse-b-tg3un8g29r {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.gtta-chat-body[b-tg3un8g29r] {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

[b-tg3un8g29r] .k-chat {
    border: none;
    border-radius: 0;
    background: transparent;
    width: 100%;
    height: 100%;
    min-height: 0;
    max-height: 100%;
}

[b-tg3un8g29r] .k-message-list {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.45) transparent;
}

[b-tg3un8g29r] .k-message-list::-webkit-scrollbar {
    width: 10px;
}

[b-tg3un8g29r] .k-message-list::-webkit-scrollbar-track {
    background: transparent;
}

[b-tg3un8g29r] .k-message-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.45);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: content-box;
}

[b-tg3un8g29r] .k-message-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.7);
    background-clip: content-box;
}

[b-tg3un8g29r] .k-message-box {
    border-top: 1px solid var(--kendo-color-border, #d0d7de);
}

/*
 * Telerik default clamps every .k-message-group at min(75%, 460px).
 * In a 600 px chat pane that 460 px cap renders AI replies at roughly
 * half the pane width, which wastes real estate for prose, tables, and
 * code blocks. Widen receiver (AI) bubbles to use the available width
 * and keep the user's own (sender) bubbles compact and right-aligned.
 */
[b-tg3un8g29r] .k-message-group:not(.k-message-group-sender) {
    max-width: 95%;
}

[b-tg3un8g29r] .k-message-group-sender {
    max-width: 80%;
}

[b-tg3un8g29r] .k-bubble p:first-child {
    margin-top: 0;
}

[b-tg3un8g29r] .k-bubble p:last-child {
    margin-bottom: 0;
}

[b-tg3un8g29r] .k-bubble pre {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
    padding: 0.5em 0.75em;
    overflow-x: auto;
    margin: 0.4em 0;
}

[b-tg3un8g29r] .k-bubble code {
    font-size: 0.875em;
}

[b-tg3un8g29r] .k-bubble pre code {
    background: none;
    padding: 0;
}

[b-tg3un8g29r] .k-bubble table {
    border-collapse: collapse;
    width: 100%;
    margin: 0.4em 0;
    font-size: 0.85em;
}

[b-tg3un8g29r] .k-bubble th,
[b-tg3un8g29r] .k-bubble td {
    border: 1px solid var(--kendo-color-border, rgba(255, 255, 255, 0.12));
    padding: 0.25em 0.5em;
    text-align: left;
}

[b-tg3un8g29r] .k-bubble th {
    background: rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

[b-tg3un8g29r] .k-bubble blockquote {
    border-left: 3px solid var(--kendo-color-primary, #4ade80);
    margin: 0.4em 0;
    padding: 0.2em 0.6em;
    opacity: 0.85;
}

[b-tg3un8g29r] .k-bubble ul,
[b-tg3un8g29r] .k-bubble ol {
    margin: 0.4em 0;
    padding-left: 1.5em;
}

[b-tg3un8g29r] .k-bubble img {
    max-width: 100%;
    height: auto;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
