/* /Layout/MainLayout.razor.rz.scp.css */
/* The top bar spans the top and stays there (sticky); below it the sidebar (when docked open) and the
   page. .sidebar is just NavMenu's wrapper, so its two parts -- the bar and the menu -- sit in this
   grid directly. --app-header-h is the bar's height, for anything else that sticks to the top. */
.page[b-5o5ah1y2pc] {
    --app-header-h: 3.5rem;
    /* Sidebar slide: a soft glide in, a quicker ease out. SidebarState.SlideOutMs matches the out time. */
    --sidebar-in-ms: 320ms;
    --sidebar-in-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --sidebar-out-ms: 260ms;
    --sidebar-out-ease: cubic-bezier(0.55, 0, 0.75, 0.2);
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    min-height: 100vh;
}

.sidebar[b-5o5ah1y2pc] {
    display: contents;
}

.page[b-5o5ah1y2pc]  .top-row {
    grid-column: 1 / -1;
    grid-row: 1;
    position: sticky;
    top: 0;
    z-index: 1030;
}

main[b-5o5ah1y2pc] {
    grid-column: 2;
    grid-row: 2;
    /* Wide content scrolls inside its own .table-responsive rather than widening the page. */
    min-width: 0;
}

/* Docked open (wide screens): the menu is a navy column at the left, under the bar. When the hamburger
   opens or closes it (.is-animated, not on page load) it slides in and out like the drawer; the page
   makes room at the start of opening and takes the space back at the end of closing. */
.page.sidebar-open[b-5o5ah1y2pc]  .nav-scrollable {
    grid-column: 1;
    grid-row: 2;
    width: 250px;
}

.page.sidebar-open.is-animated[b-5o5ah1y2pc]  .nav-scrollable {
    animation: sidebar-slide-in-b-5o5ah1y2pc var(--sidebar-in-ms) var(--sidebar-in-ease);
}

.page.sidebar-open.is-closing[b-5o5ah1y2pc]  .nav-scrollable {
    animation: sidebar-slide-out-b-5o5ah1y2pc var(--sidebar-out-ms) var(--sidebar-out-ease) forwards;
}

.page.sidebar-open[b-5o5ah1y2pc]  .nav-scrollable > nav {
    position: sticky;
    top: var(--app-header-h);
    max-height: calc(100vh - var(--app-header-h));
    overflow-y: auto;
}

