/* /Components/Layout/MainLayout.razor.rz.scp.css */
.top-navbar[b-6lhdlbmd2t] {
    background: linear-gradient(135deg, #002366 0%, #0052CC 40%, #4169E1 100%) !important;
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    height: 4.25rem;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
    font-family: var(--navbar-font);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.1),
        0 1px 0 rgba(255,255,255,0.2) inset,
        0 4px 24px rgba(0,0,0,0.2);
    flex-wrap: nowrap;
    position: relative;
}
.top-navbar[b-6lhdlbmd2t]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 5%, rgba(13,148,136,0.25) 20%, rgba(20,184,166,0.4) 50%, rgba(13,148,136,0.25) 80%, transparent 95%);
    pointer-events: none;
}

.top-navbar .navbar-brand[b-6lhdlbmd2t] {
    font-family: var(--navbar-font);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.page-body[b-6lhdlbmd2t] {
    display: flex;
    flex-direction: row;
    height: calc(100vh - 4.25rem);
    overflow: hidden;
    background: #f5f5f5;
    max-width: 100vw;
}

.sidebar-thin[b-6lhdlbmd2t] {
    width: 16rem;
    min-width: 16rem;
    background: var(--sidebar-bg) !important;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.06);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 4.25rem);
    position: relative;
    box-shadow: inset -1px 0 0 rgba(13,148,136,0.08);
}

.sidebar-thin[b-6lhdlbmd2t]::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(0deg, rgba(13,148,136,0.08) 0%, transparent 100%);
    pointer-events: none;
}

.sidebar-thin:has(> :not(:empty))[b-6lhdlbmd2t] {
    width: 16rem;
    min-width: 16rem;
}

.content-area[b-6lhdlbmd2t] {
    flex: 1;
    height: auto;
    overflow-y: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #f6f5f1;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.content-area-full[b-6lhdlbmd2t] {
    flex: 1;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #f6f5f1;
    zoom: 0.75;
}

.content-area-test-master[b-6lhdlbmd2t] {
    flex: 1;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #f6f5f1;
    zoom: 1.0;
}

.content-area-packages[b-6lhdlbmd2t] {
    flex: 1;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: #f6f5f1;
    zoom: 0.92;
}

.content-area-dashboard[b-6lhdlbmd2t] {
    flex: 1;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg,#f0f4ff 0%,#e8edf8 30%,#f5f0ff 70%,#fef7f0 100%);
    zoom: 0.75;
}

#blazor-error-ui[b-6lhdlbmd2t] {
    color-scheme: light only;
    background: #fef2f2;
    bottom: 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
    display: none;
    left: 0;
    padding: 0.75rem 1.5rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    font-family: var(--navbar-font);
}

#blazor-error-ui .reload[b-6lhdlbmd2t] {
    font-weight: 600;
    color: #dc2626;
}

#blazor-error-ui .dismiss[b-6lhdlbmd2t] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.75rem;
    font-size: 1.25rem;
}

/* ── Mobile Header ── */
.mobile-header[b-6lhdlbmd2t] {
    background: linear-gradient(100deg,
        rgba(13, 61, 56, 0.95) 0%,
        rgba(13, 148, 136, 0.9) 40%,
        rgba(20, 184, 166, 0.85) 75%,
        rgba(45, 212, 191, 0.8) 100%);
    height: 2.25rem;
    align-items: center;
    padding: 0 0.75rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(13,148,136,0.35);
}

.mobile-brand[b-6lhdlbmd2t] {
    color: white;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

/* ── Mobile Bottom Nav ── */
.mobile-bottom-nav[b-6lhdlbmd2t] {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.75rem;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    z-index: 200;
    justify-content: space-around;
    align-items: center;
    padding-bottom: env(safe-area-inset-bottom);
}

.mobile-tab[b-6lhdlbmd2t] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    text-decoration: none;
    color: #9ca3af;
    padding: 8px 0;
    transition: color 0.2s ease;
    position: relative;
}

.mobile-tab.active[b-6lhdlbmd2t] {
    color: #0d9488;
}

.mobile-tab.active[b-6lhdlbmd2t]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: #0d9488;
    border-radius: 0 0 4px 4px;
}

