/* _content/Crudia.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/* ============================================================
   Crudia — MainLayout (pack Pro)
   Sidebar sombre corporate, topbar compact, densité SaaS pro.
   ============================================================ */

.app-shell[b-wgr0zy5p6m] {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background-color: var(--pro-body-bg, #F5F7F9);
    font-family: var(--pro-font, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    color: var(--pro-text, #1B2C36);
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   SIDEBAR — dark corporate
   ============================================================ */
[b-wgr0zy5p6m] .app-sidebar {
    width: 232px;
    background: var(--pro-sidebar-bg, #0F1F2E);
    border-right: 0;
    color: var(--pro-sidebar-text, #C6D2DC);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 1030;
}

.sidebar-header[b-wgr0zy5p6m] {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.logo-circle[b-wgr0zy5p6m] {
    width: 28px;
    height: 28px;
    background: var(--pro-primary, #1B6E4C);
    color: #FFFFFF;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.logo-text[b-wgr0zy5p6m] {
    font-weight: 600;
    font-size: 15px;
    color: #FFFFFF;
    letter-spacing: -0.015em;
}

.sidebar-content[b-wgr0zy5p6m] {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.sidebar-content[b-wgr0zy5p6m]::-webkit-scrollbar {
    width: 6px;
}
.sidebar-content[b-wgr0zy5p6m]::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-content[b-wgr0zy5p6m]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}
.sidebar-content:hover[b-wgr0zy5p6m]::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
}

/* ============================================================
   ZONE PRINCIPALE
   ============================================================ */
.app-main[b-wgr0zy5p6m] {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--pro-body-bg, #F5F7F9);
}

.app-topbar[b-wgr0zy5p6m] {
    height: 52px;
    background: #FFFFFF;
    border-bottom: 1px solid var(--pro-border, #E4E9EE);
    display: flex;
    align-items: center;
    padding: 0 20px;
    flex-shrink: 0;
    z-index: 1020;
}

.app-content[b-wgr0zy5p6m] {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

[b-wgr0zy5p6m] > .page,
[b-wgr0zy5p6m] > article {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

/* ============================================================
   TOPBAR — search, notif, user
   ============================================================ */
.btn-icon-round[b-wgr0zy5p6m] {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 1px solid transparent;
    color: var(--pro-text-muted, #5C6870);
    transition: all 120ms ease;
}

.btn-icon-round:hover[b-wgr0zy5p6m] {
    background: var(--pro-surface-hover, #F0F3F6);
    color: var(--pro-text, #1B2C36);
}

.notification-dot[b-wgr0zy5p6m] {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 8px;
    height: 8px;
    background-color: #D93F3F;
    border: 2px solid #FFFFFF;
    border-radius: 50%;
}

.user-btn[b-wgr0zy5p6m] {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 10px 4px 4px;
    transition: all 120ms ease;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.user-btn:hover[b-wgr0zy5p6m] {
    background: var(--pro-surface-hover, #F0F3F6);
    border-color: var(--pro-border, #E4E9EE);
}

.user-avatar[b-wgr0zy5p6m] {
    width: 28px;
    height: 28px;
    background-color: var(--pro-primary, #1B6E4C);
    color: #FFFFFF;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: -0.01em;
}

.user-name[b-wgr0zy5p6m] {
    font-size: 13px;
    font-weight: 500;
    color: var(--pro-text, #1B2C36);
    display: none;
    line-height: 1;
}

@media (min-width: 768px) {
    .user-name[b-wgr0zy5p6m] { display: block; }
}

/* ============================================================
   Blazor error UI — inchangé
   ============================================================ */
#blazor-error-ui[b-wgr0zy5p6m] {
    background: #FFF3CD;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.15);
    display: none;
    left: 0;
    padding: 8px 16px;
    position: fixed;
    width: 100%;
    z-index: 1100;
    font-size: 13px;
    color: #66512C;
}
/* _content/Crudia.Web/Components/Layout/NavMenu.razor.rz.scp.css */
/* ============================================================
   Crudia — NavMenu (pack Pro)
   Nav-links dark sidebar, tight rhythm, subtle active state.
   ============================================================ */

.section-header[b-jdwermf6v3] {
    padding: 8px 12px 4px !important;
    margin-bottom: 4px !important;
    color: rgba(198, 210, 220, 0.55);
    letter-spacing: 0.06em;
}

.section-header:hover[b-jdwermf6v3] {
    color: rgba(255, 255, 255, 0.85);
}

[b-jdwermf6v3] .section-header > div {
    font-size: 10.5px !important;
    letter-spacing: 0.08em !important;
    color: rgba(198, 210, 220, 0.55) !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

[b-jdwermf6v3] .section-header > i {
    font-size: 9px !important;
    color: rgba(198, 210, 220, 0.4) !important;
    transition: transform 200ms ease;
}

[b-jdwermf6v3] .section-header .collapsed-icon {
    transform: rotate(-90deg);
}

.transition-icon[b-jdwermf6v3] {
    transition: transform 200ms ease;
}

.collapsed-icon[b-jdwermf6v3] {
    transform: rotate(-90deg);
}

/* Nav items */
[b-jdwermf6v3] .nav {
    gap: 1px;
    padding: 0 4px;
}

[b-jdwermf6v3] .nav-link {
    color: rgba(198, 210, 220, 0.85);
    background: transparent;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 5px;
    padding: 6px 10px;
    min-height: 30px;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.005em;
    line-height: 1.25;
    transition: background 120ms ease, color 120ms ease;
    text-decoration: none;
    width: 100%;
}

[b-jdwermf6v3] .nav-link i {
    font-size: 15px;
    opacity: 0.85;
    width: 20px;
    margin-right: 4px;
    text-align: center;
    flex-shrink: 0;
}

[b-jdwermf6v3] .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
}

[b-jdwermf6v3] .nav-link.active,
[b-jdwermf6v3] .nav-item a.active {
    background: rgba(79, 191, 135, 0.13);
    color: #FFFFFF;
    border-left-color: #4FBF87;
    border-radius: 0 5px 5px 0;
}

[b-jdwermf6v3] .nav-link.active i,
[b-jdwermf6v3] .nav-item a.active i {
    opacity: 1;
    color: #4FBF87;
}

[b-jdwermf6v3] .nav-link:focus-visible {
    outline: 2px solid rgba(79, 191, 135, 0.5);
    outline-offset: -2px;
}

/* Sidebar navbar legacy fragment cleanup */
.navbar-toggler[b-jdwermf6v3] {
    appearance: none;
    cursor: pointer;
    width: 40px;
    height: 32px;
    color: white;
    position: absolute;
    top: 12px;
    right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
}

.top-row[b-jdwermf6v3] {
    height: 3rem;
    background: transparent;
}

.navbar-brand[b-jdwermf6v3] {
    font-size: 15px;
    color: #FFFFFF;
    font-weight: 600;
}

.bi[b-jdwermf6v3] {
    display: inline-block;
    position: relative;
}

.nav-scrollable[b-jdwermf6v3] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-jdwermf6v3] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-jdwermf6v3] { display: none; }
    .nav-scrollable[b-jdwermf6v3] {
        display: block;
        height: calc(100vh - 3rem);
        overflow-y: auto;
    }
}

/* Sidebar footer — help card */
.sidebar-footer[b-jdwermf6v3] {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.sidebar-help[b-jdwermf6v3] {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 12px;
}

.sidebar-help-icon[b-jdwermf6v3] {
    color: #4FBF87;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.sidebar-help-title[b-jdwermf6v3] {
    color: #FFFFFF;
    font-weight: 600;
    font-size: 12.5px;
    line-height: 1.3;
    margin-bottom: 2px;
}

.sidebar-help-desc[b-jdwermf6v3] {
    color: rgba(198, 210, 220, 0.6);
    font-size: 11.5px;
    line-height: 1.4;
    margin-bottom: 10px;
}

.sidebar-help-btn[b-jdwermf6v3] {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #FFFFFF;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background 120ms ease, border-color 120ms ease;
}

.sidebar-help-btn:hover[b-jdwermf6v3] {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
}

/* _content/Crudia.Web/Components/Layout/PortalLayout.razor.rz.scp.css */
.portal-shell[b-mzzw0s9gue] {
    min-height: 100vh;
    background: #f6f8fb;
    display: flex;
    flex-direction: column;
}

.portal-navbar[b-mzzw0s9gue] {
    background: #ffffff;
    border-bottom: 1px solid #e6eaf0;
    box-shadow: 0 1px 3px rgba(16, 31, 46, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}

.portal-navbar-inner[b-mzzw0s9gue] {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.portal-brand[b-mzzw0s9gue] {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: #0f1f2e;
    text-decoration: none;
    margin-right: 12px;
}

.portal-brand-sub[b-mzzw0s9gue] {
    color: #8a95a1;
    font-weight: 500;
}

.portal-logo[b-mzzw0s9gue] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #0d6efd;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.portal-nav-links[b-mzzw0s9gue] {
    display: flex;
    align-items: center;
    gap: 4px;
}

.portal-nav-link[b-mzzw0s9gue] {
    color: #4b5765;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 7px 12px;
    border-radius: 8px;
    transition: background .12s ease, color .12s ease;
}

.portal-nav-link:hover[b-mzzw0s9gue] {
    background: #eef2f7;
    color: #0f1f2e;
}

/* Blazor NavLink ajoute .active sur le lien courant */
.portal-nav-link.active[b-mzzw0s9gue] {
    background: #e7f1ff;
    color: #0d47a1;
    font-weight: 600;
}

.portal-user-btn[b-mzzw0s9gue] {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: #4b5765;
    font-weight: 500;
    font-size: 0.9rem;
}

.portal-avatar[b-mzzw0s9gue] {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #e7f1ff;
    color: #0d47a1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.portal-main[b-mzzw0s9gue] {
    flex: 1;
    width: 100%;
}

@media (max-width: 640px) {
    .portal-nav-link span[b-mzzw0s9gue],
    .portal-brand-sub[b-mzzw0s9gue] {
        display: none;
    }
}
