/* /Components/Layout/DashboardNav.razor.rz.scp.css */
/* ── Sidebar width + transition ──────────────────────────────────────────── */

aside[b-66pl1862xd] {
    transition: width 0.2s ease;
    /* No overflow-x: hidden — text is conditionally rendered so nothing
       overflows during the animation, and we need x-visible for tooltips. */
}

aside.sidebar-expanded[b-66pl1862xd] {
    width: 16rem;
}

aside.sidebar-collapsed[b-66pl1862xd] {
    width: 4rem;
}

/* ── Section labels ──────────────────────────────────────────────────────── */

.nav-section-label[b-66pl1862xd] {
    display: block;
    padding: 0 0.625rem;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(200, 216, 242, 0.25);
}

/* ── List reset — DaisyUI .tooltip makes <li> inline-block, breaking centering */

ul[b-66pl1862xd] {
    list-style: none;
    padding: 0;
    margin: 0;
}

li[b-66pl1862xd] {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
}

/* Elevate tooltip bubble above main content */
li[b-66pl1862xd]::before,
li[b-66pl1862xd]::after {
    z-index: 9999 !important;
}

/* ── Nav links (NavLink-rendered anchors need ::deep) ────────────────────── */

[b-66pl1862xd] .nav-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.45rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(200, 216, 242, 0.5);
    text-decoration: none;
    transition: background-color 0.12s ease, color 0.12s ease;
    width: 100%;
}

[b-66pl1862xd] .nav-link:hover {
    background-color: rgba(200, 216, 242, 0.05);
    color: rgba(200, 216, 242, 0.85);
}

[b-66pl1862xd] .nav-link.active {
    background-color: rgba(77, 140, 245, 0.13);
    color: #4d8cf5;
}

[b-66pl1862xd] .nav-link.icon-only {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

[b-66pl1862xd] .nav-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

/* ── Logout / submit button ──────────────────────────────────────────────── */

.nav-link-btn[b-66pl1862xd] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.45rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(200, 216, 242, 0.5);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.nav-link-btn:hover[b-66pl1862xd] {
    background-color: rgba(248, 113, 113, 0.1);
    color: #f87171;
}

.nav-link-btn.icon-only[b-66pl1862xd] {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}

/* ── Collapse toggle button ──────────────────────────────────────────────── */

.sidebar-toggle[b-66pl1862xd] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0 0.625rem;
    height: 2.5rem;
    border-radius: 0;
    color: rgba(200, 216, 242, 0.2);
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.sidebar-toggle:hover[b-66pl1862xd] {
    color: rgba(200, 216, 242, 0.55);
    background-color: rgba(200, 216, 242, 0.03);
}

.sidebar-toggle.icon-only[b-66pl1862xd] {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
/* /Components/Layout/LoginLayout.razor.rz.scp.css */
.login-layout[b-0q5s7xa67v] {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background-image: var(--login-background-image);
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.login-layout__overlay[b-0q5s7xa67v] {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 9, 28, 0.94) 0%, rgba(7, 12, 36, 0.85) 24%, rgba(9, 16, 48, 0.62) 48%, rgba(10, 18, 54, 0.32) 72%, rgba(8, 14, 42, 0.10) 100%);
    z-index: -1;
}

.login-layout__content[b-0q5s7xa67v] {
    width: min(100%, 580px);
    padding: clamp(1.5rem, 4vw, 3rem);
    display: flex;
    align-items: center;
}

.login-layout__logo[b-0q5s7xa67v] {
    position: absolute;
    right: clamp(1.2rem, 3vw, 2.4rem);
    bottom: clamp(1.2rem, 3vw, 2.4rem);
    width: clamp(72px, 9vw, 126px);
    height: auto;
    opacity: 0.95;
    border-radius: 999px;
    background: rgba(8, 10, 28, 0.75);
    padding: 0.45rem;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    pointer-events: none;
    user-select: none;
}

@media (max-width: 700px) {
    .login-layout__content[b-0q5s7xa67v] {
        width: 100%;
    }

    .login-layout__logo[b-0q5s7xa67v] {
        width: 64px;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ── Visibility toggles ──────────────────────────────────────────────────── */
/* All inner state elements start hidden; Blazor adds state classes to
   #components-reconnect-modal to reveal the appropriate content.          */

.components-reconnect-first-attempt-visible[b-m4kcb4uw1o],
.components-reconnect-repeated-attempt-visible[b-m4kcb4uw1o],
.components-reconnect-failed-visible[b-m4kcb4uw1o],
.components-pause-visible[b-m4kcb4uw1o],
.components-resume-failed-visible[b-m4kcb4uw1o],
.components-rejoining-animation[b-m4kcb4uw1o] {
    display: none;
}

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

.reconnect-primary-action .components-reconnect-failed-visible[b-m4kcb4uw1o],
.reconnect-primary-action .components-pause-visible[b-m4kcb4uw1o],
.reconnect-primary-action .components-resume-failed-visible[b-m4kcb4uw1o] {
    display: none;
}

#components-reconnect-modal.components-reconnect-failed .reconnect-primary-action .components-reconnect-failed-visible[b-m4kcb4uw1o],
#components-reconnect-modal.components-reconnect-paused .reconnect-primary-action .components-pause-visible[b-m4kcb4uw1o],
#components-reconnect-modal.components-reconnect-resume-failed .reconnect-primary-action .components-resume-failed-visible[b-m4kcb4uw1o] {
    display: inline;
}

/* ── Dialog chrome ───────────────────────────────────────────────────────── */

#components-reconnect-modal[b-m4kcb4uw1o] {
    background: #0b1220;
    border: 1px solid rgba(77, 140, 245, 0.18);
    border-radius: 1rem;
    width: 22rem;
    max-width: calc(100vw - 2rem);
    margin: 18vh auto;
    padding: 0;
    color: #c8d8f2;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(77, 140, 245, 0.08);
    opacity: 0;
    transition: display 0.4s allow-discrete, overlay 0.4s allow-discrete;
    animation: reconnect-fade-out-b-m4kcb4uw1o 0.4s both;
}

#components-reconnect-modal[open][b-m4kcb4uw1o] {
    animation: reconnect-slide-up-b-m4kcb4uw1o 0.45s cubic-bezier(0.16, 1, 0.3, 1) both,
               reconnect-fade-in-b-m4kcb4uw1o 0.3s ease-out both;
}

