/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* MainLayout styles handled by Tailwind CSS */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-wwfswp14ge],
.components-reconnect-repeated-attempt-visible[b-wwfswp14ge],
.components-reconnect-failed-visible[b-wwfswp14ge],
.components-pause-visible[b-wwfswp14ge],
.components-resume-failed-visible[b-wwfswp14ge],
.components-rejoining-animation[b-wwfswp14ge] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-wwfswp14ge],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-wwfswp14ge],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-wwfswp14ge],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-wwfswp14ge],
#components-reconnect-modal.components-reconnect-retrying[b-wwfswp14ge],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-wwfswp14ge],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-wwfswp14ge],
#components-reconnect-modal.components-reconnect-failed[b-wwfswp14ge],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-wwfswp14ge] {
    display: block;
}


#components-reconnect-modal[b-wwfswp14ge] {
    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-wwfswp14ge 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-wwfswp14ge 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-wwfswp14ge 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-wwfswp14ge]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-wwfswp14ge 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-wwfswp14ge {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-wwfswp14ge {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-wwfswp14ge {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-wwfswp14ge] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-wwfswp14ge] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-wwfswp14ge] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-wwfswp14ge] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-wwfswp14ge] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-wwfswp14ge] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-wwfswp14ge] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-wwfswp14ge 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-wwfswp14ge] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-wwfswp14ge {
    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/Training/AgentChat.razor.rz.scp.css */
.training-chat-shell[b-olrrm4c9c0] {
    display: grid;
    gap: 1.5rem;
    min-height: calc(100vh - 6.5rem);
    height: calc(100dvh - 6.5rem);
    grid-template-rows: auto minmax(0, 1fr);
    overflow: hidden;
}

.training-chat-hero[b-olrrm4c9c0] {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.5fr) minmax(20rem, 1fr);
}