@media (min-width: 992px) {
    article[b-5o5ah1y2pc] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* Drawer ("Always collapsed", and any width below 992px): the menu slides in from the left under the
   bar, over a backdrop that closes it when clicked. The bar stays on top, so its hamburger closes it too. */
.page.sidebar-overlay[b-5o5ah1y2pc]  .nav-scrollable {
    position: fixed;
    top: var(--app-header-h);
    left: 0;
    bottom: 0;
    width: 250px;
    max-width: 85vw;
    z-index: 1026;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: sidebar-slide-in-b-5o5ah1y2pc var(--sidebar-in-ms) var(--sidebar-in-ease);
}

.sidebar-backdrop[b-5o5ah1y2pc] {
    position: fixed;
    top: var(--app-header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1025;
    background: rgba(13, 27, 51, 0.35);
    animation: sidebar-fade-in-b-5o5ah1y2pc var(--sidebar-in-ms) ease-out;
}

.page.sidebar-overlay.is-closing[b-5o5ah1y2pc]  .nav-scrollable {
    animation: sidebar-slide-out-b-5o5ah1y2pc var(--sidebar-out-ms) var(--sidebar-out-ease) forwards;
}

.page.sidebar-overlay.is-closing .sidebar-backdrop[b-5o5ah1y2pc] {
    animation: sidebar-fade-out-b-5o5ah1y2pc var(--sidebar-out-ms) ease-in forwards;
}

@keyframes sidebar-slide-in-b-5o5ah1y2pc { from { transform: translateX(-100%); } }
@keyframes sidebar-slide-out-b-5o5ah1y2pc { to { transform: translateX(-100%); } }
@keyframes sidebar-fade-in-b-5o5ah1y2pc { from { opacity: 0; } }
@keyframes sidebar-fade-out-b-5o5ah1y2pc { to { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    .page[b-5o5ah1y2pc]  .nav-scrollable,
    .sidebar-backdrop[b-5o5ah1y2pc] {
        animation: none !important;
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
.top-row[b-2cr7erglfy] {
    /* MainLayout pins it across the top (--app-header-h is this height). */
    height: 3.5rem;
    background-color: var(--navy-700);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-row .navbar-toggler[b-2cr7erglfy] {
    border-color: rgba(255, 255, 255, 0.35);
}

/* The menu under the bar: flat brand navy, as the sidebar has always been (no gradients). */
.nav-scrollable[b-2cr7erglfy] {
    background-color: var(--navy-700);
}

.navbar-brand[b-2cr7erglfy] {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

/* The hamburger comes first and the logo has one fixed size, so toggling the sidebar (which turns
   this row from the sidebar's header into a full-width top bar) moves neither. */
.top-row .container-fluid[b-2cr7erglfy] {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
}

.navbar-toggler[b-2cr7erglfy] {
    flex-shrink: 0;
    padding: 0.2rem 0.45rem;
    font-size: 1.05rem;
}

.navbar-brand-logo[b-2cr7erglfy] {
    display: block;
    width: 140px; /* fits beside the hamburger in the 250px sidebar without shrinking */
    height: auto;
}

.bi[b-2cr7erglfy] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.bi-house-door-fill-nav-menu[b-2cr7erglfy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu[b-2cr7erglfy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

.bi-list-nested-nav-menu[b-2cr7erglfy] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-list-nested' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M4.5 11.5A.5.5 0 0 1 5 11h10a.5.5 0 0 1 0 1H5a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 3 7h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm-2-4A.5.5 0 0 1 1 3h10a.5.5 0 0 1 0 1H1a.5.5 0 0 1-.5-.5z'/%3E%3C/svg%3E");
}

.nav-item[b-2cr7erglfy] {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding-bottom: 0.25rem;
}

    .nav-item:first-of-type[b-2cr7erglfy] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-2cr7erglfy] {
        padding-bottom: 1rem;
    }

    .nav-item[b-2cr7erglfy]  a,
    .nav-item[b-2cr7erglfy]  .nav-link {
        color: var(--navy-200);
        border-radius: var(--radius-sm);
        height: 2.75rem;
        display: flex;
        align-items: center;
        line-height: 2.75rem;
        width: 100%;
        font-family: inherit;
        font-weight: inherit;
        text-transform: inherit;
        letter-spacing: inherit;
        text-decoration: none;
        transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
    }

.nav-item[b-2cr7erglfy]  a.active {
    background-color: var(--navy-900);
    color: #fff;
}

.nav-item[b-2cr7erglfy]  a:hover,
.nav-item[b-2cr7erglfy]  .nav-link:hover {
    background-color: var(--navy-800);
    color: #fff;
}

/* Unread message threads, next to Messages. */
.nav-badge[b-2cr7erglfy] {
    margin-left: auto;
    min-width: 1.5rem;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--red-500, #EC2127);
    color: #fff;
    font-size: 12px;
    line-height: 1.5rem;
    text-align: center;
    letter-spacing: 0;
}

/* Signed in: who it is and Log out, at the right end of the top bar. */
.top-row-account[b-2cr7erglfy] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding-right: 8px;
}

.top-row-user[b-2cr7erglfy] {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

.top-row-logout[b-2cr7erglfy] {
    flex-shrink: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: transparent;
}

.top-row-logout:hover[b-2cr7erglfy],
.top-row-logout:focus-visible[b-2cr7erglfy] {
    color: var(--navy-700);
    background: #fff;
    border-color: #fff;
}

@media (max-width: 640px) {
    .top-row-user[b-2cr7erglfy] { display: none; }
}