#components-reconnect-modal[b-m4kcb4uw1o]::backdrop {
    background: rgba(7, 9, 26, 0.72);
    backdrop-filter: blur(6px);
    animation: reconnect-fade-in-b-m4kcb4uw1o 0.3s ease-out;
    opacity: 1;
}

@keyframes reconnect-slide-up-b-m4kcb4uw1o {
    from {
        transform: translateY(18px) scale(0.97);
    }
    to {
        transform: translateY(0) scale(1);
    }
}

@keyframes reconnect-fade-in-b-m4kcb4uw1o {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes reconnect-fade-out-b-m4kcb4uw1o {
    from { opacity: 1; }
    to   { opacity: 0; }
}

/* ── Inner layout ────────────────────────────────────────────────────────── */

.components-reconnect-container[b-m4kcb4uw1o] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/* Animation wrapper */
.components-rejoining-animation[b-m4kcb4uw1o] {
    padding: 1.25rem 1.5rem 0;
    line-height: 0;
    text-align: center;
}

.reconnect-bike-gif[b-m4kcb4uw1o] {
    display: inline-block;
    max-width: min(200px, 100%);
    height: auto;
    vertical-align: middle;
}

/* Status text area */
.reconnect-body[b-m4kcb4uw1o] {
    padding: 0.75rem 1.5rem 0;
    text-align: center;
}

.reconnect-msg[b-m4kcb4uw1o] {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #c8d8f2;
    line-height: 1.35;
}

.reconnect-countdown[b-m4kcb4uw1o] {
    font-variant-numeric: tabular-nums;
    color: #4d8cf5;
    font-weight: 600;
}

/* Buttons */
.reconnect-btn[b-m4kcb4uw1o] {
    display: block;
    margin: 0.75rem 1.5rem 1.25rem;
    width: calc(100% - 3rem);
    background: #4d8cf5;
    color: #f0f4ff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.5625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    text-align: center;
}

.reconnect-btn:hover[b-m4kcb4uw1o] {
    background: #6ba3f7;
    transform: translateY(-1px);
}

.reconnect-btn:active[b-m4kcb4uw1o] {
    background: #4d8cf5;
    transform: translateY(0);
}

/* Spacing fix: when button immediately follows reconnect-body with no gap */
.reconnect-body + .reconnect-btn[b-m4kcb4uw1o] {
    margin-top: 1rem;
}

/* Primary action hidden unless failed / paused / resume-failed (.reconnect-btn sets display:block later) */
.reconnect-btn.reconnect-primary-action[b-m4kcb4uw1o] {
    display: none;
}

#components-reconnect-modal.components-reconnect-failed .reconnect-btn.reconnect-primary-action[b-m4kcb4uw1o],
#components-reconnect-modal.components-reconnect-paused .reconnect-btn.reconnect-primary-action[b-m4kcb4uw1o],
#components-reconnect-modal.components-reconnect-resume-failed .reconnect-btn.reconnect-primary-action[b-m4kcb4uw1o] {
    display: block;
}
