/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-xce8qdb1u3] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-xce8qdb1u3] {
    flex: 1;
    min-width: 0;
}

article[b-xce8qdb1u3] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sidebar[b-xce8qdb1u3] {
    /* Background set by themes.css via [data-theme] selector */
}

#sidebarCollapse[b-xce8qdb1u3] {
    display: none;
}

.top-row[b-xce8qdb1u3] {
    /* Colors set by themes.css via [data-theme] selector */
    justify-content: flex-end;
    min-height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-xce8qdb1u3]  a, .top-row[b-xce8qdb1u3]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-xce8qdb1u3]  a:hover, .top-row[b-xce8qdb1u3]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-xce8qdb1u3]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .page[b-xce8qdb1u3] {
        display: block;
    }

    .sidebar[b-xce8qdb1u3] {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1030;
        max-height: calc(3.5rem + env(safe-area-inset-top, 0px));
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding-top: env(safe-area-inset-top, 0px);
    }

    #sidebarCollapse:checked ~ .sidebar[b-xce8qdb1u3] {
        max-height: 100dvh;
        overflow-y: auto;
    }

    /* Backdrop when sidebar is open */
    #sidebarCollapse:checked ~ .sidebar[b-xce8qdb1u3]::after {
        content: none;
    }

    #sidebarCollapse:checked ~ main[b-xce8qdb1u3]::before {
        content: '';
        position: fixed;
        inset: 0;
        background: var(--app-backdrop, rgba(0,0,0,0.4));
        z-index: 1029;
    }

    .top-row[b-xce8qdb1u3] {
        justify-content: space-between;
    }

    .top-row[b-xce8qdb1u3]  a, .top-row[b-xce8qdb1u3]  .btn-link {
        margin-left: 0;
    }

    /* Show nav when sidebar expanded on mobile */
    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3]  nav {
        display: none;
    }

    main[b-xce8qdb1u3] {
        padding-top: calc(3.5rem + env(safe-area-inset-top, 0px));
        width: 100%;
    }

    article[b-xce8qdb1u3] {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (min-width: 641px) {
    .page[b-xce8qdb1u3] {
        flex-direction: row;
    }

    .sidebar[b-xce8qdb1u3] {
        width: 250px;
        min-height: 100vh;
        transition: width 0.2s ease;
        overflow-x: hidden;
        flex-shrink: 0;
    }

    /* Desktop: collapsed sidebar — shrink to icon-only */
    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3] {
        width: 60px;
    }

    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3]  .nav-text {
        display: none;
    }

    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3]  .navbar-brand-text {
        display: none;
    }

    /* Move the hamburger toggle into the nav as an icon item */
    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3]  .sidebar-toggle-btn {
        display: none;
    }

    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3]  .nav-collapsed-toggle {
        display: block !important;
    }

    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3]  .nav-section-chevron {
        display: none;
    }

    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3]  .nav-section-menu {
        display: none !important;
    }

    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3]  .nav-link {
        justify-content: center;
    }

    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3]  .bi {
        margin-right: 0;
    }

    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3]  .nav-item {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3]  .top-row {
        padding: 0 !important;
    }

    #sidebarCollapse:not(:checked) ~ .sidebar[b-xce8qdb1u3]  .container-fluid {
        justify-content: center;
        padding: 0;
    }

    .sidebar[b-xce8qdb1u3] {
        padding-top: env(safe-area-inset-top, 0px);
    }

    .top-row[b-xce8qdb1u3] {
        position: sticky;
        top: 0;
        z-index: 1;
        padding-top: env(safe-area-inset-top, 0px);
        height: calc(3.5rem + env(safe-area-inset-top, 0px));
    }

    .top-row.auth[b-xce8qdb1u3]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-xce8qdb1u3], article[b-xce8qdb1u3] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-xce8qdb1u3] {
    color-scheme: light only;
    background: var(--app-error-ui-bg, 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-xce8qdb1u3] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.top-row[b-m2qded9mj8] {
    min-height: 3.5rem;
}

.navbar-brand[b-m2qded9mj8] {
    font-size: 1.1rem;
}

/* nav-item sizing, .bi margin, and .nav-link rules are in app.css (global) */

/* Sidebar toggle button (hamburger) */
.sidebar-toggle-btn[b-m2qded9mj8] {
    cursor: pointer;
    font-size: 1.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    border-style: solid;
    border-width: 1px;
    line-height: 1;
    user-select: none;
    font-weight: bold;
}

@media (max-width: 640.98px) {
    .sidebar-toggle-btn[b-m2qded9mj8] {
        font-size: 1.8rem;
        padding: 0.25rem 0.65rem;
    }
}

/* nav-section-* rules are in app.css (global) so NavTreeNode.razor inherits them */

/* Hidden by default; only shown when sidebar is collapsed (desktop) */
.nav-collapsed-toggle[b-m2qded9mj8] {
    display: none;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-0gaviq39t0],
.components-reconnect-repeated-attempt-visible[b-0gaviq39t0],
.components-reconnect-failed-visible[b-0gaviq39t0],
.components-pause-visible[b-0gaviq39t0],
.components-resume-failed-visible[b-0gaviq39t0],
.components-rejoining-animation[b-0gaviq39t0] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-0gaviq39t0],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-0gaviq39t0],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-0gaviq39t0],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-0gaviq39t0],
#components-reconnect-modal.components-reconnect-retrying[b-0gaviq39t0],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-0gaviq39t0],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-0gaviq39t0],
#components-reconnect-modal.components-reconnect-failed[b-0gaviq39t0],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-0gaviq39t0] {
    display: block;
}


#components-reconnect-modal[b-0gaviq39t0] {
    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-0gaviq39t0 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-0gaviq39t0 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-0gaviq39t0 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-0gaviq39t0]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-0gaviq39t0 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-0gaviq39t0 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-0gaviq39t0 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-0gaviq39t0 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-0gaviq39t0] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-0gaviq39t0] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-0gaviq39t0] {
    border: 0;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:active[b-0gaviq39t0] {}

.components-rejoining-animation[b-0gaviq39t0] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-0gaviq39t0] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-0gaviq39t0 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-0gaviq39t0] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-0gaviq39t0 {
    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/Messages.razor.rz.scp.css */
.messages-outer[b-uyq9mi0omc] {
    height: calc(100vh - 4.6rem - env(safe-area-inset-bottom, 0px));
    height: calc(100dvh - 4.6rem - env(safe-area-inset-bottom, 0px));
}

@media (max-width: 640.98px) {
    .messages-outer[b-uyq9mi0omc] {
        height: calc(100vh - 8.1rem - env(safe-area-inset-bottom, 0px));
        height: calc(100dvh - 8.1rem - env(safe-area-inset-bottom, 0px));
    }
}

/* Typing indicator dots */
.typing-dots[b-uyq9mi0omc] {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.typing-dots span[b-uyq9mi0omc] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: currentColor;
    opacity: 0.4;
    animation: typing-bounce-b-uyq9mi0omc 1.2s infinite;
}

.typing-dots span:nth-child(2)[b-uyq9mi0omc] {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3)[b-uyq9mi0omc] {
    animation-delay: 0.4s;
}

@keyframes typing-bounce-b-uyq9mi0omc {
    0%, 60%, 100% { opacity: 0.4; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}
