/* _content/PowerStatistics.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/* ================================================================
   MainLayout — App shell
   ================================================================ */

.app-shell[b-8f0qj3ujbz] {
    display: flex;
    min-height: 100vh;
}

/* ---- Sidebar --------------------------------------------------- */
.sidebar[b-8f0qj3ujbz] {
    width: 260px;
    background: #111827;
    display: flex;
    flex-direction: column;
    position: fixed;
    inset-block: 0;
    left: 0;
    height: 100vh;
    z-index: 300;
    transition: transform .25s cubic-bezier(.4, 0, .2, 1);
    overflow: hidden;
}

.sidebar-header[b-8f0qj3ujbz] {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 1.25rem 1.25rem 1.15rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
    flex-shrink: 0;
}

.sidebar-logo-icon[b-8f0qj3ujbz] {
    width: 36px;
    height: 36px;
    background: #6366f1;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.sidebar-brand[b-8f0qj3ujbz] {
    font-size: .95rem;
    font-weight: 700;
    color: white;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.sidebar-subtitle[b-8f0qj3ujbz] {
    font-size: .68rem;
    color: rgba(255,255,255,.38);
    line-height: 1;
    display: block;
    margin-top: 2px;
}

.sidebar-nav[b-8f0qj3ujbz] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: .5rem 0 1rem;
}

.sidebar-nav[b-8f0qj3ujbz]::-webkit-scrollbar       { width: 4px; }
.sidebar-nav[b-8f0qj3ujbz]::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

/* ---- Overlay (mobile) ----------------------------------------- */
.sidebar-overlay[b-8f0qj3ujbz] {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 299;
    background: rgba(0,0,0,.45);
}

/* ---- Top bar --------------------------------------------------- */
.topbar[b-8f0qj3ujbz] {
    height: 64px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 1.75rem;
    gap: .875rem;
    position: sticky;
    top: 0;
    z-index: 200;
    margin-left: 260px;
}

.topbar-spacer[b-8f0qj3ujbz] { flex: 1; }

.topbar-toggle[b-8f0qj3ujbz] {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .35rem;
    border-radius: .375rem;
    color: #475569;
    line-height: 0;
    transition: background .15s ease;
}
.topbar-toggle:hover[b-8f0qj3ujbz] { background: #f1f5f9; }

.topbar-user[b-8f0qj3ujbz] {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 500;
    color: #475569;
}

.user-avatar[b-8f0qj3ujbz] {
    width: 32px;
    height: 32px;
    background: #6366f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: .75rem;
    font-weight: 700;
    flex-shrink: 0;
    letter-spacing: 0;
}

.user-name[b-8f0qj3ujbz] {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-logout-btn[b-8f0qj3ujbz] {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .8rem;
    font-weight: 500;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: .375rem;
    padding: .3rem .7rem;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    text-decoration: none;
    line-height: 1.4;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
}
.topbar-logout-btn:hover[b-8f0qj3ujbz] {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
    text-decoration: none;
}

/* ---- Main wrapper --------------------------------------------- */
.main-wrapper[b-8f0qj3ujbz] {
    flex: 1;
    margin-left: 260px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.content-area[b-8f0qj3ujbz] {
    flex: 1;
    padding: 2rem 1.75rem;
    max-width: 1200px;
    width: 100%;
}

/* ---- Mobile ---------------------------------------------------- */
@media (max-width: 768px) {
    .sidebar[b-8f0qj3ujbz] { transform: translateX(-100%); }
    .app-shell.sidebar-open .sidebar[b-8f0qj3ujbz] { transform: translateX(0); }
    .app-shell.sidebar-open .sidebar-overlay[b-8f0qj3ujbz] { display: block; }

    .topbar[b-8f0qj3ujbz],
    .main-wrapper[b-8f0qj3ujbz] { margin-left: 0; }
    .topbar-toggle[b-8f0qj3ujbz] { display: inline-flex; }
    .content-area[b-8f0qj3ujbz] { padding: 1.25rem 1rem; }
}

/* _content/PowerStatistics.Web/Components/Layout/NavMenu.razor.rz.scp.css */
/* ================================================================
   NavMenu — Sidebar navigation links
   ================================================================ */

.nav-menu[b-v4kcdae1tc] {
    display: flex;
    flex-direction: column;
    padding: .5rem 0;
}

/* Section label */
.nav-section-label[b-v4kcdae1tc] {
    font-size: .65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: rgba(255,255,255,.28);
    padding: 1rem 1.25rem .3rem;
    margin: 0;
    user-select: none;
}

/* Nav item wrapper */
.nav-item[b-v4kcdae1tc] {
    padding: 0 .625rem;
    margin-bottom: 1px;
}

/* Nav link */
.nav-item[b-v4kcdae1tc]  .nav-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .75rem;
    border-radius: .4rem;
    color: rgba(255,255,255,.68);
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background .13s ease, color .13s ease;
    white-space: nowrap;
    overflow: hidden;
}

.nav-item[b-v4kcdae1tc]  .nav-link:hover {
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.92);
    text-decoration: none;
}

/* Active state */
.nav-item[b-v4kcdae1tc]  a.active {
    background: rgba(99,102,241,.2);
    color: #a5b4fc;
    font-weight: 600;
}

.nav-item[b-v4kcdae1tc]  a.active:hover {
    background: rgba(99,102,241,.25);
    color: #c7d2fe;
}

/* Icon */
.nav-icon[b-v4kcdae1tc] {
    font-size: 1rem;
    flex-shrink: 0;
    width: 1.1rem;
    text-align: center;
    line-height: 1;
    opacity: .8;
}

.nav-item[b-v4kcdae1tc]  a.active .nav-icon {
    opacity: 1;
}

