/* /Layout/AuthLayout.razor.rz.scp.css */
/* Auth pages (login, register) - minimal shell: topbar with brand only, centered content
   on the page background. Same visual language as the app, just without the sidebar. */
.ps-auth-app[b-2wp5zgh609] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ps-auth-main[b-2wp5zgh609] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.ps-auth-content[b-2wp5zgh609] {
    width: 100%;
    max-width: 460px;
}
/* /Layout/MainLayout.razor.rz.scp.css */
/* App shell - a fixed frame. The app is locked to the viewport height and never
   scrolls as a whole: topbar, acting-as banner and sidebar stay put, only the
   main content (and the sidebar itself, when its menu is taller than the screen)
   scroll internally. */
.ps-app[b-bsylo36boz] {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ---------- Topbar ---------- */
.ps-topbar[b-bsylo36boz] {
    height: var(--ps-topbar-height);
    background: var(--ps-surface-topbar);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1001;
    box-shadow: var(--ps-shadow-topbar);
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.18);
}

.ps-brand[b-bsylo36boz] {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.ps-brand i[b-bsylo36boz] { font-size: 1.35rem; opacity: 0.95; }
.ps-brand:hover[b-bsylo36boz] { color: #fff; filter: brightness(1.1); }

.ps-topbar-spacer[b-bsylo36boz] { flex: 1; }

.ps-topbar-link[b-bsylo36boz] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    padding: 0.35rem 0.75rem;
    border-radius: var(--ps-radius-pill);
    transition: background var(--ps-dur-fast) var(--ps-ease-out),
                color var(--ps-dur-fast) var(--ps-ease-out);
}
.ps-topbar-link:hover[b-bsylo36boz] {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.ps-topbar-user[b-bsylo36boz] {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.25rem 0.85rem 0.25rem 0.3rem;
    border-radius: var(--ps-radius-pill);
    color: #fff;
    transition: background var(--ps-dur-fast) var(--ps-ease-out);
}
.ps-topbar-user:hover[b-bsylo36boz] { background: rgba(255, 255, 255, 0.20); }

/* Small ghost icon button - used for theme toggle, command palette trigger, etc. */
.ps-topbar-iconbtn[b-bsylo36boz] {
    width: 36px; height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background var(--ps-dur-fast) var(--ps-ease-out),
                transform var(--ps-dur-fast) var(--ps-ease-out);
}
.ps-topbar-iconbtn:hover[b-bsylo36boz] {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}
.ps-topbar-user-name[b-bsylo36boz] {
    font-size: 0.85rem;
    font-weight: 600;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Shell (sidebar + main) ---------- */
.ps-shell[b-bsylo36boz] {
    display: flex;
    flex: 1;
    min-height: 0;
}

.ps-sidebar[b-bsylo36boz] {
    width: var(--ps-sidebar-width);
    flex-shrink: 0;
    background: var(--ps-surface-sidebar);
    overflow-y: auto;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06),
                2px 0 14px rgba(31, 35, 80, 0.10);
    transition: transform var(--ps-dur-med) var(--ps-ease-out);
}

/* Mobile-only elements hidden on desktop; revealed below the breakpoint. */
.ps-mobile-only[b-bsylo36boz] { display: none; }

/* Backdrop only renders when the drawer is open; styled below. */
.ps-sidebar-backdrop[b-bsylo36boz] {
    display: none;
}

.ps-main[b-bsylo36boz] {
    flex: 1;
    min-width: 0;
    /* Fluid horizontal padding - scales with viewport so the content has comfortable
       breathing room at every size. On 1920px screens this gives ~48px gutters; on
       1280px it shrinks to ~24px. Vertical padding stays calm. */
    padding: 1.5rem clamp(1rem, 3vw, 3rem) 3rem;
    overflow-x: hidden;
    /* The one and only scroll area of the app frame. */
    overflow-y: auto;
}

/* Wide ceiling so 4-up dashboards and big tables can stretch on ultra-wide monitors,
   but content still gets centered if the viewport is beyond it. 1680px works for 27"+
   monitors without making text lines unreadably long. */
.ps-main-inner[b-bsylo36boz] {
    max-width: 1680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ---------- Mobile: drawer-style sidebar -------------------------------------------------
   Below 768px, the sidebar becomes a fixed-position drawer that slides in from the left.
   The hamburger button in the topbar toggles .is-open; a backdrop dims the content behind. */
@media (max-width: 768px) {
    .ps-topbar[b-bsylo36boz] { padding: 0 0.8rem; gap: 0.5rem; }
    .ps-topbar-link-text[b-bsylo36boz],
    .ps-topbar-user-name[b-bsylo36boz] { display: none; }
    .ps-mobile-only[b-bsylo36boz] { display: inline-flex; }
    .ps-main[b-bsylo36boz] { padding: 1rem 1rem 2.5rem; }

    .ps-sidebar[b-bsylo36boz] {
        position: fixed;
        top: var(--ps-topbar-height);
        left: 0;
        height: calc(100vh - var(--ps-topbar-height));
        z-index: 1030;
        transform: translateX(-100%);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    }
    .ps-sidebar.is-open[b-bsylo36boz] { transform: translateX(0); }

    .ps-sidebar-backdrop[b-bsylo36boz] {
        display: block;
        position: fixed;
        top: var(--ps-topbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1020;
        background: rgba(20, 20, 40, 0.45);
        animation: ps-rise var(--ps-dur-fast) var(--ps-ease-out);
    }
}
/* /Layout/NavMenu.razor.rz.scp.css */
/* All sidebar nav visuals live in global powershare.css so they apply to NavLink-rendered
   anchors (Blazor CSS isolation here can't reach the <a> rendered by the NavLink child
   component). This file is kept intentionally empty. */
/* /Pages/About.razor.rz.scp.css */
.ps-about[b-8jz6qbtn7e] {
    max-width: 640px;
    margin: 3rem auto;
    text-align: center;
    padding: 1rem;
}

.ps-about__bolt[b-8jz6qbtn7e] {
    width: 92px;
    height: 92px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 18px 40px -14px rgba(118, 75, 162, 0.55);
    animation: ps-about-bolt-b-8jz6qbtn7e 3.2s cubic-bezier(.22,1,.36,1) infinite;
}
@keyframes ps-about-bolt-b-8jz6qbtn7e {
    0%, 100% { transform: translateY(0) rotate(-6deg); }
    50%      { transform: translateY(-6px) rotate(6deg); }
}

.ps-about__title[b-8jz6qbtn7e] {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2.4rem, 5vw, 3rem);
    letter-spacing: -0.02em;
    margin: 0 0 0.5rem;
}

.ps-about__slogan[b-8jz6qbtn7e] {
    color: var(--ps-ink-soft, #2a2c3e);
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    line-height: 1.45;
    margin: 0 auto 2rem;
    max-width: 560px;
    min-height: 3em; /* prevent layout shift when slogans differ in length */
    animation: ps-about-slogan-in-b-8jz6qbtn7e 320ms cubic-bezier(.22,1,.36,1);
}
@keyframes ps-about-slogan-in-b-8jz6qbtn7e {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ps-about__stats[b-8jz6qbtn7e] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem 1.5rem;
    margin: 0 auto 2rem;
    padding: 1.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(102, 126, 234, 0.18);
    border-radius: 18px;
    text-align: left;
    max-width: 760px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 4px 14px -8px rgba(31, 35, 80, 0.18);
}
.ps-about__stats > div[b-8jz6qbtn7e] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
.ps-about__stats dt[b-8jz6qbtn7e] {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--ps-ink-mute, #6e7088);
    margin: 0;
}
.ps-about__stats dd[b-8jz6qbtn7e] {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ps-ink-deep, #14152a);
    font-variant-numeric: tabular-nums;
}
.ps-about__stats-note[b-8jz6qbtn7e] {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--ps-ink-mute, #6e7088);
    letter-spacing: 0;
    text-transform: none;
}

.ps-about__actions[b-8jz6qbtn7e] {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.ps-about__foot[b-8jz6qbtn7e] {
    font-size: 0.82rem;
    color: var(--ps-ink-mute, #6e7088);
    margin: 0;
}
.ps-about__foot a[b-8jz6qbtn7e] {
    color: inherit;
    text-decoration: underline;
}

/* Dark mode: the stats card was hardcoded light while its text flips to light ink -
   white on white. Darken the card surface; the token-driven text then just works. */
[data-bs-theme="dark"] .ps-about__stats[b-8jz6qbtn7e] {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Bolt easter egg: five clicks trip the "breaker" - quick shake + amber flash. */
.ps-about__bolt--tripped[b-8jz6qbtn7e] {
    animation: ps-bolt-trip-b-8jz6qbtn7e 500ms ease-in-out;
    filter: hue-rotate(45deg) brightness(1.3);
}
@keyframes ps-bolt-trip-b-8jz6qbtn7e {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(-14deg) scale(1.12); }
    40% { transform: rotate(12deg) scale(0.95); }
    60% { transform: rotate(-8deg) scale(1.06); }
    80% { transform: rotate(5deg); }
}
