/* /Components/Ai/AiChatPanel.razor.rz.scp.css */
/* AI chat panel — right-edge slide-in, 420px wide, full height. */

.ai-chat-backdrop[b-wkhxfeseyf] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: 1040;
}

.ai-chat-panel[b-wkhxfeseyf] {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 420px;
    max-width: 100vw;
    background: #fff;
    border-left: 1px solid #e5e7eb;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    animation: ai-slide-in-b-wkhxfeseyf 180ms ease-out;
}

@keyframes ai-slide-in-b-wkhxfeseyf {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

.ai-chat-header[b-wkhxfeseyf] {
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.ai-chat-messages[b-wkhxfeseyf] {
    flex: 1 1 auto;
    overflow-y: auto;
    background: #fff;
}

.ai-chat-empty[b-wkhxfeseyf] {
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
    border-radius: 8px;
    padding: 12px;
}

.ai-chat-msg[b-wkhxfeseyf] {
    margin-bottom: 16px;
    padding: 10px 12px;
    border-radius: 10px;
    line-height: 1.4;
}

.ai-chat-msg-user[b-wkhxfeseyf] {
    background: #eff6ff;
    border: 1px solid #dbeafe;
}

.ai-chat-msg-asst[b-wkhxfeseyf] {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.ai-chat-msg-role[b-wkhxfeseyf] {
    font-weight: 600;
}

.ai-chat-msg-body[b-wkhxfeseyf] {
    white-space: normal;
    word-wrap: break-word;
}

.ai-chat-msg-body code[b-wkhxfeseyf] {
    background: #e5e7eb;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.85em;
}

.ai-chat-tool[b-wkhxfeseyf] {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 6px;
    padding: 4px 8px;
}

.ai-chat-cursor[b-wkhxfeseyf] {
    color: #6366f1;
    animation: ai-blink-b-wkhxfeseyf 0.9s infinite;
    margin-left: 2px;
}

@keyframes ai-blink-b-wkhxfeseyf {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.ai-chat-help[b-wkhxfeseyf] {
    background: #f9fafb;
    max-height: 40vh;
    overflow-y: auto;
}

.ai-chat-help-group ul[b-wkhxfeseyf] {
    list-style: none;
    padding-left: 0.5rem !important;
    margin-bottom: 0.5rem;
}

.ai-chat-help-group li[b-wkhxfeseyf] {
    color: #4b5563;
    padding: 2px 0;
    font-style: italic;
}

.ai-chat-help-scope[b-wkhxfeseyf] {
    background: #fef3c7;
    border-color: #fde68a;
    color: #78350f;
}

.ai-chat-input[b-wkhxfeseyf] {
    background: #fff;
}

.ai-chat-input textarea[b-wkhxfeseyf] {
    resize: none;
    font-size: 0.875rem;
}

[b-wkhxfeseyf] .ai-confirm-card {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    padding: 10px 12px;
}

[b-wkhxfeseyf] .ai-confirm-card-body {
    color: #78350f;
}

.ai-chat-trim-notice[b-wkhxfeseyf] {
    background: #f3f4f6;
    border: 1px dashed #d1d5db;
    color: #4b5563;
    border-radius: 6px;
    padding: 6px 10px;
}

.ai-chat-long-notice[b-wkhxfeseyf] {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    border-radius: 6px;
    padding: 6px 10px;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* MainLayout scoped styles — layout handled in app.css */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* NavMenu scoped styles — layout handled in app.css */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-phtf4wewjy],
.components-reconnect-repeated-attempt-visible[b-phtf4wewjy],
.components-reconnect-failed-visible[b-phtf4wewjy],
.components-pause-visible[b-phtf4wewjy],
.components-resume-failed-visible[b-phtf4wewjy],
.components-rejoining-animation[b-phtf4wewjy] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-phtf4wewjy],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-phtf4wewjy],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-phtf4wewjy],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-phtf4wewjy],
#components-reconnect-modal.components-reconnect-retrying[b-phtf4wewjy],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-phtf4wewjy],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-phtf4wewjy],
#components-reconnect-modal.components-reconnect-failed[b-phtf4wewjy],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-phtf4wewjy] {
    display: block;
}


#components-reconnect-modal[b-phtf4wewjy] {
    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-phtf4wewjy 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-phtf4wewjy 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-phtf4wewjy 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-phtf4wewjy]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-phtf4wewjy 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-phtf4wewjy {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-phtf4wewjy {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-phtf4wewjy {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-phtf4wewjy] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-phtf4wewjy] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-phtf4wewjy] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-phtf4wewjy] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-phtf4wewjy] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-phtf4wewjy] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-phtf4wewjy] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-phtf4wewjy 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-phtf4wewjy] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-phtf4wewjy {
    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;
    }
}