.mobile-tab-icon[b-6lhdlbmd2t] {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-tab.active .mobile-tab-icon[b-6lhdlbmd2t] {
    transform: scale(1.15);
}

.mobile-tab-label[b-6lhdlbmd2t] {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ── Mobile page-body adjustment ── */
@media (max-width: 767px) {
    .page-body[b-6lhdlbmd2t] {
        height: calc(100dvh - 2.25rem - 2.75rem);
    }

    .content-area[b-6lhdlbmd2t] {
        padding-bottom: 0 !important;
    }
}

/* Collapsed sidebar width — triggered by child class */
.sidebar-thin:has(.snav-collapsed)[b-6lhdlbmd2t] {
    width: 5rem !important;
    min-width: 5rem !important;
}

/* ── Back / Forward nav buttons ── */
.nav-history-btns[b-6lhdlbmd2t] {
    display: flex;
    gap: 2px;
    align-items: center;
    flex-shrink: 0;
}

.nav-hist-btn[b-6lhdlbmd2t] {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    border: 1.5px solid #d1d5db;
    background: #f1f5f9;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.nav-hist-btn svg[b-6lhdlbmd2t] {
    width: 15px;
    height: 15px;
}

.nav-hist-btn:hover[b-6lhdlbmd2t] {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transform: translateY(-1px);
}

.nav-hist-btn:active[b-6lhdlbmd2t] {
    transform: translateY(0) scale(0.95);
    background: #d1d5db;
}

.nav-refresh-btn:hover svg[b-6lhdlbmd2t] {
    animation: spin-refresh-b-6lhdlbmd2t 0.6s ease-in-out;
}

@keyframes spin-refresh-b-6lhdlbmd2t {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ── Info Button ── */
.nav-info-btn[b-6lhdlbmd2t] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fafaf8;
    border: 1.5px solid #e5e7eb;
    color: #4b5563;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-info-btn:hover[b-6lhdlbmd2t] {
    background: rgba(13,148,136,0.06);
    border-color: #0d9488;
    color: #0d9488;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,148,136,0.12);
}
.nav-info-btn:active[b-6lhdlbmd2t] { transform: translateY(0) scale(0.97); }
.nav-info-icon[b-6lhdlbmd2t] { font-size: 14px; color: #0d9488; }
.nav-info-label[b-6lhdlbmd2t] {
    color: #0d9488;
    font-weight: 700; letter-spacing: 0.03em;
}

/* ── Navbar Brand Glass Button ── */
.navbar-brand-glass[b-6lhdlbmd2t] {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,0.15) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    text-decoration: none;
    color: white !important;
    font-weight: 800 !important;
    font-size: 13px !important;
    letter-spacing: 0.01em;
    margin-right: 0.4rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-brand-glass:hover[b-6lhdlbmd2t] {
    background: rgba(255,255,255,0.25) !important;
    border-color: rgba(255,255,255,0.4) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nbg-icon[b-6lhdlbmd2t] { font-size: 0.9rem; line-height: 1; }
.nbg-text[b-6lhdlbmd2t] {
    color: white !important;
    -webkit-text-fill-color: white !important;
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: -0.02em;
}

/* ── Navbar User Badge (authenticated username) ──
   NOTE: the badge is rendered by the UserBadge child component, so its styling
   lives in UserBadge.razor.css (scoped CSS does not cross component boundaries). */

/* ── Lab Info Button ── */
.nav-labinfo-btn[b-6lhdlbmd2t] {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fafaf8;
    border: 1.5px solid #e5e7eb;
    color: #4b5563;
    border-radius: 8px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s cubic-bezier(0.4,0,0.2,1);
    overflow: hidden;
    margin-right: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-labinfo-btn:hover[b-6lhdlbmd2t] {
    background: rgba(13,148,136,0.06);
    border-color: #0d9488;
    color: #0d9488;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13,148,136,0.12);
}
.nav-labinfo-btn:active[b-6lhdlbmd2t] { transform: translateY(0) scale(0.97); }

@media print {
    .top-navbar[b-6lhdlbmd2t] { display: none !important; }
    .mobile-header[b-6lhdlbmd2t] { display: none !important; }
    .mobile-bottom-nav[b-6lhdlbmd2t] { display: none !important; }
    .sidebar-thin[b-6lhdlbmd2t] { display: none !important; }
}

/* Back / Forward top-nav buttons — accessible-name (aria-label) provided in mark-up;
   inline size styles moved here to keep the same visual appearance. */
.nav-back-fwd-btn[b-6lhdlbmd2t] {
    line-height: 1;
    font-size: 18px;
}

/* Mobile "Menu" tab button — mirrors .mobile-tab styling so it looks identical */
.mobile-tab-btn[b-6lhdlbmd2t] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 1;
    color: #9ca3af;
    padding: 8px 0;
    transition: color 0.2s ease;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.mobile-tab-btn.active[b-6lhdlbmd2t] {
    color: #0d9488;
}
.mobile-tab-btn.active[b-6lhdlbmd2t]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 3px;
    background: #0d9488;
    border-radius: 0 0 4px 4px;
}
.mobile-tab-btn .mobile-tab-icon[b-6lhdlbmd2t] {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mobile-tab-btn.active .mobile-tab-icon[b-6lhdlbmd2t] {
    transform: scale(1.15);
}
.mobile-tab-btn .mobile-tab-label[b-6lhdlbmd2t] {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Mobile menu drawer (slide-up) + overlay */
.mobile-menu-overlay[b-6lhdlbmd2t] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 300;
}
.mobile-menu-drawer[b-6lhdlbmd2t] {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 2.75rem;
    max-height: 78vh;
    background: #ffffff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.18);
    z-index: 310;
    display: flex;
    flex-direction: column;
    animation: mobileMenuSlideUp-b-6lhdlbmd2t 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes mobileMenuSlideUp-b-6lhdlbmd2t {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
.mobile-menu-header[b-6lhdlbmd2t] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px 12px;
    background: linear-gradient(100deg, #0f172a, #1e3a8a, #1d4ed8);
    border-radius: 18px 18px 0 0;
}
.mobile-menu-title[b-6lhdlbmd2t] {
    color: white;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
}
.mobile-menu-close[b-6lhdlbmd2t] {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s;
}
.mobile-menu-close:hover[b-6lhdlbmd2t] {
    background: rgba(255, 255, 255, 0.22);
}
.mobile-menu-body[b-6lhdlbmd2t] {
    overflow-y: auto;
    padding: 12px 16px 20px;
}
.mobile-menu-section-title[b-6lhdlbmd2t] {
    font-size: 11px;
    font-weight: 700;
    color: #0d9488;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 14px 2px 6px;
}
.mobile-menu-section-title:first-child[b-6lhdlbmd2t] {
    margin-top: 4px;
}
.mobile-menu-body a[b-6lhdlbmd2t] {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.mobile-menu-body a:hover[b-6lhdlbmd2t] {
    background: #f1f5f9;
    color: #0f172a;
}
.mobile-menu-body a.mobile-menu-link-active[b-6lhdlbmd2t] {
    background: #f0fdfa;
    color: #0d9488;
    font-weight: 700;
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* Minimal - No styles */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-37l888geqx],
.components-reconnect-repeated-attempt-visible[b-37l888geqx],
.components-reconnect-failed-visible[b-37l888geqx],
.components-pause-visible[b-37l888geqx],
.components-resume-failed-visible[b-37l888geqx],
.components-rejoining-animation[b-37l888geqx] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-37l888geqx],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-37l888geqx],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-37l888geqx],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-37l888geqx],
#components-reconnect-modal.components-reconnect-retrying[b-37l888geqx],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-37l888geqx],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-37l888geqx],
#components-reconnect-modal.components-reconnect-failed[b-37l888geqx],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-37l888geqx] {
    display: block;
}


#components-reconnect-modal[b-37l888geqx] {
    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-37l888geqx 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-37l888geqx 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-37l888geqx 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-37l888geqx]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-37l888geqx 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-37l888geqx {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-37l888geqx {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-37l888geqx {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-37l888geqx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-37l888geqx] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-37l888geqx] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-37l888geqx] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-37l888geqx] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-37l888geqx] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-37l888geqx] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-37l888geqx 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-37l888geqx] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-37l888geqx {
    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/UserBadge.razor.rz.scp.css */
/* ── Navbar User Badge (authenticated username) ──
   Scoped to UserBadge.razor — MainLayout's scoped CSS does NOT reach this
   child component, so the styling must live here to take effect. */
.navbar-user-badge[b-x1qj6x7ksx] {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,0.12) !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    line-height: 1;
    margin-left: 0.25rem;
    margin-right: 0.25rem;
    white-space: nowrap;
    flex-shrink: 0;
    overflow: hidden;
    max-width: 220px;
}
.navbar-user-badge:hover[b-x1qj6x7ksx] {
    background: rgba(255,255,255,0.22) !important;
    border-color: rgba(255,255,255,0.4) !important;
}
.nub-icon[b-x1qj6x7ksx] { font-size: 0.9rem; line-height: 1; flex-shrink: 0; }
.nub-username[b-x1qj6x7ksx] {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-weight: 800 !important;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
