/* /Components/Layout/MainLayout.razor.rz.scp.css */

/* /Components/Layout/NavMenu.razor.rz.scp.css */

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-hwgwfn3odr],
.components-reconnect-repeated-attempt-visible[b-hwgwfn3odr],
.components-reconnect-failed-visible[b-hwgwfn3odr],
.components-pause-visible[b-hwgwfn3odr],
.components-resume-failed-visible[b-hwgwfn3odr],
.components-rejoining-animation[b-hwgwfn3odr] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-hwgwfn3odr],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-hwgwfn3odr],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-hwgwfn3odr],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-hwgwfn3odr],
#components-reconnect-modal.components-reconnect-retrying[b-hwgwfn3odr],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-hwgwfn3odr],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-hwgwfn3odr],
#components-reconnect-modal.components-reconnect-failed[b-hwgwfn3odr],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-hwgwfn3odr] {
    display: block;
}


#components-reconnect-modal[b-hwgwfn3odr] {
    background-color: white;
    width: 20rem;
    max-width: calc(100vw - 2rem);
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-hwgwfn3odr 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-hwgwfn3odr 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-hwgwfn3odr 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-hwgwfn3odr]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-hwgwfn3odr 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-hwgwfn3odr {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-hwgwfn3odr {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-hwgwfn3odr {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-hwgwfn3odr] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-hwgwfn3odr] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-hwgwfn3odr] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-hwgwfn3odr] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-hwgwfn3odr] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-hwgwfn3odr] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-hwgwfn3odr] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-hwgwfn3odr 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-hwgwfn3odr] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-hwgwfn3odr {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Help.razor.rz.scp.css */
/* 80px throughout clears the fixed 64px app bar with room to spare — it is what keeps the sticky
   sidebar below the bar and stops an anchored heading from landing underneath it. Scoped CSS
   rewrites every selector, so a :root custom property would never match; the literal stays. */

/* ---- Table of contents ---- */

.help-toc[b-9n6jorxh6h] {
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
}

.help-toc-list[b-9n6jorxh6h] {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--mud-palette-lines-default);
}

.help-toc-list a[b-9n6jorxh6h] {
    color: var(--mud-palette-text-secondary);
    text-decoration: none;
    padding: 4px 12px;
    border-left: 2px solid transparent;
    margin-left: -2px;
    line-height: 1.35;
}

.help-toc-list a:hover[b-9n6jorxh6h] {
    color: var(--mud-palette-text-primary);
    background-color: var(--mud-palette-action-default-hover);
}

.help-toc-chapter[b-9n6jorxh6h] {
    font-weight: 500;
    color: var(--mud-palette-text-primary) !important;
    margin-top: 8px;
}

.help-toc-section[b-9n6jorxh6h] {
    font-size: 0.8125rem;
    padding-left: 24px !important;
}

/* ---- Rendered Markdown ----
   The chapter HTML is injected as a MarkupString, so it carries no CSS-isolation scope attribute
   of its own; ::deep under the scoped wrapper is how it gets styled (same trick as
   TopologyGraph.razor.css). Colors come from palette variables so dark mode needs no second set
   of rules. */

.em-help[b-9n6jorxh6h]  h1,
.em-help[b-9n6jorxh6h]  h2,
.em-help[b-9n6jorxh6h]  h3,
.em-help[b-9n6jorxh6h]  h4 {
    scroll-margin-top: 80px;
    line-height: 1.3;
    margin: 1.5em 0 0.5em;
    font-weight: 500;
}

.em-help[b-9n6jorxh6h]  h1 {
    font-size: 1.5rem;
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mud-palette-divider);
}

.em-help[b-9n6jorxh6h]  h2 {
    font-size: 1.25rem;
}

.em-help[b-9n6jorxh6h]  h3 {
    font-size: 1.0625rem;
}

.em-help[b-9n6jorxh6h]  h4 {
    font-size: 0.9375rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mud-palette-text-secondary);
}

/* MudBlazor's reset zeroes the margins on p, ul and ol, so the manual has to put its own rhythm
   back — without it every paragraph runs into the next one and list markers sit outside the text. */
.em-help[b-9n6jorxh6h]  p {
    line-height: 1.6;
    margin: 0 0 1em;
}

.em-help[b-9n6jorxh6h]  ul,
.em-help[b-9n6jorxh6h]  ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}

.em-help[b-9n6jorxh6h]  li {
    line-height: 1.6;
    margin-bottom: 0.25em;
}

.em-help[b-9n6jorxh6h]  li > ul,
.em-help[b-9n6jorxh6h]  li > ol {
    margin: 0.25em 0 0;
}

