/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-5r16unfibi] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-5r16unfibi] {
    flex: 1;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-kj4jkkuja5 {
    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/Home.razor.rz.scp.css */
.chat-container[b-z0z2fqc152] {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 240px;
    color: #1a1a1a;
}

/* Start Overlay - Modern Frosted Glass */
.start-tour-overlay[b-z0z2fqc152] {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease-out;
}

    .start-tour-overlay h1[b-z0z2fqc152] {
        text-align: center;
        font-size: 4rem;
        animation: bounce-subtle-b-z0z2fqc152 2s infinite ease-in-out;
        text-shadow: 0 4px 30px rgba(0,0,0,0.7);
    }

    .start-emoji[b-z0z2fqc152] {
        font-size: 6rem;
        display: block;
        margin-bottom: 20px;
    }

/* Exhibit Badge */
.exhibit-container[b-z0z2fqc152] {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    color: #ffffff;
    padding: 12px 28px;
    border-radius: 50px;
    margin-bottom: 24px;
    font-size: 1.15rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: 0.5px;
}

    .exhibit-container strong[b-z0z2fqc152] {
        margin-left: 6px;
        font-weight: 700;
    }

/* Chat History Box */
.char-inner-container[b-z0z2fqc152] {
    height: 55vh;
    overflow-y: auto;
    border: 2px solid transparent;
    border-radius: 24px;
    padding: 24px;
    background-color: #f8fafc;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.02), 0 8px 30px rgba(0,0,0,0.04);
    scroll-behavior: smooth;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

    /* Sleek Scrollbar */
    .char-inner-container[b-z0z2fqc152]::-webkit-scrollbar {
        width: 8px;
    }

    .char-inner-container[b-z0z2fqc152]::-webkit-scrollbar-track {
        background: transparent;
    }

    .char-inner-container[b-z0z2fqc152]::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 20px;
    }

    /* Active Voice State */
    .char-inner-container.voice-active[b-z0z2fqc152] {
        border-color: #dc3545;
        box-shadow: inset 0 2px 10px rgba(220, 53, 69, 0.1), 0 0 40px rgba(220, 53, 69, 0.3);
        animation: container-pulse-b-z0z2fqc152 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
        background-color: #fffafa;
    }

/* Chat Bubbles */
.chat-bubble[b-z0z2fqc152] {
    margin-bottom: 20px;
    padding: 18px 24px;
    font-size: 1.15rem;
    line-height: 1.6;
    max-width: 85%;
    word-wrap: break-word;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    position: relative;
    opacity: 0;
    animation: fade-in-up-b-z0z2fqc152 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-bubble-user[b-z0z2fqc152] {
    background-color: #0056b3;
    color: #ffffff;
    text-align: left;
    margin-left: auto;
    border-radius: 20px 20px 4px 20px;
}

.chat-bubble-agent[b-z0z2fqc152] {
    background-color: #ffffff;
    color: #1e293b;
    text-align: left;
    margin-right: auto;
    border: 1px solid #e2e8f0;
    border-radius: 20px 20px 20px 4px;
}

.chat-bubble strong[b-z0z2fqc152] {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Processing Info with Typing Animation */
.processing-info[b-z0z2fqc152] {
    margin-bottom: 20px;
    padding: 16px 24px;
    border-radius: 20px 20px 20px 4px;
    font-size: 1.1rem;
    background-color: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    animation: fade-in-up-b-z0z2fqc152 0.4s forwards;
    font-weight: 500;
}

.typing-dots[b-z0z2fqc152] {
    display: flex;
    gap: 4px;
}

    .typing-dots span[b-z0z2fqc152] {
        width: 6px;
        height: 6px;
        background-color: #94a3b8;
        border-radius: 50%;
        animation: typing-bounce-b-z0z2fqc152 1.4s infinite ease-in-out both;
    }

        .typing-dots span:nth-child(1)[b-z0z2fqc152] {
            animation-delay: -0.32s;
        }

        .typing-dots span:nth-child(2)[b-z0z2fqc152] {
            animation-delay: -0.16s;
        }

/* Text Input Container */
.text-input-container[b-z0z2fqc152] {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    background: #ffffff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .text-input-container:focus-within[b-z0z2fqc152] {
        box-shadow: 0 8px 30px rgba(0, 86, 179, 0.12);
        border-color: #0056b3;
    }

.text-input-containe-user-input[b-z0z2fqc152] {
    flex: 1;
    padding: 14px 24px;
    border: none;
    background: transparent;
    color: #1e293b;
    font-size: 1.1rem;
    outline: none;
    border-radius: 40px;
}

    .text-input-containe-user-input[b-z0z2fqc152]::placeholder {
        color: #94a3b8;
    }

/* Touch-Friendly Send Button */
.send-button[b-z0z2fqc152] {
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
    flex-shrink: 0;
}

    .send-button:active[b-z0z2fqc152] {
        transform: scale(0.9);
    }

    .send-button:focus-visible[b-z0z2fqc152] {
        outline: 3px solid #93c5fd;
        outline-offset: 2px;
    }

/* Voice Container & Push-To-Talk */
.voice-button-container[b-z0z2fqc152] {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 1000;
    background: linear-gradient(to top, rgba(255,255,255,1) 60%, rgba(255,255,255,0));
    padding: 60px 20px 30px;
    width: 100%;
    max-width: 800px;
    pointer-events: none;
}

    .voice-button-container > *[b-z0z2fqc152] {
        pointer-events: auto;
    }

.status-text[b-z0z2fqc152] {
    font-size: 1.15rem;
    font-weight: 600;
    color: #475569;
    min-height: 28px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}

.ptt-button[b-z0z2fqc152] {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0b5ed7);
    color: white;
    font-size: 3.5rem;
    border: none;
    box-shadow: 0 12px 35px rgba(13, 110, 253, 0.4), inset 0 2px 0 rgba(255,255,255,0.2);
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s, box-shadow 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

    .ptt-button:focus-visible[b-z0z2fqc152] {
        outline: 4px solid #93c5fd;
        outline-offset: 4px;
    }

    .ptt-button:active[b-z0z2fqc152] {
        transform: scale(0.92);
        box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
    }

    .ptt-button.recording[b-z0z2fqc152] {
        background: linear-gradient(135deg, #dc3545, #b02a37);
        box-shadow: 0 12px 35px rgba(220, 53, 69, 0.4);
        animation: pulse-red-b-z0z2fqc152 2s infinite cubic-bezier(0.2, 0, 0.2, 1);
    }

    .ptt-button:disabled[b-z0z2fqc152] {
        background: #94a3b8;
        box-shadow: none;
        cursor: not-allowed;
        transform: scale(1);
        filter: grayscale(100%);
    }

/* Keyframes */
@keyframes bounce-subtle-b-z0z2fqc152 {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes fade-in-up-b-z0z2fqc152 {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes typing-bounce-b-z0z2fqc152 {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse-red-b-z0z2fqc152 {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.6);
    }

    70% {
        box-shadow: 0 0 0 35px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

@keyframes container-pulse-b-z0z2fqc152 {
    0% {
        box-shadow: inset 0 2px 10px rgba(220, 53, 69, 0.05), 0 0 0 0 rgba(220, 53, 69, 0.15);
    }

    50% {
        box-shadow: inset 0 2px 10px rgba(220, 53, 69, 0.05), 0 0 0 15px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: inset 0 2px 10px rgba(220, 53, 69, 0.05), 0 0 0 0 rgba(220, 53, 69, 0);
    }
}


/* Responsywność dla urządzeń mobilnych */
@media (max-width: 768px) {
    /* Zmniejszamy margines dolny kontenera (miejsce na przycisk mikrofonu) */
    .chat-container[b-z0z2fqc152] {
        padding: 10px;
        padding-bottom: 160px;
    }

    /* Mniejszy tekst powitalny */
    .start-tour-overlay h1[b-z0z2fqc152] {
        font-size: 3rem;
    }

    .start-emoji[b-z0z2fqc152] {
        font-size: 4.5rem;
    }

    /* Mniejsza etykieta z nazwą eksponatu */
    .exhibit-container[b-z0z2fqc152] {
        font-size: 1rem;
        padding: 10px 20px;
    }

    /* Zmniejszamy dymki czatu i ich czcionkę */
    .chat-bubble[b-z0z2fqc152] {
        font-size: 1rem;
        padding: 12px 18px;
        max-width: 90%;
    }

    /* Dopasowujemy okno historii wiadomości */
    .char-inner-container[b-z0z2fqc152] {
        padding: 16px;
        height: 60vh;
    }

    /* Mniejsze pole tekstowe i font wprowadzania */
    .text-input-containe-user-input[b-z0z2fqc152] {
        font-size: 1rem;
        padding: 12px 18px;
    }

    /* Mniejszy przycisk wysyłania tekstu */
    .send-button[b-z0z2fqc152] {
        width: 44px;
        height: 44px;
    }

    /* Znacznie mniejszy przycisk nagrywania głosu dla małych ekranów */
    .ptt-button[b-z0z2fqc152] {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    /* Zmniejszenie strefy na przycisk na dole ekranu */
    .voice-button-container[b-z0z2fqc152] {
        padding: 30px 10px 20px;
    }

    /* Mniejsza czcionka statusu nad przyciskiem głosowym */
    .status-text[b-z0z2fqc152] {
        font-size: 1rem;
        padding: 6px 16px;
    }
}
