@import '_content/Microsoft.AspNetCore.Components.QuickGrid/Microsoft.AspNetCore.Components.QuickGrid.bundle.scp.css';
@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.84wtju4z0n.bundle.scp.css';

/* /Components/Layout/CommandPalette.razor.rz.scp.css */
/* ══════════════════════════════════════════════════════════════
   Command Palette — Premium Glassmorphism Design
   ══════════════════════════════════════════════════════════════ */

/* Overlay */
.cmd-palette-overlay[b-0f112dk1ni] {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    animation: cmdOverlayIn-b-0f112dk1ni 0.18s ease-out;
}

@keyframes cmdOverlayIn-b-0f112dk1ni {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Palette Container */
.cmd-palette[b-0f112dk1ni] {
    width: 620px;
    max-width: 94vw;
    max-height: 520px;
    background: linear-gradient(135deg, rgba(255,255,255,0.97) 0%, rgba(248,250,252,0.98) 100%);
    border-radius: 16px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.18),
        0 8px 24px rgba(0, 0, 0, 0.10),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: cmdPaletteIn-b-0f112dk1ni 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: top center;
}

@keyframes cmdPaletteIn-b-0f112dk1ni {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(-12px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Header / Search */
.cmd-palette-header[b-0f112dk1ni] {
    padding: 6px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cmd-palette-search-wrapper[b-0f112dk1ni] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    transition: background 0.15s;
}

.cmd-palette-search-wrapper:focus-within[b-0f112dk1ni] {
    background: rgba(59, 130, 246, 0.06);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.cmd-palette-search-icon[b-0f112dk1ni] {
    color: #94a3b8;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.cmd-palette-input[b-0f112dk1ni] {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 500;
    color: #1e293b;
    outline: none;
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.01em;
}

.cmd-palette-input[b-0f112dk1ni]::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.cmd-palette-kbd[b-0f112dk1ni] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 24px;
    padding: 0 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    font-family: 'Segoe UI', monospace;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

/* Results List */
.cmd-palette-results[b-0f112dk1ni] {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    scroll-behavior: smooth;
}

.cmd-palette-results[b-0f112dk1ni]::-webkit-scrollbar {
    width: 6px;
}

.cmd-palette-results[b-0f112dk1ni]::-webkit-scrollbar-track {
    background: transparent;
}

.cmd-palette-results[b-0f112dk1ni]::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
    border-radius: 3px;
}

.cmd-palette-results[b-0f112dk1ni]::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.22);
}

/* Category Label */
.cmd-palette-category[b-0f112dk1ni] {
    padding: 10px 12px 4px;
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    user-select: none;
}

/* Result Item */
.cmd-palette-item[b-0f112dk1ni] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.1s ease;
    user-select: none;
    position: relative;
}

.cmd-palette-item:hover[b-0f112dk1ni],
.cmd-palette-item.selected[b-0f112dk1ni] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(99, 102, 241, 0.06) 100%);
}

.cmd-palette-item.selected[b-0f112dk1ni] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(99, 102, 241, 0.08) 100%);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.cmd-palette-item-icon[b-0f112dk1ni] {
    font-size: 18px;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
}

.cmd-palette-item.selected .cmd-palette-item-icon[b-0f112dk1ni] {
    background: rgba(59, 130, 246, 0.12);
}

.cmd-palette-item-text[b-0f112dk1ni] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cmd-palette-item-name[b-0f112dk1ni] {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.cmd-palette-item.selected .cmd-palette-item-name[b-0f112dk1ni] {
    color: #2563eb;
}

.cmd-palette-item-url[b-0f112dk1ni] {
    font-size: 12px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
    line-height: 1.3;
}

.cmd-palette-item-arrow[b-0f112dk1ni] {
    flex-shrink: 0;
    color: #cbd5e1;
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
}

.cmd-palette-item:hover .cmd-palette-item-arrow[b-0f112dk1ni],
.cmd-palette-item.selected .cmd-palette-item-arrow[b-0f112dk1ni] {
    opacity: 1;
    transform: translateX(0);
    color: #3b82f6;
}

/* Empty State */
.cmd-palette-empty[b-0f112dk1ni] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

/* Footer */
.cmd-palette-footer[b-0f112dk1ni] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(248, 250, 252, 0.8);
}