/* The router focuses the first h1 on every navigation (FocusOnNavigate in Routes.razor), which is
   the right thing for screen readers but paints a box around the first chapter title for everyone
   else. The heading is not reachable by Tab, so hiding the ring costs no keyboard affordance. */
.em-help[b-9n6jorxh6h]  h1:focus {
    outline: none;
}

.em-help[b-9n6jorxh6h]  a {
    color: var(--mud-palette-primary);
}

.em-help[b-9n6jorxh6h]  hr {
    border: none;
    border-top: 1px solid var(--mud-palette-divider);
    margin: 2em 0;
}

.em-help[b-9n6jorxh6h]  blockquote {
    margin: 1em 0;
    padding: 2px 16px;
    border-left: 3px solid var(--mud-palette-lines-default);
    color: var(--mud-palette-text-secondary);
}

/* ---- Code ---- */

.em-help[b-9n6jorxh6h]  code {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.875em;
    background-color: var(--mud-palette-background-gray);
    border-radius: 3px;
    padding: 1px 5px;
    overflow-wrap: break-word;
}

.em-help[b-9n6jorxh6h]  pre {
    background-color: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-divider);
    border-radius: 4px;
    padding: 12px;
    /* Command lines are long and must not widen the page; they scroll inside their own box. */
    overflow-x: auto;
}

.em-help[b-9n6jorxh6h]  pre code {
    background: none;
    padding: 0;
    white-space: pre;
    overflow-wrap: normal;
}

/* ---- Tables ----
   Every provider chapter is mostly tables, and several are wider than a phone. The wrapper
   scrolls rather than the page, which is the same rule the rest of the app follows. */

.em-help[b-9n6jorxh6h]  table {
    display: block;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    margin: 1em 0;
}

.em-help[b-9n6jorxh6h]  th,
.em-help[b-9n6jorxh6h]  td {
    border: 1px solid var(--mud-palette-divider);
    padding: 6px 12px;
    text-align: left;
    vertical-align: top;
}

.em-help[b-9n6jorxh6h]  th {
    background-color: var(--mud-palette-background-gray);
    font-weight: 500;
    white-space: nowrap;
}

/* ---- Callouts ----
   Markdig custom containers: ":::note", ":::warning", ":::tip" in the Markdown become
   <div class="note"> and so on. */

.em-help[b-9n6jorxh6h]  .note,
.em-help[b-9n6jorxh6h]  .tip,
.em-help[b-9n6jorxh6h]  .warning {
    border-left: 3px solid var(--mud-palette-info);
    background-color: var(--mud-palette-action-default-hover);
    border-radius: 0 4px 4px 0;
    padding: 8px 16px;
    margin: 1em 0;
}

.em-help[b-9n6jorxh6h]  .tip {
    border-left-color: var(--mud-palette-success);
}

.em-help[b-9n6jorxh6h]  .warning {
    border-left-color: var(--mud-palette-warning);
}

.em-help[b-9n6jorxh6h]  .note > :first-child,
.em-help[b-9n6jorxh6h]  .tip > :first-child,
.em-help[b-9n6jorxh6h]  .warning > :first-child {
    margin-top: 0;
}

.em-help[b-9n6jorxh6h]  .note > :last-child,
.em-help[b-9n6jorxh6h]  .tip > :last-child,
.em-help[b-9n6jorxh6h]  .warning > :last-child {
    margin-bottom: 0;
}
/* /Components/Shared/TopologyGraph.razor.rz.scp.css */
.topo-scroll[b-0rq9sehy6l] {
    overflow-x: auto;
    width: 100%;
}

.topo-svg[b-0rq9sehy6l] {
    display: block;
    width: 100%;
}

/* ---- Edges ---- */