.training-chat-badge[b-olrrm4c9c0] {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    background: #dcfce7;
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.training-chat-title[b-olrrm4c9c0] {
    margin-top: 0.75rem;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    color: #0f172a;
}

.training-chat-subtitle[b-olrrm4c9c0] {
    margin-top: 0.75rem;
    max-width: 48rem;
    color: #475569;
}

.training-chat-hero-card[b-olrrm4c9c0] {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.training-chat-hero-label[b-olrrm4c9c0] {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.75rem;
}

.training-chat-suggestions[b-olrrm4c9c0] {
    display: grid;
    gap: 0.75rem;
}

.training-chat-suggestion[b-olrrm4c9c0] {
    width: 100%;
    text-align: left;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.training-chat-suggestion:hover[b-olrrm4c9c0] {
    background: #dbeafe;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.12);
}

.training-chat-panel[b-olrrm4c9c0] {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    min-height: 0;
    height: 100%;
    max-height: 100%;
    display: grid;
    grid-template-rows: minmax(24rem, 1fr) auto auto;
    overflow: hidden;
    position: relative;
}

.training-chat-messages[b-olrrm4c9c0] {
    padding: 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 0;
    overflow-y: auto;
}

.training-chat-empty-state[b-olrrm4c9c0] {
    height: 100%;
    display: grid;
    place-content: center;
    text-align: center;
    gap: 0.75rem;
    color: #475569;
}

.training-chat-empty-icon[b-olrrm4c9c0] {
    width: 4rem;
    height: 4rem;
    margin: 0 auto;
    border-radius: 1.25rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #10b981 0%, #2563eb 100%);
    color: white;
    font-weight: 800;
}

.training-chat-message[b-olrrm4c9c0] {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.training-chat-message-user[b-olrrm4c9c0] {
    justify-items: end;
}

.training-chat-message-user .training-chat-bubble-wrap[b-olrrm4c9c0] {
    align-items: end;
}

.training-chat-avatar[b-olrrm4c9c0] {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.9rem;
    display: grid;
    place-items: center;
    font-size: 0.75rem;
    font-weight: 800;
    background: #0f172a;
    color: #ffffff;
}

.training-chat-message-user .training-chat-avatar[b-olrrm4c9c0] {
    background: #2563eb;
}

.training-chat-bubble-wrap[b-olrrm4c9c0] {
    display: grid;
    gap: 0.35rem;
    max-width: min(100%, 52rem);
}

.training-chat-author[b-olrrm4c9c0] {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}

.training-chat-bubble[b-olrrm4c9c0] {
    padding: 1rem 1.1rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    /*white-space: pre-wrap;*/
    line-height: 1.6;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.training-chat-bubble[b-olrrm4c9c0]  > *:first-child {
    margin-top: 0;
}

.training-chat-bubble[b-olrrm4c9c0]  > *:last-child {
    margin-bottom: 0;
}

.training-chat-bubble[b-olrrm4c9c0]  p {
    margin: 0 0 0.85rem;
}

.training-chat-bubble[b-olrrm4c9c0]  ul,
.training-chat-bubble[b-olrrm4c9c0]  ol {
    margin: 0 0 0.85rem;
    padding-left: 1.5rem;
}

.training-chat-bubble[b-olrrm4c9c0]  ul {
    list-style-type: disc;
}

.training-chat-bubble[b-olrrm4c9c0]  ol {
    list-style-type: decimal;
}

.training-chat-bubble[b-olrrm4c9c0]  li {
    margin: 0.3rem 0;
}

.training-chat-bubble[b-olrrm4c9c0]  li > ul,
.training-chat-bubble[b-olrrm4c9c0]  li > ol {
    margin-top: 0.35rem;
    margin-bottom: 0;
}

.training-chat-bubble[b-olrrm4c9c0]  strong {
    font-weight: 700;
}

.training-chat-bubble[b-olrrm4c9c0]  a {
    color: inherit;
    text-decoration: underline;
}

.training-chat-bubble[b-olrrm4c9c0]  code {
    padding: 0.15rem 0.4rem;
    border-radius: 0.45rem;
    background: rgba(148, 163, 184, 0.18);
    font-size: 0.92em;
}

.training-chat-bubble[b-olrrm4c9c0]  pre {
    margin: 0 0 0.85rem;
    padding: 0.9rem 1rem;
    overflow-x: auto;
    border-radius: 0.9rem;
    background: #0f172a;
    color: #e2e8f0;
}

.training-chat-bubble[b-olrrm4c9c0]  pre code {
    padding: 0;
    background: transparent;
    color: inherit;
}

.training-chat-message-user .training-chat-bubble[b-olrrm4c9c0] {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
}

.training-chat-bubble-loading[b-olrrm4c9c0] {
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.training-chat-bubble-loading span[b-olrrm4c9c0] {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 9999px;
    background: #94a3b8;
    animation: training-chat-pulse-b-olrrm4c9c0 1.2s infinite ease-in-out;
}

.training-chat-bubble-loading span:nth-child(2)[b-olrrm4c9c0] {
    animation-delay: 0.15s;
}

.training-chat-bubble-loading span:nth-child(3)[b-olrrm4c9c0] {
    animation-delay: 0.3s;
}

.training-chat-meta[b-olrrm4c9c0] {
    font-size: 0.75rem;
    color: #64748b;
}

.training-chat-error[b-olrrm4c9c0] {
    margin: 0 1.5rem;
    border-radius: 0.9rem;
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b91c1c;
    padding: 0.85rem 1rem;
    font-size: 0.875rem;
}

.training-chat-composer[b-olrrm4c9c0] {
    position: sticky;
    bottom: 0;
    z-index: 10;
    border-top: 1px solid #e2e8f0;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
}

.training-chat-composer-footer[b-olrrm4c9c0] {
    margin-top: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.training-chat-hint[b-olrrm4c9c0] {
    color: #64748b;
    font-size: 0.85rem;
}

.training-chat-send[b-olrrm4c9c0] {
    border: none;
    border-radius: 9999px;
    padding: 0.85rem 1.3rem;
    background: linear-gradient(135deg, #10b981 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 700;
    min-width: 6.5rem;
}

.training-chat-send:disabled[b-olrrm4c9c0] {
    opacity: 0.6;
}

@keyframes training-chat-pulse-b-olrrm4c9c0 {
    0%, 80%, 100% {
        transform: scale(0.7);
        opacity: 0.45;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 1024px) {
    .training-chat-shell[b-olrrm4c9c0] {
        min-height: calc(100vh - 5.5rem);
        height: calc(100dvh - 5.5rem);
    }

    .training-chat-hero[b-olrrm4c9c0] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .training-chat-composer-footer[b-olrrm4c9c0] {
        flex-direction: column;
        align-items: stretch;
    }

    .training-chat-send[b-olrrm4c9c0] {
        width: 100%;
    }

    .training-chat-message[b-olrrm4c9c0] {
        grid-template-columns: 1fr;
    }

    .training-chat-avatar[b-olrrm4c9c0] {
        display: none;
    }
}
