/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-x6datxqfcl] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-x6datxqfcl] {
    flex: 1;
}

.sidebar[b-x6datxqfcl] {
    background-image: linear-gradient(180deg, #2F80ED 0%, #1f66c4 55%, #27AE60 140%);
    box-shadow: 2px 0 16px rgba(16, 24, 40, .12);
}

.top-row[b-x6datxqfcl] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-x6datxqfcl]  a, .top-row[b-x6datxqfcl]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-x6datxqfcl]  a:hover, .top-row[b-x6datxqfcl]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-x6datxqfcl]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-x6datxqfcl] {
        justify-content: space-between;
    }

    .top-row[b-x6datxqfcl]  a, .top-row[b-x6datxqfcl]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-x6datxqfcl] {
        flex-direction: row;
    }

    .sidebar[b-x6datxqfcl] {
        /* Width is controlled by NavMenu's .vet-sidebar transition */
        flex-shrink: 0;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-x6datxqfcl] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-x6datxqfcl]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-x6datxqfcl], article[b-x6datxqfcl] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-x6datxqfcl] {
    color-scheme: light only;
    background: 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-x6datxqfcl] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ═══════════════════════════════════════════════════════════
   NavMenu — Collapsible sidebar
═══════════════════════════════════════════════════════════ */

/* ── Sidebar wrapper ──────────────────────────────────────── */
.vet-sidebar[b-m76w9glx3s] {
    display: flex;
    flex-direction: column;
    width: 260px;
    min-height: 100vh;
    overflow: hidden;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.vet-sidebar.is-collapsed[b-m76w9glx3s] {
    width: 64px;
}

/* ── Mobile hamburger checkbox ────────────────────────────── */
.navbar-toggler[b-m76w9glx3s] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-m76w9glx3s] {
    background-color: rgba(255, 255, 255, 0.5);
}

/* ── Top bar (brand + collapse button) ───────────────────── */
.top-row[b-m76w9glx3s] {
    min-height: 3.5rem;
    background-color: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    padding: 0 0.5rem 0 0.875rem;
    gap: 0.5rem;
    flex-shrink: 0;
    overflow: hidden;
}

.navbar-brand[b-m76w9glx3s] {
    font-size: 0.92rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
    opacity: 1;
    max-width: 200px;
    transition: opacity 0.2s ease, max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover[b-m76w9glx3s] {
    color: white;
    text-decoration: none;
}

.vet-sidebar.is-collapsed .navbar-brand[b-m76w9glx3s] {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
}

/* ── Desktop collapse toggle ──────────────────────────────── */
.vet-collapse-btn[b-m76w9glx3s] {
    display: none; /* shown only on desktop via media query */
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1;
    font-size: 0.8rem;
}

.vet-collapse-btn:hover[b-m76w9glx3s] {
    background: rgba(255, 255, 255, 0.22);
    color: white;
}

/* When collapsed, center the toggle in the header bar */
.vet-sidebar.is-collapsed .top-row[b-m76w9glx3s] {
    justify-content: center;
    padding: 0;
}

/* ── Fix Bootstrap Icons web font in flex containers ─────── */
/* Reset margin/position that conflict with gap-based layout */
.bi[b-m76w9glx3s] {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    background-size: cover;
    vertical-align: -0.125em;
    /* margin-right and position:relative/top are intentionally removed */
}

/* Background-image nav icons used in the old auth area — keep a small margin */
.bi-person-fill-nav-menu[b-m76w9glx3s],
.bi-arrow-bar-left-nav-menu[b-m76w9glx3s],
.bi-person-badge-nav-menu[b-m76w9glx3s] {
    margin-right: 0.4rem;
}

/* ── Nav icon sizing & alignment ──────────────────────────── */
.vet-icon[b-m76w9glx3s] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.125rem;
    height: 1.125rem;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    /* Override inherited .bi margins and background */
    margin: 0;
    background: none;
    vertical-align: middle;
}

