/* /Components/Layout/PilotLayout.razor.rz.scp.css */
.chat-layout[b-hdxwqd3wyw] {
    display: flex;
    flex: 1;
    overflow: hidden;
    background: var(--tv-surface, #f0f4f8);
    min-height: 0; /* Allow flex shrink below content size */
}

/* Sidebar */
.chat-sidebar[b-hdxwqd3wyw] {
    width: 280px;
    min-width: 280px;
    background: linear-gradient(180deg, #0a1628 0%, #1a2d50 100%);
    display: flex;
    flex-direction: column;
    color: white;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-sidebar-brand[b-hdxwqd3wyw] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-sidebar-logo[b-hdxwqd3wyw] {
    width: 32px;
    height: 32px;
    filter: invert(1) brightness(2);
}

.chat-sidebar-title[b-hdxwqd3wyw] {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

.chat-sidebar-subtitle[b-hdxwqd3wyw] {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

.chat-new-btn[b-hdxwqd3wyw] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.75rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.1s;
    text-decoration: none;
    width: calc(100% - 1.5rem);
}

.chat-new-btn:hover[b-hdxwqd3wyw] {
    opacity: 0.9;
    transform: translateY(-1px);
}

.chat-new-btn .material-symbols-outlined[b-hdxwqd3wyw] {
    font-size: 1.1rem;
}

.chat-conversation-list[b-hdxwqd3wyw] {
    flex: 1;
    overflow-y: auto;
    padding: 0.5rem;
}

.chat-conversation-list[b-hdxwqd3wyw]::-webkit-scrollbar {
    width: 4px;
}

.chat-conversation-list[b-hdxwqd3wyw]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* Conversation group labels */
.chat-conv-group-label[b-hdxwqd3wyw] {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.35);
    padding: 0.6rem 0.5rem 0.3rem;
    margin-top: 0.25rem;
}

/* Conversation items */
.chat-conv-item[b-hdxwqd3wyw] {
    display: flex;
    align-items: center;
    border-radius: 8px;
    transition: background 0.15s;
    position: relative;
}

.chat-conv-item:hover[b-hdxwqd3wyw] {
    background: rgba(255, 255, 255, 0.06);
}

.chat-conv-item.active[b-hdxwqd3wyw] {
    background: rgba(59, 130, 246, 0.15);
}

.chat-conv-item-link[b-hdxwqd3wyw] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 0.8rem;
    flex: 1;
    min-width: 0;
    border-radius: 8px;
    transition: color 0.15s;
}

.chat-conv-item:hover .chat-conv-item-link[b-hdxwqd3wyw],
.chat-conv-item.active .chat-conv-item-link[b-hdxwqd3wyw] {
    color: white;
}

.chat-conv-item-icon[b-hdxwqd3wyw] {
    font-size: 0.95rem;
    flex-shrink: 0;
    opacity: 0.6;
}

.chat-conv-item-title[b-hdxwqd3wyw] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chat-conv-item-delete[b-hdxwqd3wyw] {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    margin-right: 0.35rem;
    border: none;
    background: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

.chat-conv-item:hover .chat-conv-item-delete[b-hdxwqd3wyw] {
    display: flex;
}

.chat-conv-item-delete:hover[b-hdxwqd3wyw] {
    color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.chat-conv-item-delete .material-symbols-outlined[b-hdxwqd3wyw] {
    font-size: 0.85rem;
}

/* Empty state */
.chat-conv-empty[b-hdxwqd3wyw] {
    text-align: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    padding: 2rem 1rem;
}

/* Sidebar footer */
.chat-sidebar-footer[b-hdxwqd3wyw] {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chat-sidebar-link[b-hdxwqd3wyw],
.chat-sidebar-link-form button[b-hdxwqd3wyw] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 8px;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    width: 100%;
    text-align: left;
}

.chat-sidebar-link:hover[b-hdxwqd3wyw],
.chat-sidebar-link-form button:hover[b-hdxwqd3wyw] {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.chat-sidebar-link .material-symbols-outlined[b-hdxwqd3wyw],
.chat-sidebar-link-form button .material-symbols-outlined[b-hdxwqd3wyw] {
    font-size: 1rem;
}

.chat-sidebar-link-form[b-hdxwqd3wyw] {
    margin: 0;
    padding: 0;
}

/* Main content area */
.chat-main-area[b-hdxwqd3wyw] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
    min-height: 0; /* Critical: allow flex shrink in nested flex column */
}

/* Responsive */
@media (max-width: 768px) {
    .chat-sidebar[b-hdxwqd3wyw] {
        display: none;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-4heek5iuja],
.components-reconnect-repeated-attempt-visible[b-4heek5iuja],
.components-reconnect-failed-visible[b-4heek5iuja],
.components-pause-visible[b-4heek5iuja],
.components-resume-failed-visible[b-4heek5iuja],
.components-rejoining-animation[b-4heek5iuja] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-4heek5iuja],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-4heek5iuja],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-4heek5iuja],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-4heek5iuja],
#components-reconnect-modal.components-reconnect-retrying[b-4heek5iuja],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-4heek5iuja],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-4heek5iuja],
#components-reconnect-modal.components-reconnect-failed[b-4heek5iuja],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-4heek5iuja] {
    display: block;
}


#components-reconnect-modal[b-4heek5iuja] {
    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-4heek5iuja 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-4heek5iuja 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-4heek5iuja 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-4heek5iuja]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-4heek5iuja 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-4heek5iuja {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-4heek5iuja {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-4heek5iuja {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-4heek5iuja] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-4heek5iuja] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-4heek5iuja] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-4heek5iuja] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-4heek5iuja] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-4heek5iuja] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-4heek5iuja] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-4heek5iuja 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-4heek5iuja] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-4heek5iuja {
    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;
    }
}
