@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.olwso25aue.bundle.scp.css';

/* /Layout/MainLayout.razor.rz.scp.css */
/* ─── Sidebar icons 20% larger than BB default ───────────────────── */
[b-xp7zps57ef] .bb-sidebar .nav-link-icon {
    font-size: 1.2rem;
}

/* Also keep collapse toggle icon in sync */
.ftp-sb-toggle i[b-xp7zps57ef] {
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* ─── Logo: neutralise Bootstrap .navbar padding on the top-row element ─ */
[b-xp7zps57ef] .bb-sidebar-header,
[b-xp7zps57ef] .sidebar-header {
    padding: 0 !important;
    border-bottom: none !important;
}

/* .bb-sidebar-top-row also carries Bootstrap's .navbar class which adds
   padding-top/bottom: 0.5rem — zero that out completely */
[b-xp7zps57ef] .bb-sidebar-top-row.navbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

[b-xp7zps57ef] .bb-sidebar-top-row .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Bootstrap .navbar-brand also carries its own vertical padding */
[b-xp7zps57ef] .navbar-brand {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 100%;
}

/* Let the brand-image span fill the full row height */
[b-xp7zps57ef] .navbar-brand-image {
    height: 100%;
    display: flex;
    align-items: center;
}

/* Image: fill height, let width follow aspect ratio */
[b-xp7zps57ef] .navbar-brand-image img {
    width: auto !important;
    height: 100% !important;
    max-height: 3.5rem;
    object-fit: contain;
    object-position: left center;
}

/* ─── Sidebar wrapper: flex column so toggle sits at the very bottom ─ */
.ftp-sidebar-wrapper[b-xp7zps57ef] {
    --ftp-sb-toggle-h: 2.25rem;
    display: flex;
    flex-direction: column;
    height: 100vh;
    flex-shrink: 0;
}

/* Sidebar fills the wrapper, leaving only the button's height at the bottom */
[b-xp7zps57ef] .bb-sidebar {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
}

/* Shrink the BB-managed scrollable nav to leave room for the toggle button */
[b-xp7zps57ef] .nav-scrollable {
    height: calc(100vh - 3.5rem - var(--ftp-sb-toggle-h)) !important;
}

/* ─── Toggle button: identical look to a BB sidebar nav-item ─────────── */
.ftp-sb-toggle[b-xp7zps57ef] {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: var(--bb-sidebar-background-color);
    border: none;
    border-top: 1px solid var(--bb-sidebar-content-border-color, rgba(255,255,255,0.15));
    color: var(--bb-sidebar-nav-item-text-color, rgba(255,255,255,0.88));
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    gap: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-align: left;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ftp-sb-toggle:hover[b-xp7zps57ef] {
    background-color: var(--ftp-secondary);
    color: #fff;
}

/* Collapsed state: icon only, centred — mirrors BB's icon-only collapsed items */
.ftp-sb-toggle--collapsed[b-xp7zps57ef] {
    justify-content: center;
    padding: 0.5rem 0;
}

/* Hide on mobile (< 641px): BB's built-in navbar-toggler handles that breakpoint */
@media (max-width: 640.98px) {
    .ftp-sb-toggle[b-xp7zps57ef] {
        display: none;
    }

    [b-xp7zps57ef] .nav-scrollable {
        height: auto !important;
    }
}

/* ─── Responsive helpers ─────────────────────────────────────────── */
@media (max-width: 640.98px) {
    .ftp-subtitle[b-xp7zps57ef] {
        font-size: 0.8rem;
    }
}
