/* /Components/Layout/BlankLayout.razor.rz.scp.css */
.blank-layout[b-9al4gkb8ks] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #F5F3FF 0%, #EEF2FF 100%);
}

.blank-layout-tools[b-9al4gkb8ks] {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.5rem;
}

.blank-layout-body[b-9al4gkb8ks] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Offset the tool row so the card sits optically centred, not pushed low. */
    padding: 0 1.25rem 4rem;
}

@media (max-width: 640.98px) {
    .blank-layout-tools[b-9al4gkb8ks] { padding: 0.75rem 1rem; }
    .blank-layout-body[b-9al4gkb8ks] { padding-bottom: 2rem; }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-44fwsoywza] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-44fwsoywza] { flex: 1; overflow: hidden; }

/* ── Sidebar ── */
.sidebar[b-44fwsoywza] {
    background: #FFFFFF;
    border-right: 1px solid #EDE9FE;
}

/* ── Top bar ── */
/* Only the bar itself lives here. The controls inside it are rendered by
   TopBarButtons and are styled by TopBarButtons.razor.css — CSS isolation scopes
   each rule to the component that owns the file. */
.top-row[b-44fwsoywza] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    height: 3.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #EDE9FE;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.top-breadcrumb[b-44fwsoywza] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    min-width: 0;
}
.top-app[b-44fwsoywza] {
    font-weight: 800;
    color: #6D28D9;
    letter-spacing: -0.01em;
    font-size: 0.9rem;
}
.top-chevron[b-44fwsoywza] { color: #D1D5DB; font-size: 1.1rem; line-height: 1; }
.top-page[b-44fwsoywza] {
    font-weight: 500;
    color: var(--ink-3);
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-right[b-44fwsoywza] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

@media (max-width: 640.98px) {
    .top-row[b-44fwsoywza] { height: auto; min-height: 3rem; padding-top: 0.4rem; padding-bottom: 0.4rem; }
    .top-right[b-44fwsoywza] { gap: 0.4rem; }
}

@media (min-width: 641px) {
    .page[b-44fwsoywza] { flex-direction: row; }
    .sidebar[b-44fwsoywza] { width: 245px; height: 100vh; position: sticky; top: 0; overflow-y: auto; }
    .top-row[b-44fwsoywza], article[b-44fwsoywza] { padding-left: 2rem !important; padding-right: 2rem !important; }
}
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* ── Logo header (gradient) ─────────────────────── */
.sidebar-logo[b-7s2yfaigwx] {
    background: linear-gradient(135deg, #6D28D9, #7C3AED 60%, #9F67FA);
    padding: 1.3rem 1.2rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
}
.sidebar-logo[b-7s2yfaigwx]::after {
    content: '';
    position: absolute;
    top: -30px; right: -30px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,0.07);
    border-radius: 50%;
}
.logo-mark[b-7s2yfaigwx] {
    width: 34px; height: 34px;
    background: rgba(255,255,255,0.2);
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.18);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    position: relative;
}
.logo-name[b-7s2yfaigwx] {
    font-size: 0.97rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
    position: relative;
}
.logo-ai-badge[b-7s2yfaigwx] {
    /* Logical, not physical: in Arabic the gap belongs on the other side. */
    margin-inline-start: 0.3rem;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
    background: rgba(76,29,149,0.88);
    color: #FFFFFF;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* ── Section labels ──────────────────────────────── */
.nav-section-label[b-7s2yfaigwx] {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    /* #C4B5FD at 65% opacity came to 1.85:1 against the white sidebar. The heading is
       meant to be quiet, not invisible; the brand violet at full opacity reads as quiet
       against the links below it and clears the threshold. */
    color: #6D28D9;
    padding: 1rem 1.3rem 0.35rem;
    opacity: 1;
}

/* ── Nav items ───────────────────────────────────── */
.nav-item[b-7s2yfaigwx] {
    font-size: 0.9rem;
    padding-bottom: 0.1rem;
}
.nav-item[b-7s2yfaigwx]  .nav-link {
    color: #374151;
    background: none;
    border-radius: 10px;
    margin: 0 0.6rem;
    height: 2.7rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0 0.9rem;
    width: calc(100% - 1.2rem);
    font-weight: 500;
    transition: all 130ms ease;
    text-decoration: none;
    border: none;
}
.nav-item[b-7s2yfaigwx]  a.active {
    background: #EDE9FE;
    color: #5B21B6;
    font-weight: 600;
}
.nav-item[b-7s2yfaigwx]  .nav-link:hover {
    background: #F5F3FF;
    color: #7C3AED;
}

/* ── Nav icons ───────────────────────────────────── */
.nav-icon[b-7s2yfaigwx] {
    display: flex; align-items: center;
    width: 17px; height: 17px;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 130ms;
}
.nav-item[b-7s2yfaigwx]  a.active .nav-icon { opacity: 1; }
.nav-item[b-7s2yfaigwx]  .nav-link:hover .nav-icon { opacity: 0.9; }

/* ── Dev access links ────────────────────────────── */
.nav-dev[b-7s2yfaigwx] {
    height: 2.4rem !important;
    font-size: 0.82rem !important;
    color: var(--ink-3) !important;
    font-weight: 400 !important;
    gap: 0.5rem !important;
}
.nav-dev:hover[b-7s2yfaigwx] { color: #7C3AED !important; background: #F5F3FF !important; }
.dev-dot[b-7s2yfaigwx] {
    display: inline-block;
    width: 7px; height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.85;
}

/* ── Divider ─────────────────────────────────────── */
.nav-divider[b-7s2yfaigwx] {
    height: 1px;
    background: #F3F4F6;
    margin: 0.5rem 1.2rem;
}

/* ── Sign out ────────────────────────────────────── */
.nav-signout[b-7s2yfaigwx] { color: var(--ink-3) !important; }
.nav-signout:hover[b-7s2yfaigwx] { color: #9F1239 !important; background: #FFE4E6 !important; }

/* ── Mobile toggler ──────────────────────────────── */
.navbar-toggler[b-7s2yfaigwx] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem; height: 2.5rem;
    position: absolute; top: 0.5rem; right: 1rem;
    border: 1px solid #EDE9FE;
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28109, 40, 217, 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(109,40,217,0.04);
    border-radius: 8px;
}

.nav-scrollable[b-7s2yfaigwx] { display: none; }
.navbar-toggler:checked ~ .nav-scrollable[b-7s2yfaigwx] { display: block; }

@media (min-width: 641px) {
    .navbar-toggler[b-7s2yfaigwx] { display: none; }
    .nav-scrollable[b-7s2yfaigwx] { display: block; }
}
/* /Components/Layout/TopBarButtons.razor.rz.scp.css */
/*
 * Styles for the elements TopBarButtons renders.
 *
 * These lived in MainLayout.razor.css, which never applied to them: Blazor CSS
 * isolation stamps each rule with the scope of the component that owns the file, and
 * these elements belong to this component, not to MainLayout. The language and theme
 * controls fell back to raw browser buttons and the user chip collapsed into a run of
 * unspaced text. Keeping them beside their own markup is what makes them match.
 */

.top-tool-btn[b-7novkp19o4] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(109, 40, 217, 0.16);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F7FF 100%);
    color: #5B21B6;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    min-height: 2rem;
    min-width: 2.65rem;
    padding: 0.34rem 0.9rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(30, 27, 75, 0.05);
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.top-tool-btn:hover[b-7novkp19o4] {
    background: #F5F3FF;
    border-color: rgba(109, 40, 217, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(109, 40, 217, 0.10);
}

.top-tool-btn:active[b-7novkp19o4] {
    transform: translateY(0);
}

.top-tool-btn:focus-visible[b-7novkp19o4] {
    outline: 2px solid #7C3AED;
    outline-offset: 2px;
}

.top-help-btn[b-7novkp19o4] {
    text-decoration: none;
    min-width: 2rem;
    padding-inline: 0.65rem;
    font-size: 0.86rem;
}

.top-status-pill[b-7novkp19o4] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.28rem 0.75rem;
    border-radius: 99px;
    background: #ECFDF5;
    border: 1px solid rgba(5, 150, 105, 0.2);
    color: #065F46;
    white-space: nowrap;
}

.top-user-chip[b-7novkp19o4] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(109, 40, 217, 0.16);
    background: #fff;
    border-radius: 999px;
    padding: 0.22rem 0.65rem 0.22rem 0.22rem;
    box-shadow: 0 1px 3px rgba(30, 27, 75, 0.05);
    min-height: 2rem;
    max-width: 14rem;
}

.top-user-avatar[b-7novkp19o4] {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #6D28D9, #7C3AED);
    color: #fff;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.top-user-text[b-7novkp19o4] {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

/* A long name truncates rather than pushing the status pill off the bar. */
.top-user-text strong[b-7novkp19o4],
.top-user-text small[b-7novkp19o4] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-user-text strong[b-7novkp19o4] {
    color: #4C1D95;
    font-size: 0.74rem;
    font-weight: 800;
}

.top-user-text small[b-7novkp19o4] {
    color: #7C3AED;
    font-size: 0.63rem;
    font-weight: 700;
    opacity: 0.85;
}

.status-pulse[b-7novkp19o4] {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10B981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.65);
    animation: blink-b-7novkp19o4 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes blink-b-7novkp19o4 {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

/* Respect a reduced-motion preference rather than pulsing indefinitely. */
@media (prefers-reduced-motion: reduce) {
    .status-pulse[b-7novkp19o4] { animation: none; }
    .top-tool-btn[b-7novkp19o4] { transition: none; }
}

@media (max-width: 640.98px) {
    .top-tool-btn[b-7novkp19o4] { min-height: 1.9rem; padding: 0.3rem 0.7rem; }
    /* The name is already in the avatar and the title attribute on small screens. */
    .top-user-text[b-7novkp19o4] { display: none; }
    .top-user-chip[b-7novkp19o4] { padding: 0.22rem; max-width: none; }
}
/* /Components/Pages/Demo.razor.rz.scp.css */
.demo-page[b-9e0yghr3aq] {
    width: 100%;
    display: flex;
    justify-content: center;
}

.demo-card[b-9e0yghr3aq] {
    max-width: 32rem;
    width: 100%;
    text-align: center;
}

.demo-badge[b-9e0yghr3aq] {
    display: inline-block;
    padding: 0.25rem 0.8rem;
    border-radius: 999px;
    background: #F5F3FF;
    border: 1px solid rgba(109, 40, 217, 0.18);
    color: #6D28D9;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0.9rem;
}

.demo-card h1[b-9e0yghr3aq] {
    font-size: 1.4rem;
    font-weight: 800;
    color: #17172B;
    margin-bottom: 0.5rem;
}

.demo-lead[b-9e0yghr3aq] {
    color: #666B85;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.demo-credentials[b-9e0yghr3aq] {
    display: grid;
    gap: 0.6rem;
    padding: 1rem;
    border-radius: 14px;
    background: #FAFAFF;
    border: 1px solid rgba(109, 40, 217, 0.12);
    margin-bottom: 1.1rem;
}

.demo-field[b-9e0yghr3aq] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.demo-label[b-9e0yghr3aq] {
    color: #666B85;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Credentials read left-to-right even in Arabic, and stay selectable for copying. */
.demo-value[b-9e0yghr3aq] {
    direction: ltr;
    unicode-bidi: isolate;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4C1D95;
    background: #fff;
    border: 1px solid rgba(109, 40, 217, 0.16);
    border-radius: 8px;
    padding: 0.3rem 0.6rem;
    user-select: all;
    overflow-wrap: anywhere;
}

.demo-form[b-9e0yghr3aq] { margin-bottom: 1.25rem; }

.demo-cta[b-9e0yghr3aq] {
    width: 100%;
    padding: 0.7rem 1rem;
    font-weight: 800;
}

.demo-unavailable[b-9e0yghr3aq] {
    padding: 1rem;
    border-radius: 12px;
    background: #FFFBEB;
    border: 1px solid rgba(217, 119, 6, 0.25);
    color: #92400E;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.demo-scope[b-9e0yghr3aq] {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    text-align: start;
    display: grid;
    gap: 0.5rem;
}

.demo-scope li[b-9e0yghr3aq] {
    position: relative;
    padding-inline-start: 1.4rem;
    color: #666B85;
    font-size: 0.86rem;
    line-height: 1.6;
}

.demo-scope li[b-9e0yghr3aq]::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    color: #0F766E;
    font-weight: 800;
}

.demo-links[b-9e0yghr3aq] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.86rem;
}

.demo-links a[b-9e0yghr3aq] {
    color: #6D28D9;
    font-weight: 700;
    text-decoration: none;
}

.demo-links a:hover[b-9e0yghr3aq] { text-decoration: underline; }

.demo-sep[b-9e0yghr3aq] { color: #D1D5DB; }

@media (max-width: 480px) {
    .demo-field[b-9e0yghr3aq] { flex-direction: column; align-items: stretch; gap: 0.3rem; }
    .demo-value[b-9e0yghr3aq] { text-align: center; }
}