.cmd-palette-footer-hint[b-0f112dk1ni] {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

.cmd-palette-footer-hint kbd[b-0f112dk1ni] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 20px;
    padding: 0 5px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    font-family: 'Segoe UI', monospace;
}

.cmd-palette-footer-count[b-0f112dk1ni] {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-5mn8at487b] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-5mn8at487b] {
    flex: 1;
}

#blazor-error-ui[b-5mn8at487b] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss[b-5mn8at487b] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-zplbyosizb] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-zplbyosizb] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-zplbyosizb] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-zplbyosizb] {
    font-size: 1.1rem;
}

.bi[b-zplbyosizb] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-zplbyosizb] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-zplbyosizb] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-zplbyosizb] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.bi-lock-nav-menu[b-zplbyosizb] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath d='M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2zm3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2zM5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
}

.bi-person-nav-menu[b-zplbyosizb] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person' viewBox='0 0 16 16'%3E%3Cpath d='M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0Zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4Zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10Z'/%3E%3C/svg%3E");
}

.bi-person-badge-nav-menu[b-zplbyosizb] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-badge' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 2a.5.5 0 0 0 0 1h3a.5.5 0 0 0 0-1h-3zM11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0z'/%3E%3Cpath d='M4.5 0A2.5 2.5 0 0 0 2 2.5V14a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2.5A2.5 2.5 0 0 0 11.5 0h-7zM3 2.5A1.5 1.5 0 0 1 4.5 1h7A1.5 1.5 0 0 1 13 2.5v10.795a4.2 4.2 0 0 0-.776-.492C11.392 12.387 10.063 12 8 12s-3.392.387-4.224.803a4.2 4.2 0 0 0-.776.492V2.5z'/%3E%3C/svg%3E");
}

.bi-person-fill-nav-menu[b-zplbyosizb] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-person-fill' viewBox='0 0 16 16'%3E%3Cpath d='M3 14s-1 0-1-1 1-4 6-4 6 3 6 4-1 1-1 1H3Zm5-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6Z'/%3E%3C/svg%3E");
}

.bi-arrow-bar-left-nav-menu[b-zplbyosizb] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-arrow-bar-left' viewBox='0 0 16 16'%3E%3Cpath d='M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5ZM10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5Z'/%3E%3C/svg%3E");
}

.nav-item[b-zplbyosizb] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-zplbyosizb] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-zplbyosizb] {
        padding-bottom: 1rem;
    }

    .nav-item[b-zplbyosizb]  .nav-link {
        color: #d7d7d7;
        background: none;
        border: none;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        width: 100%;
    }

.nav-item[b-zplbyosizb]  a.active {
    background-color: rgba(255,255,255,0.37);
    color: white;
}

.nav-item[b-zplbyosizb]  .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

.nav-scrollable[b-zplbyosizb] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-zplbyosizb] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-zplbyosizb] {
        display: none;
    }

    .nav-scrollable[b-zplbyosizb] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-4dpws3vd7p],
.components-reconnect-repeated-attempt-visible[b-4dpws3vd7p],
.components-reconnect-failed-visible[b-4dpws3vd7p],
.components-pause-visible[b-4dpws3vd7p],
.components-resume-failed-visible[b-4dpws3vd7p],
.components-rejoining-animation[b-4dpws3vd7p] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-4dpws3vd7p],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-4dpws3vd7p],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-4dpws3vd7p],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-4dpws3vd7p],
#components-reconnect-modal.components-reconnect-retrying[b-4dpws3vd7p],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-4dpws3vd7p],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-4dpws3vd7p],
#components-reconnect-modal.components-reconnect-failed[b-4dpws3vd7p],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-4dpws3vd7p] {
    display: block;
}