/* ── Label text ───────────────────────────────────────────── */
.vet-lbl[b-m76w9glx3s] {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 1;
    max-width: 240px;
    transition: opacity 0.2s ease, max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.vet-sidebar.is-collapsed .vet-lbl[b-m76w9glx3s] {
    opacity: 0;
    max-width: 0;
    pointer-events: none;
}

/* ── Chevron arrows ───────────────────────────────────────── */
.vet-chev[b-m76w9glx3s] {
    flex-shrink: 0;
    font-size: 0.7rem;
    width: 0.75rem;
    height: 0.75rem;
    margin: 0;
    margin-left: auto;
    background: none;
    vertical-align: middle;
    transition: transform 0.2s ease, opacity 0.2s ease, max-width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 1rem;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vet-chev.open[b-m76w9glx3s] {
    transform: rotate(180deg);
}

.vet-sidebar.is-collapsed .vet-chev[b-m76w9glx3s] {
    opacity: 0;
    max-width: 0;
}

/* ── Scrollable nav area ─────────────────────────────────── */
.nav-scrollable[b-m76w9glx3s] {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.navbar-toggler:checked ~ .nav-scrollable[b-m76w9glx3s] {
    display: flex;
}

/* ── Navigation list ─────────────────────────────────────── */
.vet-nav[b-m76w9glx3s] {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0.375rem;
    gap: 0.125rem;
    flex: 1;
}

/* ── Base nav link (anchors and buttons) ─────────────────── */
.vet-sidebar[b-m76w9glx3s]  .vet-link,
.vet-link[b-m76w9glx3s] {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    border-radius: 6px;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    min-height: 2.5rem;
    box-sizing: border-box;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1.2;
}

.vet-sidebar[b-m76w9glx3s]  .vet-link:hover,
.vet-link:hover[b-m76w9glx3s] {
    background-color: rgba(255, 255, 255, 0.12);
    color: white;
    text-decoration: none;
}

/* Active link highlight (Blazor NavLink adds .active automatically) */
.vet-sidebar[b-m76w9glx3s]  a.active {
    background-color: rgba(255, 255, 255, 0.22);
    color: white;
    font-weight: 500;
}

/* When collapsed: center icon, hide text */
.vet-sidebar.is-collapsed .vet-link[b-m76w9glx3s],
.vet-sidebar.is-collapsed[b-m76w9glx3s]  .vet-link {
    justify-content: center;
    padding: 0.55rem;
}

/* ── Sub-links (inside group) ────────────────────────────── */
.vet-slink[b-m76w9glx3s] {
    font-size: 0.825rem;
    min-height: 2.2rem;
    padding: 0.45rem 0.75rem;
}

/* ── Collapsible sub-nav ─────────────────────────────────── */
.vet-sub[b-m76w9glx3s] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    padding-left: 0.375rem;
    margin-left: 1.4rem;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.vet-sub.vet-sub--open[b-m76w9glx3s] {
    max-height: 600px;
}

/* Hide sub-nav when sidebar is collapsed */
.vet-sidebar.is-collapsed .vet-sub[b-m76w9glx3s] {
    max-height: 0 !important;
    margin-left: 0;
    padding-left: 0;
    border-left: none;
}

/* ── Footer (user links + logo) ──────────────────────────── */
.vet-footer[b-m76w9glx3s] {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    padding: 0.5rem 0.375rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    flex-shrink: 0;
}

.vet-footer form[b-m76w9glx3s] {
    margin: 0;
    padding: 0;
}

.vet-logo[b-m76w9glx3s] {
    padding: 0.75rem;
    text-align: center;
}

.vet-logo img[b-m76w9glx3s] {
    max-height: 90px;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
    transition: max-height 0.25s ease;
}

.vet-sidebar.is-collapsed .vet-logo[b-m76w9glx3s] {
    padding: 0.5rem;
}

.vet-sidebar.is-collapsed .vet-logo img[b-m76w9glx3s] {
    max-height: 40px;
}

/* ── Desktop (≥ 641px) ───────────────────────────────────── */
@media (min-width: 641px) {
    .navbar-toggler[b-m76w9glx3s] {
        display: none;
    }

    .nav-scrollable[b-m76w9glx3s] {
        display: flex !important;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }

    .vet-collapse-btn[b-m76w9glx3s] {
        display: flex;
    }
}

/* ── Mobile (< 641px) ────────────────────────────────────── */
@media (max-width: 640.98px) {
    .vet-sidebar[b-m76w9glx3s] {
        width: 100% !important;
        min-height: auto;
    }

    .vet-sidebar.is-collapsed[b-m76w9glx3s] {
        width: 100% !important;
    }
}
