@import '_content/Microsoft.FluentUI.AspNetCore.Components/Microsoft.FluentUI.AspNetCore.Components.dibzmir27r.bundle.scp.css';

/* /Components/Chat/ChatWidget.razor.rz.scp.css */
/* ── Chat container (no visual style, just presence) ────────────────────── */
.chat-container[b-clmvme5qe0] { /* intentionally empty wrapper */ }

/* ── Floating action button ─────────────────────────────────────────────── */
.chat-agent-button[b-clmvme5qe0] {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent-fill-rest, #0078d4);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.15s ease;
}

.chat-agent-button:hover[b-clmvme5qe0]  { transform: scale(1.06); box-shadow: 0 6px 16px rgba(0,0,0,0.25); }
.chat-agent-button:active[b-clmvme5qe0] { transform: scale(0.95); }

.chat-btn-hidden[b-clmvme5qe0] { opacity: 0; pointer-events: none; }

/* ── Chat window ─────────────────────────────────────────────────────────── */
.chat-agent-window[b-clmvme5qe0] {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 600px;
    max-height: calc(100vh - 48px);
    background: var(--neutral-layer-1, #ffffff);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.chat-agent-window.open[b-clmvme5qe0] {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.chat-header[b-clmvme5qe0] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--accent-fill-rest, #0078d4);
    color: #fff;
    border-radius: 12px 12px 0 0;
    flex-shrink: 0;
}

.chat-title[b-clmvme5qe0] {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 15px;
}

.chat-close-btn[b-clmvme5qe0] {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.15s;
}
.chat-close-btn:hover[b-clmvme5qe0] { opacity: 1; background: rgba(255,255,255,0.15); }

/* ── Messages area ───────────────────────────────────────────────────────── */
.chat-messages[b-clmvme5qe0] {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--neutral-layer-2, #faf9f8);
}

.chat-welcome[b-clmvme5qe0] {
    text-align: center;
    padding: 16px;
    color: var(--neutral-foreground-rest, #323130);
}
.chat-welcome p[b-clmvme5qe0] { margin: 6px 0; line-height: 1.5; }

/* ── Individual message ──────────────────────────────────────────────────── */
.chat-message[b-clmvme5qe0] {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    animation: msgSlideIn-b-clmvme5qe0 0.18s ease;
}

@keyframes msgSlideIn-b-clmvme5qe0 {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}

.message-avatar[b-clmvme5qe0] {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    background: var(--neutral-layer-1, #ffffff);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.message-content[b-clmvme5qe0] {
    flex: 1;
    padding: 9px 13px;
    border-radius: 10px;
    line-height: 1.5;
    word-break: break-word;
    font-size: 14px;
}

/* User messages – right-aligned */
.user-message[b-clmvme5qe0] { flex-direction: row-reverse; }

.user-message .message-content[b-clmvme5qe0] {
    background: var(--accent-fill-rest, #0078d4);
    color: #fff;
    border-bottom-right-radius: 3px;
}

/* Assistant messages – left-aligned */
.assistant-message .message-content[b-clmvme5qe0] {
    background: var(--neutral-layer-1, #ffffff);
    color: var(--neutral-foreground-rest, #323130);
    border-bottom-left-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

/* Markdown styles inside assistant messages */
.assistant-message .message-content h2[b-clmvme5qe0],
.assistant-message .message-content h3[b-clmvme5qe0],
.assistant-message .message-content h4[b-clmvme5qe0] { margin: 10px 0 6px; font-weight: 600; line-height: 1.3; }
.assistant-message .message-content h2[b-clmvme5qe0] { font-size: 1.15em; }
.assistant-message .message-content h3[b-clmvme5qe0] { font-size: 1.05em; }
.assistant-message .message-content h4[b-clmvme5qe0] { font-size: 0.97em; color: var(--neutral-foreground-hint, #605e5c); }
.assistant-message .message-content p[b-clmvme5qe0]  { margin: 6px 0; }
.assistant-message .message-content strong[b-clmvme5qe0] { font-weight: 600; color: var(--accent-foreground-rest, #0078d4); }
.assistant-message .message-content em[b-clmvme5qe0] { font-style: italic; }
.assistant-message .message-content ul[b-clmvme5qe0] { margin: 6px 0; padding-left: 18px; list-style-type: disc; }
.assistant-message .message-content li[b-clmvme5qe0] { margin: 3px 0; line-height: 1.4; }

.assistant-message .message-content code[b-clmvme5qe0] {
    background: var(--neutral-layer-3, #f3f2f1);
    padding: 2px 5px;
    border-radius: 3px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 0.88em;
}
.assistant-message .message-content pre[b-clmvme5qe0] {
    background: var(--neutral-layer-3, #f3f2f1);
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 6px 0;
}
.assistant-message .message-content pre code[b-clmvme5qe0] { background: transparent; padding: 0; }

/* ── Typing indicator ────────────────────────────────────────────────────── */
.typing-indicator[b-clmvme5qe0] { display: flex; gap: 4px; padding: 2px 0; }
.typing-indicator span[b-clmvme5qe0] {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--neutral-foreground-hint, #8a8886);
    animation: typing-b-clmvme5qe0 1.4s infinite;
}
.typing-indicator span:nth-child(2)[b-clmvme5qe0] { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3)[b-clmvme5qe0] { animation-delay: 0.4s; }

@keyframes typing-b-clmvme5qe0 {
    0%, 60%, 100% { transform: translateY(0);   opacity: 0.6; }
    30%            { transform: translateY(-7px); opacity: 1;   }
}

/* ── Input area ──────────────────────────────────────────────────────────── */
.chat-input-area[b-clmvme5qe0] {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    background: var(--neutral-layer-1, #ffffff);
    border-top: 1px solid var(--neutral-stroke-rest, #e1dfdd);
    align-items: center;
    flex-shrink: 0;
}

.chat-input[b-clmvme5qe0] {
    flex: 1;
    min-width: 0;
    height: 38px;
    padding: 0 11px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid var(--neutral-stroke-rest, #8a8886);
    border-radius: 4px;
    background: var(--neutral-layer-1, #ffffff);
    color: var(--neutral-foreground-rest, #323130);
    outline: none;
    transition: border-color 0.1s;
}
.chat-input:focus[b-clmvme5qe0] { border-color: var(--accent-fill-rest, #0078d4); border-width: 2px; padding: 0 10px; }
.chat-input[b-clmvme5qe0]::placeholder { color: var(--neutral-foreground-hint, #605e5c); }
.chat-input:disabled[b-clmvme5qe0] { opacity: 0.6; cursor: not-allowed; }

.chat-send-btn[b-clmvme5qe0] {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-fill-rest, #0078d4);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.1s;
}
.chat-send-btn:hover:not(:disabled)[b-clmvme5qe0] { background: var(--accent-fill-hover, #106ebe); }
.chat-send-btn:active:not(:disabled)[b-clmvme5qe0]{ background: var(--accent-fill-active, #005a9e); }
.chat-send-btn:disabled[b-clmvme5qe0] { opacity: 0.5; cursor: not-allowed; }

/* ── Scrollbar ───────────────────────────────────────────────────────────── */
.chat-messages[b-clmvme5qe0]::-webkit-scrollbar       { width: 5px; }
.chat-messages[b-clmvme5qe0]::-webkit-scrollbar-track { background: transparent; }
.chat-messages[b-clmvme5qe0]::-webkit-scrollbar-thumb { background: var(--neutral-stroke-rest, #e1dfdd); border-radius: 3px; }
.chat-messages[b-clmvme5qe0]::-webkit-scrollbar-thumb:hover { background: var(--neutral-stroke-hover, #d2d0ce); }

/* ── Responsive – hide on mobile ─────────────────────────────────────────── */
@media (max-width: 767px) {
    .chat-agent-button[b-clmvme5qe0],
    .chat-agent-window[b-clmvme5qe0] {
        display: none !important;
    }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .chat-agent-window[b-clmvme5qe0] { width: 340px; height: 500px; }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-afke11pl16] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-afke11pl16] {
    flex: 1;
}

.sidebar[b-afke11pl16] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-afke11pl16] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-afke11pl16]  a, .top-row[b-afke11pl16]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-afke11pl16]  a:hover, .top-row[b-afke11pl16]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-afke11pl16]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-afke11pl16] {
        justify-content: space-between;
    }

    .top-row[b-afke11pl16]  a, .top-row[b-afke11pl16]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-afke11pl16] {
        flex-direction: row;
    }

    .sidebar[b-afke11pl16] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-afke11pl16] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-afke11pl16]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-afke11pl16], article[b-afke11pl16] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-afke11pl16] {
    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-afke11pl16] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-ywnfhiknlb],
.components-reconnect-repeated-attempt-visible[b-ywnfhiknlb],
.components-reconnect-failed-visible[b-ywnfhiknlb],
.components-pause-visible[b-ywnfhiknlb],
.components-resume-failed-visible[b-ywnfhiknlb],
.components-rejoining-animation[b-ywnfhiknlb] {
    display: none;
}

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

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