/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* --- Authenticated layout: sidebar + content --- */
.ns-layout-auth[b-bfgdyhx64p] {
    display: flex;
    flex-direction: row;
    height: 100vh;
    overflow: hidden;
}

.ns-main-content[b-bfgdyhx64p] {
    flex: 1 1 0;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    max-width: 100%;
}

/* --- Guest layout: top bar + content --- */
.ns-layout-guest[b-bfgdyhx64p] {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.ns-layout-guest main[b-bfgdyhx64p] {
    flex: 1 1 0;
    overflow-y: auto;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* --- Topbar (guest only) --- */
.ns-topbar[b-oirdvgnm42] {
    background: #111827;
    border-bottom: 1px solid rgba(245, 158, 11, 0.08);
    flex-shrink: 0;
}

.ns-topbar-inner[b-oirdvgnm42] {
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 52px;
}

/* Brand */
.ns-brand[b-oirdvgnm42] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #F59E0B;
    font-weight: 800;
    font-size: 1.15rem;
    text-decoration: none;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.ns-brand:hover[b-oirdvgnm42] {
    color: #FBBF24;
}
.ns-brand-logo[b-oirdvgnm42] {
    width: 28px;
    height: 28px;
}

/* Center spacer */
.ns-nav-links[b-oirdvgnm42] {
    flex: 1;
}

/* Auth buttons */
.ns-auth-buttons[b-oirdvgnm42] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.ns-btn-login[b-oirdvgnm42] {
    padding: 0.35rem 1rem;
    border-radius: 0.5rem;
    color: #9CA3AF;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s;
}
.ns-btn-login:hover[b-oirdvgnm42] {
    color: #F9FAFB;
    background: rgba(255, 255, 255, 0.05);
}

.ns-btn-register[b-oirdvgnm42] {
    padding: 0.35rem 1rem;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #0D0D0D;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s;
}
.ns-btn-register:hover[b-oirdvgnm42] {
    background: linear-gradient(135deg, #FBBF24, #F59E0B);
    color: #0D0D0D;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-z694swqypw],
.components-reconnect-repeated-attempt-visible[b-z694swqypw],
.components-reconnect-failed-visible[b-z694swqypw],
.components-pause-visible[b-z694swqypw],
.components-resume-failed-visible[b-z694swqypw],
.components-rejoining-animation[b-z694swqypw] {
    display: none;
}

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


#components-reconnect-modal[b-z694swqypw] {
    background-color: #1F2937;
    color: #E5E7EB;
    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-z694swqypw 0.5s both;
    &[open]

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

#components-reconnect-modal button[b-z694swqypw] {
    border: 0;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #0D0D0D;
    font-weight: 600;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-z694swqypw] {
        background: linear-gradient(135deg, #FBBF24, #F59E0B);
    }

    #components-reconnect-modal button:active[b-z694swqypw] {
        background: #D97706;
    }

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

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

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

@keyframes components-rejoining-animation-b-z694swqypw {
    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/Layout/ServerSidebar.razor.rz.scp.css */
/* ============ Discord-style Server Sidebar ============ */

.ns-sidebar[b-vhhkw6ueil] {
    width: 72px;
    min-width: 72px;
    height: 100vh;
    background: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
    overflow-y: auto;
    overflow-x: visible;
    scrollbar-width: none;
}
.ns-sidebar[b-vhhkw6ueil]::-webkit-scrollbar {
    display: none;
}

/* --- Logo --- */
.ns-sb-logo[b-vhhkw6ueil] {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ns-sb-logo img[b-vhhkw6ueil] {
    width: 40px;
    height: 40px;
}

/* --- Separator --- */
.ns-sb-sep[b-vhhkw6ueil] {
    width: 32px;
    height: 2px;
    background: rgba(245, 158, 11, 0.12);
    border-radius: 1px;
    flex-shrink: 0;
}

/* --- Pill wrapper (for active/hover indicator) --- */
.ns-sb-pill-wrap[b-vhhkw6ueil] {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Pill indicator at the left edge of the sidebar */
.ns-sb-pill-wrap[b-vhhkw6ueil]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 0;
    border-radius: 0 4px 4px 0;
    background: #F9FAFB;
    transition: height 0.15s ease;
}
.ns-sb-pill-wrap:hover[b-vhhkw6ueil]::before {
    height: 20px;
}
.ns-sb-pill-wrap.active[b-vhhkw6ueil]::before {
    height: 36px;
    background: #F59E0B;
}

/* --- Icon base --- */
.ns-sb-icon[b-vhhkw6ueil] {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1F2937;
    color: #9CA3AF;
    text-decoration: none;
    transition: border-radius 0.2s ease, background 0.2s ease, color 0.2s ease;
    font-size: 1.25rem;
    flex-shrink: 0;
    position: relative;
}

.ns-sb-icon:hover[b-vhhkw6ueil] {
    border-radius: 33%;
    background: #F59E0B;
    color: #0D0D0D;
}

.ns-sb-icon.active[b-vhhkw6ueil] {
    border-radius: 33%;
    background: #F59E0B;
    color: #0D0D0D;
}

/* Class icons with images */
.ns-sb-class[b-vhhkw6ueil] {
    overflow: hidden;
}
.ns-sb-class img[b-vhhkw6ueil] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Initial letter placeholder */
.ns-sb-initial[b-vhhkw6ueil] {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* Action icons (create, browse) — gold accent on hover */
.ns-sb-action:hover[b-vhhkw6ueil] {
    background: #F59E0B;
    color: #0D0D0D;
}
.ns-sb-action.active[b-vhhkw6ueil] {
    background: #F59E0B;
    color: #0D0D0D;
}

/* User icon */
.ns-sb-user[b-vhhkw6ueil] {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
}

/* --- Dot indicator (unread/pending) --- */
.ns-sb-dot[b-vhhkw6ueil] {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #EF4444;
    border: 2px solid #111827;
    z-index: 10;
    pointer-events: none;
}

/* --- Spacer --- */
.ns-sb-spacer[b-vhhkw6ueil] {
    flex: 1 1 0;
}
/* /Components/Pages/HomeHub.razor.rz.scp.css */
/* ===== Home Hub Layout ===== */
.ns-home-layout[b-q8122ycylq] {
    display: flex;
    height: calc(100vh);
    overflow: hidden;
    margin: -1.5rem -2rem;
}

/* ===== Left: DM sidebar ===== */
.ns-home-sidebar[b-q8122ycylq] {
    width: 260px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #374151;
    background: #111827;
}

.ns-home-sidebar-header[b-q8122ycylq] {
    padding: 14px 16px;
    border-bottom: 1px solid #374151;
    color: #9CA3AF;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ns-dm-list[b-q8122ycylq] {
    flex: 1;
    overflow-y: auto;
}

.ns-dm-item[b-q8122ycylq] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: transparent;
    text-align: left;
    color: #9CA3AF;
    cursor: pointer;
    transition: background 0.12s;
    border-radius: 4px;
    margin: 1px 8px;
    max-width: calc(100% - 16px);
}

.ns-dm-item:hover[b-q8122ycylq] {
    background: rgba(255, 255, 255, 0.04);
    color: #E5E7EB;
}

.ns-dm-item.active[b-q8122ycylq] {
    background: rgba(245, 158, 11, 0.1);
    color: #E5E7EB;
}

.ns-dm-avatar[b-q8122ycylq] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1F2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #6B7280;
    flex-shrink: 0;
    overflow: hidden;
}

.ns-dm-avatar img[b-q8122ycylq] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ns-dm-info[b-q8122ycylq] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ns-dm-name[b-q8122ycylq] {
    font-weight: 500;
    font-size: 0.88rem;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ns-dm-preview[b-q8122ycylq] {
    font-size: 0.75rem;
    color: #6B7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ns-dm-badge[b-q8122ycylq] {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: #0D0D0D;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    flex-shrink: 0;
}

/* ===== Right: Main content area ===== */
.ns-home-main[b-q8122ycylq] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #14171f;
}

/* --- DM chat header --- */
.ns-dm-header[b-q8122ycylq] {
    padding: 14px 20px;
    border-bottom: 1px solid #374151;
    display: flex;
    align-items: center;
    background: #111827;
}

/* --- DM messages --- */
.ns-dm-messages[b-q8122ycylq] {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Discord-style messages (reused from Chat) */
.ns-msg[b-q8122ycylq] {
    display: flex;
    gap: 12px;
    padding: 4px 0;
}
.ns-msg:hover[b-q8122ycylq] {
    background: rgba(255, 255, 255, 0.02);
}
.ns-msg-avatar[b-q8122ycylq] {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1F2937;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #9CA3AF;
    flex-shrink: 0;
    margin-top: 2px;
}
.ns-msg-avatar-spacer[b-q8122ycylq] {
    width: 36px;
    flex-shrink: 0;
}
.ns-msg-body[b-q8122ycylq] {
    flex: 1;
    min-width: 0;
}
.ns-msg-header[b-q8122ycylq] {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}
.ns-msg-name[b-q8122ycylq] {
    font-weight: 600;
    font-size: 0.88rem;
    color: #F59E0B;
}
.ns-msg-timestamp[b-q8122ycylq] {
    font-size: 0.72rem;
    color: #6B7280;
}
.ns-msg-content[b-q8122ycylq] {
    color: #E5E7EB;
    font-size: 0.92rem;
    word-wrap: break-word;
    line-height: 1.4;
}
.ns-msg-grouped[b-q8122ycylq] {
    padding: 1px 0;
}

/* --- DM input --- */
.ns-dm-input[b-q8122ycylq] {
    padding: 12px 16px;
    border-top: 1px solid #374151;
    display: flex;
    gap: 8px;
    background: #111827;
}
.ns-dm-input .form-control[b-q8122ycylq] {
    border-radius: 20px;
    padding: 8px 16px;
}
.ns-dm-input .btn[b-q8122ycylq] {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ===== Friends header with tabs ===== */
.ns-friends-header[b-q8122ycylq] {
    padding: 14px 20px;
    border-bottom: 1px solid #374151;
    display: flex;
    align-items: center;
    background: #111827;
    gap: 16px;
}

.ns-friends-tabs[b-q8122ycylq] {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.ns-tab[b-q8122ycylq] {
    border: none;
    background: transparent;
    color: #6B7280;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.ns-tab:hover[b-q8122ycylq] {
    background: rgba(255, 255, 255, 0.05);
    color: #E5E7EB;
}
.ns-tab.active[b-q8122ycylq] {
    background: rgba(245, 158, 11, 0.15);
    color: #F59E0B;
}

.ns-pending-count[b-q8122ycylq] {
    background: #EF4444;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 14px;
    height: 14px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}

/* ===== Friends content ===== */
.ns-friends-content[b-q8122ycylq] {
    flex: 1;
    overflow-y: auto;
}

.ns-friends-empty[b-q8122ycylq] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    color: #6B7280;
}

.ns-pending-section[b-q8122ycylq] {
    padding: 8px 0;
}

.ns-section-label[b-q8122ycylq] {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6B7280;
    padding: 8px 20px 4px;
    margin: 0;
}

.ns-friend-row[b-q8122ycylq] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 20px;
    transition: background 0.12s;
    border-top: 1px solid rgba(55, 65, 81, 0.3);
}
.ns-friend-row:hover[b-q8122ycylq] {
    background: rgba(255, 255, 255, 0.02);
}

.ns-friend-avatar[b-q8122ycylq] {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1F2937;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    color: #9CA3AF;
    font-weight: 600;
    font-size: 1rem;
}
.ns-friend-avatar img[b-q8122ycylq] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ns-friend-avatar.ns-class-avatar[b-q8122ycylq] {
    border-radius: 33%;
    background: rgba(245, 158, 11, 0.1);
    color: #F59E0B;
}

.ns-friend-info[b-q8122ycylq] {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ns-friend-name[b-q8122ycylq] {
    font-weight: 500;
    font-size: 0.9rem;
    color: #E5E7EB;
}

.ns-friend-status[b-q8122ycylq] {
    font-size: 0.72rem;
    color: #6B7280;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ns-friend-status[b-q8122ycylq]::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6B7280;
    flex-shrink: 0;
}
.ns-friend-status.online[b-q8122ycylq] {
    color: #10B981;
}
.ns-friend-status.online[b-q8122ycylq]::before {
    background: #10B981;
}

.ns-friend-actions[b-q8122ycylq] {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.ns-mono[b-q8122ycylq] {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ===== Responsive ===== */
@media (max-width: 767.98px) {
    .ns-home-sidebar[b-q8122ycylq] {
        width: 100%;
        min-width: 100%;
    }
    .ns-home-main[b-q8122ycylq] {
        display: none;
    }
    .ns-home-layout.ns-dm-open .ns-home-sidebar[b-q8122ycylq] {
        display: none;
    }
    .ns-home-layout.ns-dm-open .ns-home-main[b-q8122ycylq] {
        display: flex;
        width: 100%;
    }
}