#components-reconnect-modal[b-4dpws3vd7p] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-4dpws3vd7p 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-4dpws3vd7p 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-4dpws3vd7p 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-4dpws3vd7p]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-4dpws3vd7p 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-4dpws3vd7p {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-4dpws3vd7p {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-4dpws3vd7p {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-4dpws3vd7p] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-4dpws3vd7p] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-4dpws3vd7p] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-4dpws3vd7p] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-4dpws3vd7p] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-4dpws3vd7p] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-4dpws3vd7p] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-4dpws3vd7p 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-4dpws3vd7p] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-4dpws3vd7p {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/McpChat.razor.rz.scp.css */
/* MCP Chat — Full-width bright & colorful AI chat interface */
/* NOTE: Blazor scoped CSS does NOT support :root variables.
   All values are hardcoded directly to avoid invisible text/backgrounds. */

/* ─── Layout ─── */
.mcp-layout[b-5i3ftxihgw] {
    display: flex;
    height: calc(100vh - 70px);
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #f8f9fc;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Sidebar ─── */
.mcp-sidebar[b-5i3ftxihgw] {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    flex-direction: column;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    flex-shrink: 0;
}

.mcp-layout.sidebar-closed .mcp-sidebar[b-5i3ftxihgw] {
    margin-left: -280px;
}

.mcp-sidebar-header[b-5i3ftxihgw] {
    padding: 16px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.mcp-new-chat-btn[b-5i3ftxihgw] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
}

.mcp-new-chat-btn:hover[b-5i3ftxihgw] {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.mcp-toggle-sidebar-btn[b-5i3ftxihgw] {
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.mcp-toggle-sidebar-btn:hover[b-5i3ftxihgw] {
    background: #f1f5f9;
    color: #334155;
}

.mcp-header-toggle[b-5i3ftxihgw] {
    color: white;
    margin-right: -4px;
}

.mcp-header-toggle:hover[b-5i3ftxihgw] {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.mcp-sidebar-content[b-5i3ftxihgw] {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.mcp-sidebar-content[b-5i3ftxihgw]::-webkit-scrollbar {
    width: 4px;
}
.mcp-sidebar-content[b-5i3ftxihgw]::-webkit-scrollbar-track {
    background: transparent;
}
.mcp-sidebar-content[b-5i3ftxihgw]::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
}

.mcp-sidebar-title[b-5i3ftxihgw] {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.mcp-sidebar-empty[b-5i3ftxihgw] {
    font-size: 13px;
    color: #94a3b8;
    text-align: center;
    padding: 20px 0;
}

.mcp-session-list[b-5i3ftxihgw] {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mcp-session-item[b-5i3ftxihgw] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #475569;
    background: transparent;
}

.mcp-session-item:hover[b-5i3ftxihgw] {
    background: #f1f5f9;
    color: #1e293b;
}

.mcp-session-item.active[b-5i3ftxihgw] {
    background: rgba(99, 102, 241, 0.1);
    color: #4f46e5;
    font-weight: 600;
}

.mcp-session-icon[b-5i3ftxihgw] {
    font-size: 14px;
    filter: grayscale(1);
    opacity: 0.7;
}

.mcp-session-item.active .mcp-session-icon[b-5i3ftxihgw] {
    filter: none;
    opacity: 1;
}

.mcp-session-text[b-5i3ftxihgw] {
    flex: 1;
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcp-session-delete[b-5i3ftxihgw] {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
}

.mcp-session-item:hover .mcp-session-delete[b-5i3ftxihgw] {
    display: flex;
}

.mcp-session-delete:hover[b-5i3ftxihgw] {
    background: #fee2e2;
    color: #ef4444;
}


/* ─── Container — flexible width ─── */
.mcp-chat-container[b-5i3ftxihgw] {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    overflow: hidden;
    position: relative;
}

/* ─── Animated background gradient ─── */
.mcp-chat-container[b-5i3ftxihgw]::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 0%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(16, 185, 129, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Header ─── */
.mcp-chat-header[b-5i3ftxihgw] {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 28px;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    background: linear-gradient(135deg, #6366f1 0%, #7c3aed 40%, #a855f7 100%);
    color: #fff;
    box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

.mcp-chat-header-icon[b-5i3ftxihgw] {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.mcp-chat-header-info h2[b-5i3ftxihgw] {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.mcp-chat-header-info p[b-5i3ftxihgw] {
    margin: 2px 0 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.mcp-chat-header-status[b-5i3ftxihgw] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 14px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

.mcp-chat-header-status[b-5i3ftxihgw]::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.7);
    animation: mcp-pulse-b-5i3ftxihgw 2s ease-in-out infinite;
}

@keyframes mcp-pulse-b-5i3ftxihgw {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ─── Messages area ─── */
.mcp-chat-messages[b-5i3ftxihgw] {
    position: relative;
    z-index: 1;
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

/* Custom scrollbar */
.mcp-chat-messages[b-5i3ftxihgw]::-webkit-scrollbar {
    width: 6px;
}

.mcp-chat-messages[b-5i3ftxihgw]::-webkit-scrollbar-track {
    background: transparent;
}

.mcp-chat-messages[b-5i3ftxihgw]::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.2);
    border-radius: 10px;
}

.mcp-chat-messages[b-5i3ftxihgw]::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.35);
}

/* ─── Welcome card ─── */
.mcp-welcome-card[b-5i3ftxihgw] {
    text-align: center;
    padding: 60px 40px;
    animation: mcp-fade-up-b-5i3ftxihgw 0.6s ease-out;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.04) 0%, transparent 100%);
    border-radius: 24px;
    max-width: 750px;
    margin: 0 auto;
}

.mcp-welcome-icon[b-5i3ftxihgw] {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
    animation: mcp-float-b-5i3ftxihgw 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.3));
}

@keyframes mcp-float-b-5i3ftxihgw {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.mcp-welcome-card h3[b-5i3ftxihgw] {
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mcp-welcome-card p[b-5i3ftxihgw] {
    color: #475569;
    font-size: 15px;
    margin: 0 0 28px 0;
    line-height: 1.7;
}

.mcp-suggestion-chips[b-5i3ftxihgw] {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.mcp-suggestion-chip[b-5i3ftxihgw] {
    padding: 10px 20px;
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.15);
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.mcp-suggestion-chip:hover[b-5i3ftxihgw] {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-color: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

/* ─── Message bubbles ─── */
.mcp-message[b-5i3ftxihgw] {
    display: flex;
    gap: 8px;
    animation: mcp-fade-up-b-5i3ftxihgw 0.3s ease-out;
    max-width: 100%;
}

.mcp-message-user[b-5i3ftxihgw] {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.mcp-message-assistant[b-5i3ftxihgw] {
    align-self: flex-start;
    width: 100%;
}

@keyframes mcp-fade-up-b-5i3ftxihgw {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mcp-message-avatar[b-5i3ftxihgw] {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.mcp-message-user .mcp-message-avatar[b-5i3ftxihgw] {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.3);
}

.mcp-message-assistant .mcp-message-avatar[b-5i3ftxihgw] {
    background: linear-gradient(135deg, #f0f4ff, #e8ecff);
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.mcp-message-bubble[b-5i3ftxihgw] {
    padding: 8px 12px;
    border-radius: 12px;
    line-height: 2.04;
    font-size: 16.8px;
    position: relative;
    word-wrap: break-word;
}

/* ── User message bubble ── */
.mcp-message-user .mcp-message-bubble[b-5i3ftxihgw] {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: #ffffff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 3px 12px rgba(99, 102, 241, 0.2);
}

/* Force user text to be white */
.mcp-message-user .mcp-message-bubble p[b-5i3ftxihgw],
.mcp-message-user .mcp-message-bubble span[b-5i3ftxihgw],
.mcp-message-user .mcp-message-bubble li[b-5i3ftxihgw],
.mcp-message-user .mcp-message-bubble td[b-5i3ftxihgw] {
    color: #ffffff !important;
}

/* ── Assistant message bubble ── */
.mcp-message-assistant .mcp-message-bubble[b-5i3ftxihgw] {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(99, 102, 241, 0.08);
    width: 100%;
    flex: 1;
    overflow-x: auto;
}

/* Force assistant text to be dark */
.mcp-message-assistant .mcp-message-bubble p[b-5i3ftxihgw],
.mcp-message-assistant .mcp-message-bubble span[b-5i3ftxihgw],
.mcp-message-assistant .mcp-message-bubble li[b-5i3ftxihgw] {
    color: #1e293b;
}

.mcp-message-bubble p[b-5i3ftxihgw] {
    margin: 0 0 4px 0;
}

.mcp-message-bubble p:last-child[b-5i3ftxihgw] {
    margin-bottom: 0;
}

.mcp-message-bubble pre[b-5i3ftxihgw] {
    background: #f1f5f9;
    border-radius: 6px;
    padding: 14px;
    overflow-x: auto;
    font-size: 12.5px;
    margin: 10px 0;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.mcp-message-bubble code[b-5i3ftxihgw] {
    font-family: 'Fira Code', 'Cascadia Code', monospace;
    font-size: 12.5px;
}

/* Inline code (not inside pre) */
.mcp-message-bubble > code[b-5i3ftxihgw],
.mcp-message-bubble p code[b-5i3ftxihgw],
.mcp-message-bubble li code[b-5i3ftxihgw],
.mcp-message-bubble td code[b-5i3ftxihgw] {
    background: rgba(99, 102, 241, 0.08);
    color: #4f46e5;
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 12.5px;
}

/* User message inline code override */
.mcp-message-user .mcp-message-bubble > code[b-5i3ftxihgw],
.mcp-message-user .mcp-message-bubble p code[b-5i3ftxihgw],
.mcp-message-user .mcp-message-bubble li code[b-5i3ftxihgw],
.mcp-message-user .mcp-message-bubble td code[b-5i3ftxihgw] {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.mcp-message-bubble table[b-5i3ftxihgw] {
    border-collapse: collapse;
    width: 100%;
    margin: 6px 0;
    font-size: 15.6px;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid #000000;
}

.mcp-message-bubble th[b-5i3ftxihgw],
.mcp-message-bubble td[b-5i3ftxihgw] {
    padding: 5px 8px;
    border: 1px solid #000000;
    text-align: left;
    color: #1e293b;
}

.mcp-message-bubble th[b-5i3ftxihgw] {
    background: linear-gradient(135deg, #eef2ff, #e8ecff);
    font-weight: 600;
    color: #4f46e5;
    white-space: nowrap;
}

.mcp-message-bubble tbody tr:nth-child(even)[b-5i3ftxihgw] {
    background: #f8fafc;
}

.mcp-message-bubble tbody tr:hover[b-5i3ftxihgw] {
    background: rgba(99, 102, 241, 0.06);
}

.mcp-message-bubble ul[b-5i3ftxihgw],
.mcp-message-bubble ol[b-5i3ftxihgw] {
    padding-left: 18px;
    margin: 4px 0;
}

.mcp-message-bubble li[b-5i3ftxihgw] {
    margin-bottom: 2px;
    color: #1e293b;
}

.mcp-message-bubble strong[b-5i3ftxihgw] {
    color: #4f46e5;
    font-weight: 700;
}

/* User message strong override */
.mcp-message-user .mcp-message-bubble strong[b-5i3ftxihgw] {
    color: #fff;
}

/* ─── Copy Button ─── */
.mcp-copy-markdown-btn[b-5i3ftxihgw] {
    display: inline-flex;
    align-items: center;
    background: transparent;
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #6366f1;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mcp-copy-markdown-btn:hover[b-5i3ftxihgw] {
    background: rgba(99, 102, 241, 0.1);
}

/* ─── Tool call indicators ─── */
.mcp-tool-calls[b-5i3ftxihgw] {
    margin-top: 12px;
    display: none;
    flex-direction: column;
    gap: 6px;
}

.mcp-tool-call-badge[b-5i3ftxihgw] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 20px;
    font-size: 11.5px;
    color: #059669;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcp-tool-call-badge:hover[b-5i3ftxihgw] {
    background: rgba(16, 185, 129, 0.15);
    transform: translateY(-1px);
}

.mcp-tool-call-badge .mcp-tool-icon[b-5i3ftxihgw] {
    font-size: 12px;
}

.mcp-tool-call-detail[b-5i3ftxihgw] {
    margin-top: 6px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    font-size: 11.5px;
    color: #475569;
    max-height: 220px;
    overflow-y: auto;
    animation: mcp-fade-up-b-5i3ftxihgw 0.2s ease-out;
}

.mcp-tool-call-detail pre[b-5i3ftxihgw] {
    margin: 0;
    white-space: pre-wrap;
    font-size: 11.5px;
    color: #475569;
    background: none;
    border: none;
    padding: 0;
}

.mcp-tool-call-detail strong[b-5i3ftxihgw] {
    color: #4f46e5 !important;
}

/* ─── Typing indicator ─── */
.mcp-typing-indicator[b-5i3ftxihgw] {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: mcp-fade-up-b-5i3ftxihgw 0.3s ease-out;
    align-self: flex-start;
}

.mcp-typing-dots[b-5i3ftxihgw] {
    display: flex;
    gap: 5px;
    padding: 16px 22px;
    background: #fff;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 12px;
    border-bottom-left-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(99, 102, 241, 0.08);
}

.mcp-typing-dot[b-5i3ftxihgw] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #818cf8;
    animation: mcp-bounce-b-5i3ftxihgw 1.4s ease-in-out infinite;
}

.mcp-typing-dot:nth-child(2)[b-5i3ftxihgw] { animation-delay: 0.16s; }
.mcp-typing-dot:nth-child(3)[b-5i3ftxihgw] { animation-delay: 0.32s; }

@keyframes mcp-bounce-b-5i3ftxihgw {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.35;
    }
    30% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

/* ─── Input area ─── */
.mcp-chat-input-area[b-5i3ftxihgw] {
    position: relative;
    z-index: 1;
    padding: 8px 12px 10px;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    background: #fff;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.03);
}

.mcp-chat-input-wrapper[b-5i3ftxihgw] {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    max-width: 100%;
    margin: 0;
}

.mcp-chat-input[b-5i3ftxihgw] {
    flex: 1;
    padding: 10px 14px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #1e293b;
    font-size: 16.8px;
    font-family: inherit;
    resize: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 20px;
    max-height: 120px;
    line-height: 1.8;
}

.mcp-chat-input[b-5i3ftxihgw]::placeholder {
    color: #94a3b8;
}

.mcp-chat-input:focus[b-5i3ftxihgw] {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    background: #fff;
}

/* ── Upload & Send buttons ── */
.mcp-chat-upload-btn[b-5i3ftxihgw] {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    background: #ffffff;
    color: #64748b;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mcp-chat-upload-btn:hover[b-5i3ftxihgw] {
    color: #6366f1;
    border-color: #6366f1;
    background: #f8fafc;
}

.mcp-chat-upload-btn:active[b-5i3ftxihgw] {
    transform: scale(0.95);
}

.mcp-chat-send-btn[b-5i3ftxihgw] {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.mcp-chat-send-btn:hover:not(:disabled)[b-5i3ftxihgw] {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

.mcp-chat-send-btn:active:not(:disabled)[b-5i3ftxihgw] {
    transform: scale(0.95);
}

.mcp-chat-send-btn:disabled[b-5i3ftxihgw] {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.mcp-chat-input-hint[b-5i3ftxihgw] {
    margin-top: 4px;
    font-size: 12px;
    color: #94a3b8;
    text-align: center;
}

/* ─── Attachments (Pasted/Uploaded Images) ─── */
.mcp-chat-attachments[b-5i3ftxihgw] {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.mcp-chat-attachment[b-5i3ftxihgw] {
    position: relative;
    display: inline-block;
}

.mcp-chat-attachment img[b-5i3ftxihgw] {
    max-width: 150px;
    max-height: 150px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    object-fit: contain;
    background: #f8fafc;
}

.mcp-chat-attachment-remove[b-5i3ftxihgw] {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid white;
    padding: 0;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.mcp-chat-attachment-remove:hover[b-5i3ftxihgw] {
    background: #dc2626;
    transform: scale(1.1);
}

/* ─── Message Images ─── */
.mcp-message-images[b-5i3ftxihgw] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.mcp-message-image[b-5i3ftxihgw] {
    max-width: 100%;
    max-height: 350px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    object-fit: contain;
}

.mcp-message-assistant .mcp-message-image[b-5i3ftxihgw] {
    border-color: rgba(99, 102, 241, 0.15);
}

/* ─── Error message ─── */
.mcp-message-error .mcp-message-bubble[b-5i3ftxihgw] {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #dc2626 !important;
}

.mcp-message-error .mcp-message-bubble p[b-5i3ftxihgw] {
    color: #dc2626 !important;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .mcp-chat-container[b-5i3ftxihgw] {
        height: calc(100vh - 60px);
    }

    .mcp-chat-messages[b-5i3ftxihgw] {
        padding: 8px;
    }

    .mcp-message[b-5i3ftxihgw] {
        max-width: 100%;
    }

    .mcp-chat-input-area[b-5i3ftxihgw] {
        padding: 6px 8px 10px;
    }

    .mcp-chat-header[b-5i3ftxihgw] {
        padding: 8px 12px;
    }
}

/* ─── Lightbox ─── */
.mcp-lightbox[b-5i3ftxihgw] {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    animation: lightbox-fade-b-5i3ftxihgw 0.2s ease-out;
}

.mcp-lightbox-close[b-5i3ftxihgw] {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
    user-select: none;
    z-index: 10000;
}

.mcp-lightbox-close:hover[b-5i3ftxihgw] {
    color: #ccc;
}

.mcp-lightbox-content[b-5i3ftxihgw] {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: lightbox-zoom-b-5i3ftxihgw 0.2s ease-out;
}

@keyframes lightbox-fade-b-5i3ftxihgw {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes lightbox-zoom-b-5i3ftxihgw {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
/* /Components/Pages/SoKeToan/S01-DN.razor.rz.scp.css */
/* ===================================================
   S01-DN: Nhật ký - Sổ cái (Journal - General Ledger)
   Vietnamese Accounting Standard Form
   =================================================== */

/* Container */
.s01dn-container[b-ytfdh2nncp] {
    max-width: 100%;
    margin: 0 auto;
    padding: 24px 28px;
    background: #ffffff;
    font-family: 'Times New Roman', 'Segoe UI', serif;
    color: #1a1a2e;
}

/* === HEADER === */
.s01dn-header[b-ytfdh2nncp] {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.s01dn-header-left p[b-ytfdh2nncp] {
    margin: 2px 0;
    font-size: 14px;
    line-height: 1.5;
}

.s01dn-header-right[b-ytfdh2nncp] {
    text-align: right;
}

.s01dn-mau-so[b-ytfdh2nncp] {
    font-size: 15px;
    margin: 0 0 4px 0;
}

.s01dn-thongtu[b-ytfdh2nncp] {
    font-size: 12.5px;
    margin: 0;
    line-height: 1.4;
    color: #555;
}

/* === TITLE === */
.s01dn-title[b-ytfdh2nncp] {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 16px 0 4px 0;
    color: #0f3460;
}

.s01dn-year[b-ytfdh2nncp] {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 18px 0;
    color: #333;
}

/* === TOOLBAR === */
.s01dn-toolbar[b-ytfdh2nncp] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.s01dn-toolbar-left[b-ytfdh2nncp] {
    display: flex;
    align-items: center;
    gap: 10px;
}

.s01dn-toolbar-left label[b-ytfdh2nncp] {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    color: #495057;
}

.s01dn-toolbar-right[b-ytfdh2nncp] {
    display: flex;
    gap: 8px;
}

[b-ytfdh2nncp] .s01dn-btn {
    border-radius: 6px !important;
    font-weight: 500 !important;
    padding: 6px 16px !important;
    font-size: 13px !important;
    transition: all 0.2s ease !important;
}

[b-ytfdh2nncp] .s01dn-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

[b-ytfdh2nncp] .s01dn-dropdown .e-input-group {
    border-radius: 6px !important;
}

/* === DATA GRID STYLING === */
[b-ytfdh2nncp] .e-grid {
    border: 1px solid #333 !important;
    border-radius: 0 !important;
    font-family: 'Times New Roman', serif !important;
}

[b-ytfdh2nncp] .e-grid .e-gridheader {
    background: #f0f4f8 !important;
}

[b-ytfdh2nncp] .e-grid .e-headercell {
    background: #e8eef5 !important;
    border: 1px solid #999 !important;
    padding: 4px 6px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #1a1a2e !important;
}

[b-ytfdh2nncp] .e-grid .e-headercelldiv {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
}

[b-ytfdh2nncp] .e-grid .e-rowcell {
    border: 1px solid #bbb !important;
    padding: 5px 8px !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    color: #222 !important;
}

[b-ytfdh2nncp] .e-grid .e-row:hover .e-rowcell {
    background: #eef4ff !important;
}

.s01dn-header-cell[b-ytfdh2nncp] {
    text-align: center;
    line-height: 1.35;
    font-size: 12.5px;
}

/* Stacked header groups */
[b-ytfdh2nncp] .e-grid .e-stackedheadercell {
    background: #e0e8f0 !important;
    border: 1px solid #999 !important;
    font-weight: 700 !important;
    text-align: center !important;
    font-size: 12.5px !important;
    color: #1a1a2e !important;
}

/* Column letter rows (A, B, C,...) */
[b-ytfdh2nncp] .e-grid .e-columnheader .e-headercell .e-headertext {
    font-size: 12px !important;
}

/* Pager */
[b-ytfdh2nncp] .e-grid .e-gridpager {
    border-top: 1px solid #999 !important;
}

/* Frozen scrolling */
[b-ytfdh2nncp] .e-grid .e-gridcontent {
    scrollbar-width: thin;
}

[b-ytfdh2nncp] .e-grid .e-gridcontent::-webkit-scrollbar {
    height: 8px;
}

[b-ytfdh2nncp] .e-grid .e-gridcontent::-webkit-scrollbar-thumb {
    background: #a0aec0;
    border-radius: 4px;
}

[b-ytfdh2nncp] .e-grid .e-gridcontent::-webkit-scrollbar-track {
    background: #edf2f7;
}

/* === FOOTER === */
.s01dn-footer-notes[b-ytfdh2nncp] {
    margin-top: 20px;
    padding: 0 4px;
}

.s01dn-footer-notes p[b-ytfdh2nncp] {
    font-size: 13.5px;
    margin: 3px 0;
    line-height: 1.5;
}

/* Signatures */
.s01dn-footer-signatures[b-ytfdh2nncp] {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding: 0 24px;
}

.s01dn-signature-block[b-ytfdh2nncp] {
    text-align: center;
    min-width: 180px;
}

.s01dn-signature-right[b-ytfdh2nncp] {
    text-align: center;
}

.s01dn-sig-title[b-ytfdh2nncp] {
    font-size: 14px;
    margin: 4px 0 2px 0;
}

.s01dn-sig-sub[b-ytfdh2nncp] {
    font-size: 13px;
    color: #555;
    margin: 0 0 40px 0;
}

.s01dn-sig-date[b-ytfdh2nncp] {
    font-size: 13px;
    margin: 0 0 4px 0;
    color: #555;
}

/* === PRINT STYLES === */
@media print {
    .s01dn-container[b-ytfdh2nncp] {
        padding: 0;
        background: white;
    }

    .s01dn-toolbar[b-ytfdh2nncp] {
        display: none !important;
    }

    [b-ytfdh2nncp] .e-grid .e-gridpager {
        display: none !important;
    }

    .s01dn-title[b-ytfdh2nncp] {
        font-size: 18px;
        color: #000;
    }

    [b-ytfdh2nncp] .e-grid .e-headercell,
    [b-ytfdh2nncp] .e-grid .e-rowcell {
        border: 1px solid #000 !important;
        color: #000 !important;
    }

    [b-ytfdh2nncp] .e-grid .e-headercell {
        background: #fff !important;
    }

    [b-ytfdh2nncp] .e-grid .e-stackedheadercell {
        background: #fff !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .s01dn-header[b-ytfdh2nncp] {
        flex-direction: column;
        gap: 8px;
    }

    .s01dn-header-right[b-ytfdh2nncp] {
        text-align: left;
    }

    .s01dn-toolbar[b-ytfdh2nncp] {
        flex-direction: column;
        align-items: stretch;
    }

    .s01dn-toolbar-left[b-ytfdh2nncp] {
        flex-direction: column;
        align-items: flex-start;
    }

    .s01dn-footer-signatures[b-ytfdh2nncp] {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
}
