/* _content/Patcher.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/* ─── Page shell ─── */
.page[b-miwydf9wdq] {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main[b-miwydf9wdq] {
    flex: 1;
    min-width: 0;
    background: var(--bg-body, #f8fafc);
}
.sidebar[b-miwydf9wdq] {
    background-color: #0f172a;
}

/* ─── Top bar ─── */
.top-row[b-miwydf9wdq] {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar-breadcrumb[b-miwydf9wdq] {
    font-size: .8rem;
    color: #94a3b8;
    font-weight: 500;
}
.topbar-breadcrumb i[b-miwydf9wdq] {
    font-size: .7rem;
}
.topbar-actions[b-miwydf9wdq] {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.btn-ghost[b-miwydf9wdq] {
    background: none;
    border: 1px solid #e2e8f0;
    color: #64748b;
    font-size: .8rem;
    padding: .25rem .75rem;
    border-radius: .375rem;
    cursor: pointer;
    transition: all .15s ease;
}
.btn-ghost:hover[b-miwydf9wdq] {
    background: #f1f5f9;
    color: #0f172a;
}

/* ─── Responsive ─── */
@media (max-width: 640.98px) {
    .top-row[b-miwydf9wdq] {
        padding: 0 .75rem;
    }
}
@media (min-width: 641px) {
    .page[b-miwydf9wdq] {
        flex-direction: row;
    }
    .sidebar[b-miwydf9wdq] {
        width: 240px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
    }
    article[b-miwydf9wdq] {
        padding: 0 2rem !important;
    }
}

/* ─── Blazor error UI ─── */
#blazor-error-ui[b-miwydf9wdq] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0,0,0,.2);
    display: none;
    left: 0;
    padding: .6rem 1.25rem .7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss[b-miwydf9wdq] {
    cursor: pointer;
    position: absolute;
    right: .75rem;
    top: .5rem;
}
/* _content/Patcher.Web/Components/Layout/NavMenu.razor.rz.scp.css */
/* ─── Mobile toggler ─── */
.navbar-toggler[b-yrr5irhkkm] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: .5rem;
    right: 1rem;
    border: 1px solid rgba(255,255,255,.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,.04);
    border-radius: .375rem;
}
.navbar-toggler:checked[b-yrr5irhkkm] {
    background-color: rgba(255,255,255,.12);
}

/* ─── Brand ─── */
.sidebar-brand[b-yrr5irhkkm] {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    text-decoration: none;
}
.brand-icon[b-yrr5irhkkm] {
    width: 32px;
    height: 32px;
    background: #2563eb;
    border-radius: .4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    color: white;
}
.brand-name[b-yrr5irhkkm] {
    font-size: .9rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: .01em;
}
.brand-version[b-yrr5irhkkm] {
    font-size: .6rem;
    color: #475569;
    margin-left: auto;
    font-weight: 500;
}

/* ─── Section labels ─── */
.nav-section-label[b-yrr5irhkkm] {
    font-size: .6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #475569;
    padding: 1rem 1.1rem .4rem;
    display: block;
}

/* ─── Nav items ─── */
.nav-item[b-yrr5irhkkm] {
    padding: .1rem .7rem;
}
.nav-item[b-yrr5irhkkm]  .nav-link {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .45rem .7rem;
    border-radius: .375rem;
    color: #94a3b8;
    font-size: .8125rem;
    font-weight: 450;
    text-decoration: none;
    transition: background .12s, color .12s;
    border: none;
    background: none;
    width: 100%;
}
.nav-item[b-yrr5irhkkm]  .nav-link:hover {
    background: rgba(255,255,255,.06);
    color: #e2e8f0;
}
.nav-item[b-yrr5irhkkm]  a.active {
    background: rgba(37,99,235,.15);
    color: #93c5fd;
    font-weight: 600;
}
.nav-icon[b-yrr5irhkkm] {
    font-size: .85rem;
    width: 1.1rem;
    text-align: center;
    flex-shrink: 0;
    opacity: .8;
}
.nav-item[b-yrr5irhkkm]  a.active .nav-icon {
    opacity: 1;
}

/* ─── Sidebar footer ─── */
.sidebar-footer[b-yrr5irhkkm] {
    padding: .85rem 1.1rem;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: .65rem;
    color: #334155;
    margin-top: auto;
}

/* ─── Scrollable area ─── */
.nav-scrollable[b-yrr5irhkkm] {
    display: none;
    flex: 1;
    overflow-y: auto;
    flex-direction: column;
}
.navbar-toggler:checked ~ .nav-scrollable[b-yrr5irhkkm] {
    display: flex;
}

/* ─── Mobile top bar ─── */
.top-row[b-yrr5irhkkm] {
    height: 3.5rem;
    background-color: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    padding: 0 1rem;
}
.navbar-brand[b-yrr5irhkkm] {
    font-size: .95rem;
    font-weight: 700;
    color: #f1f5f9;
    text-decoration: none;
}

/* ─── Desktop ─── */
@media (min-width: 641px) {
    .navbar-toggler[b-yrr5irhkkm] { display: none; }
    .top-row[b-yrr5irhkkm] { display: none; }
    .nav-scrollable[b-yrr5irhkkm] {
        display: flex;
        height: 100vh;
        overflow-y: auto;
    }
}