.topo-edge[b-0rq9sehy6l] {
    fill: none;
    stroke: var(--mud-palette-lines-default);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.topo-edge.up[b-0rq9sehy6l] {
    stroke: var(--mud-palette-success);
}

.topo-edge.down[b-0rq9sehy6l] {
    stroke: var(--mud-palette-error);
    stroke-dasharray: 6 4;
}

.topo-edge-pulse[b-0rq9sehy6l] {
    fill: none;
    stroke: var(--mud-palette-info);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 8 92;
    animation: topoPulse-b-0rq9sehy6l 1.1s linear forwards;
}

@keyframes topoPulse-b-0rq9sehy6l {
    from { stroke-dashoffset: 100; }
    to   { stroke-dashoffset: 8; }
}

/* Edge labels ride in an opaque pill so the connector behind them is masked and the text
   stays legible. Text/rect are injected as raw markup (Razor reserves <text>), so they carry
   no CSS-isolation scope attribute — match them via ::deep under the scoped svg. */
/* Slight transparency (~20%) so labels sit lightly over the connectors. */
.topo-svg[b-0rq9sehy6l]  .topo-edge-label-grp {
    opacity: 0.8;
}

.topo-svg[b-0rq9sehy6l]  .topo-edge-label-bg {
    fill: var(--mud-palette-surface);
    stroke: var(--mud-palette-lines-default);
    stroke-width: 1;
}

.topo-svg[b-0rq9sehy6l]  .topo-edge-label {
    fill: var(--mud-palette-text-secondary);
    font-size: 11px;
    text-anchor: end;
}

/* ---- Nodes ---- */

.topo-node[b-0rq9sehy6l] {
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28));
    transition: filter 0.15s ease;
}

.topo-node:hover[b-0rq9sehy6l] {
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.42));
}

.topo-rect[b-0rq9sehy6l] {
    fill: var(--mud-palette-surface);
    stroke: var(--mud-palette-lines-default);
    stroke-width: 1;
}

/* Top-light / bottom-shade gradient overlay, clipped to the rounded card. */
.topo-sheen[b-0rq9sehy6l] {
    fill: url(#topo-node-sheen);
    pointer-events: none;
}

/* Full-height status stripe down the left edge of the card. */
.topo-accent[b-0rq9sehy6l] { fill: var(--mud-palette-lines-default); }
.topo-node.success .topo-accent[b-0rq9sehy6l] { fill: var(--mud-palette-success); }
.topo-node.error   .topo-accent[b-0rq9sehy6l] { fill: var(--mud-palette-error); }
.topo-node.warning .topo-accent[b-0rq9sehy6l] { fill: var(--mud-palette-warning); }

/* Live status beacon: a solid dot with a soft expanding ring for healthy/failing nodes. */
.topo-status-dot[b-0rq9sehy6l] { fill: var(--mud-palette-text-secondary); }
.topo-node.success .topo-status-dot[b-0rq9sehy6l] { fill: var(--mud-palette-success); }
.topo-node.error   .topo-status-dot[b-0rq9sehy6l] { fill: var(--mud-palette-error); }
.topo-node.warning .topo-status-dot[b-0rq9sehy6l] { fill: var(--mud-palette-warning); }

.topo-pulse[b-0rq9sehy6l] {
    fill: transparent;
    transform-box: fill-box;
    transform-origin: center;
}

.topo-node.success .topo-pulse[b-0rq9sehy6l] {
    fill: var(--mud-palette-success);
    animation: topoBeacon-b-0rq9sehy6l 2.4s ease-out infinite;
}

.topo-node.error .topo-pulse[b-0rq9sehy6l] {
    fill: var(--mud-palette-error);
    animation: topoBeacon-b-0rq9sehy6l 1.3s ease-out infinite;
}

@keyframes topoBeacon-b-0rq9sehy6l {
    0%   { r: 4px; opacity: 0.55; }
    100% { r: 13px; opacity: 0; }
}

/* Failing nodes pulse a red glow to draw the eye. */
.topo-node.error[b-0rq9sehy6l] {
    animation: topoErrorGlow-b-0rq9sehy6l 1.6s ease-in-out infinite;
}

@keyframes topoErrorGlow-b-0rq9sehy6l {
    0%, 100% { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.28)); }
    50%      { filter: drop-shadow(0 0 9px var(--mud-palette-error)); }
}

.topo-icon[b-0rq9sehy6l] {
    fill: var(--mud-palette-text-secondary);
}

.topo-svg[b-0rq9sehy6l]  .topo-label {
    fill: var(--mud-palette-text-primary);
    font-size: 13px;
    font-weight: 600;
}

.topo-svg[b-0rq9sehy6l]  .topo-sublabel {
    fill: var(--mud-palette-text-secondary);
    font-size: 11px;
}

.topo-svg[b-0rq9sehy6l]  .topo-chip {
    fill: var(--mud-palette-text-secondary);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.topo-badge[b-0rq9sehy6l] {
    fill: var(--mud-palette-warning);
    stroke: var(--mud-palette-surface);
    stroke-width: 1.5;
}

/* Cluster caption above each group of endpoint cards. Injected as raw markup, so matched via ::deep. */
.topo-svg[b-0rq9sehy6l]  .topo-group-label {
    fill: var(--mud-palette-text-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
