/* _content/DrapyCore.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/* ── Page shell ───────────────────────────────────────────────────── */
.page[b-viuwrsclnx] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-viuwrsclnx] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
    transition: background 0.28s ease;
}

/* ── Sidebar ──────────────────────────────────────────────────────── */
.sidebar[b-viuwrsclnx] {
    background: #13131f;
}

/* ── Top bar ──────────────────────────────────────────────────────── */
.top-row[b-viuwrsclnx] {
    background: var(--tb-bg);
    border-bottom: 1px solid var(--tb-bdr);
    height: var(--tb-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 var(--tb-bdr);
    transition: background 0.28s ease, border-color 0.28s ease;
}

.top-row-left[b-viuwrsclnx] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    overflow: hidden;
}

.top-row-breadcrumb[b-viuwrsclnx] {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-row-right[b-viuwrsclnx] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ── Theme toggle button ──────────────────────────────────────────── */
.theme-btn[b-viuwrsclnx] {
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 160ms ease;
    font-size: 0.88rem;
    padding: 0;
    line-height: 1;
}

.theme-btn:hover[b-viuwrsclnx] {
    background: var(--primary-bg);
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.08);
}

/* ── User chip ────────────────────────────────────────────────────── */
.user-chip[b-viuwrsclnx] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.7rem 0.3rem 0.3rem;
    border-radius: 2rem;
    border: 1px solid var(--border);
    background: var(--surface-2);
    cursor: default;
}

.user-avatar[b-viuwrsclnx] {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(99,102,241,0.35);
}

.user-info-text[b-viuwrsclnx] { line-height: 1.25; }

.user-name[b-viuwrsclnx] {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}

.user-roles[b-viuwrsclnx] { display: flex; gap: 0.25rem; margin-top: 0.1rem; }

.user-role-tag[b-viuwrsclnx] {
    font-size: 0.66rem;
    font-weight: 500;
    padding: 0.08em 0.45em;
    background: var(--primary-bg);
    color: var(--primary);
    border-radius: 0.25rem;
}

/* ── Sign out button ──────────────────────────────────────────────── */
.btn-signout[b-viuwrsclnx] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 160ms ease;
    white-space: nowrap;
}

.btn-signout:hover[b-viuwrsclnx] {
    background: rgba(244,63,94,0.08);
    border-color: rgba(244,63,94,0.35);
    color: var(--danger);
}

/* ── Content area ─────────────────────────────────────────────────── */
article.content[b-viuwrsclnx] {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    flex: 1;
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 640.98px) {
    .top-row[b-viuwrsclnx] {
        padding: 0 1rem;
    }
}

/* ── Desktop sidebar layout ───────────────────────────────────────── */
@media (min-width: 641px) {
    .page[b-viuwrsclnx] {
        flex-direction: row;
    }

    .sidebar[b-viuwrsclnx] {
        width: 252px;
        height: 100vh;
        position: sticky;
        top: 0;
        flex-shrink: 0;
        overflow: hidden;
    }

    .top-row[b-viuwrsclnx], article[b-viuwrsclnx] {
        padding-left: 1.75rem !important;
        padding-right: 1.75rem !important;
    }
}
/* _content/DrapyCore.Web/Components/Layout/NavMenu.razor.rz.scp.css */
/* ── Sidebar shell ────────────────────────────────────────────────── */
:host[b-zrrsqbi36t] {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ── Brand ────────────────────────────────────────────────────────── */
.nav-brand[b-zrrsqbi36t] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 1.1rem 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
}

.nav-logo[b-zrrsqbi36t] {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(99,102,241,0.4);
}

.nav-brand-name[b-zrrsqbi36t] {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.nav-brand-sub[b-zrrsqbi36t] {
    display: block;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.35);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ── Mobile toggle ────────────────────────────────────────────────── */
.navbar-toggler[b-zrrsqbi36t] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0; height: 0;
}

.nav-toggle-label[b-zrrsqbi36t] {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem; height: 2rem;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    font-size: 1.25rem;
    transition: color 150ms ease;
}

.nav-toggle-label:hover[b-zrrsqbi36t] { color: #fff; }

/* ── Scrollable nav area ──────────────────────────────────────────── */
.nav-scrollable[b-zrrsqbi36t] {
    display: none;
    flex-direction: column;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.nav-scrollable[b-zrrsqbi36t]::-webkit-scrollbar { width: 3px; }
.nav-scrollable[b-zrrsqbi36t]::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); }

.navbar-toggler:checked ~ .nav-scrollable[b-zrrsqbi36t] { display: flex; }

/* ── Nav content ──────────────────────────────────────────────────── */
.nav-content[b-zrrsqbi36t] {
    flex: 1;
    padding: 0.75rem 0.75rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

/* ── Section headers ──────────────────────────────────────────────── */
.nav-section-header[b-zrrsqbi36t] {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.28);
    padding: 1rem 0.65rem 0.35rem;
    margin-top: 0.25rem;
}

.nav-section[b-zrrsqbi36t] { display: flex; flex-direction: column; gap: 0.1rem; }

/* ── Nav links ────────────────────────────────────────────────────── */
.nav-link[b-zrrsqbi36t] {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.55rem;
    color: rgba(255,255,255,0.6) !important;
    font-size: 0.86rem;
    font-weight: 500;
    transition: all 150ms ease;
    text-decoration: none !important;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover[b-zrrsqbi36t] {
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.9) !important;
}

.nav-link.active[b-zrrsqbi36t] {
    background: rgba(99,102,241,0.2);
    color: #ffffff !important;
    font-weight: 600;
}

.nav-link.active[b-zrrsqbi36t]::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 3px;
    background: #6366f1;
    border-radius: 0 3px 3px 0;
}

.nav-icon[b-zrrsqbi36t] {
    font-size: 0.95rem;
    width: 1.1rem;
    flex-shrink: 0;
    opacity: 0.85;
}

.nav-link.active .nav-icon[b-zrrsqbi36t] { opacity: 1; color: #a5b4fc; }

/* Sign in link special style */
.nav-link-signin[b-zrrsqbi36t] {
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.25);
    color: #a5b4fc !important;
}

.nav-link-signin:hover[b-zrrsqbi36t] {
    background: rgba(99,102,241,0.25);
    color: #fff !important;
}

/* ── Footer ───────────────────────────────────────────────────────── */
.nav-footer[b-zrrsqbi36t] {
    padding: 0.75rem 1.25rem 1rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: auto;
}

.nav-version[b-zrrsqbi36t] {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.2);
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* ── Desktop: always visible ──────────────────────────────────────── */
@media (min-width: 641px) {
    .nav-scrollable[b-zrrsqbi36t] {
        display: flex;
        height: calc(100vh - 4.1rem);
    }

    .nav-toggle-label[b-zrrsqbi36t] { display: none !important; }
}
