/* /Components/Layout/AdminLayout.razor.rz.scp.css */
.page[b-628bpq1c7l] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-628bpq1c7l] {
    flex: 1;
}

.sidebar[b-628bpq1c7l] {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-subtle);
}

.top-row[b-628bpq1c7l] {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    gap: 0.5rem;
}

.top-row[b-628bpq1c7l]  .env-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
}

.top-row[b-628bpq1c7l]  .env-select {
    width: auto;
    min-width: 100px;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.25rem 2rem 0.25rem 0.5rem;
    border-width: 2px;
}

.top-row[b-628bpq1c7l]  .env-select.env-prod {
    border-color: #e53935;
    color: #e53935;
}

.top-row[b-628bpq1c7l]  .env-select.env-non-prod {
    border-color: #43a047;
    color: #43a047;
}

    .top-row[b-628bpq1c7l]  a, .top-row[b-628bpq1c7l]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: var(--text-secondary);
        font-size: 0.875rem;
    }

    .top-row[b-628bpq1c7l]  a:hover, .top-row[b-628bpq1c7l]  .btn-link:hover {
        color: var(--accent-hover);
        text-decoration: none;
    }

    .top-row[b-628bpq1c7l]  span {
        color: var(--text-secondary);
        font-size: 0.875rem;
    }

main[b-628bpq1c7l] {
    min-width: 0;
}

@media (max-width: 767.98px) {
    .top-row[b-628bpq1c7l] {
        justify-content: space-between;
    }

    .top-row[b-628bpq1c7l]  a, .top-row[b-628bpq1c7l]  .btn-link {
        margin-left: 0;
    }

    article.content[b-628bpq1c7l] {
        max-width: 100vw;
        overflow-x: hidden;
    }
}

@media (min-width: 768px) {
    .page[b-628bpq1c7l] {
        flex-direction: row;
    }

    .sidebar[b-628bpq1c7l] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-628bpq1c7l] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row[b-628bpq1c7l], article[b-628bpq1c7l] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-628bpq1c7l] {
    color-scheme: dark only;
    background: var(--bg-tertiary);
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: var(--text-primary);
    border-top: 1px solid var(--border-default);
}

    #blazor-error-ui .dismiss[b-628bpq1c7l] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-wom38ao1fh] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid var(--border-default);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 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(255, 255, 255, 0.05);
}

.navbar-toggler:checked[b-wom38ao1fh] {
    background-color: rgba(255, 255, 255, 0.15);
}

.top-row[b-wom38ao1fh] {
    min-height: 3.5rem;
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 1rem;
}

.navbar-brand[b-wom38ao1fh] {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-mark[b-wom38ao1fh] {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--accent-hover);
    line-height: 1;
}

.brand-sub[b-wom38ao1fh] {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.nav-icon[b-wom38ao1fh] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.nav-icon svg[b-wom38ao1fh] {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.nav-item[b-wom38ao1fh] {
    font-size: 0.9rem;
    padding-bottom: 0.25rem;
}

    .nav-item:first-of-type[b-wom38ao1fh] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-wom38ao1fh] {
        padding-bottom: 1rem;
    }

    .nav-item[b-wom38ao1fh]  .nav-link {
        color: var(--text-secondary);
        background: none;
        border: none;
        border-radius: 6px;
        height: 2.75rem;
        display: flex;
        align-items: center;
        line-height: 2.75rem;
        width: 100%;
        border-left: 2px solid transparent;
        padding-left: 0.75rem;
        transition: all 0.15s;
    }

.nav-item[b-wom38ao1fh]  a.active {
    background-color: var(--accent-subtle);
    border-left-color: var(--accent);
    color: var(--accent-hover);
}

.nav-item[b-wom38ao1fh]  .nav-link:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

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

.navbar-toggler:checked ~ .nav-scrollable[b-wom38ao1fh] {
    display: block;
    position: absolute;
    top: 3.5rem;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--bg-secondary);
}

@media (min-width: 768px) {
    .navbar-toggler[b-wom38ao1fh] {
        display: none;
    }

    .nav-scrollable[b-wom38ao1fh] {
        display: block;
        position: static;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Pages/Stack/SwarmVisualizer.razor.rz.scp.css */
/* === Swarm Visualizer — Scoped Styles === */

/* --- Live indicator dot --- */
.swarm-live-dot[b-5eyendjjox] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}

/* --- Network Zones --- */
.swarm-zone[b-5eyendjjox] {
    position: relative;
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem 1rem;
}

.swarm-zone-label[b-5eyendjjox] {
    position: absolute;
    top: -0.6em;
    left: 1rem;
    background: var(--bg-primary);
    padding: 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.swarm-zone-grid[b-5eyendjjox] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}

/* --- Service Nodes --- */
.swarm-node[b-5eyendjjox] {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.65rem;
    transition: box-shadow 0.3s, border-color 0.3s;
}

.swarm-node-healthy[b-5eyendjjox] {
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.15);
}

.swarm-node-unhealthy[b-5eyendjjox] {
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.swarm-node-infra[b-5eyendjjox] {
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
}

.swarm-node-checking[b-5eyendjjox] {
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.2);
    border-color: rgba(234, 179, 8, 0.3);
}

.swarm-node-name[b-5eyendjjox] {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
}

.swarm-node-replicas[b-5eyendjjox] {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

/* --- Replica Dots --- */
.swarm-replica-dot[b-5eyendjjox] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.replica-running[b-5eyendjjox] {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}

.replica-starting[b-5eyendjjox] {
    background: var(--warning);
    box-shadow: 0 0 6px var(--warning);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.replica-empty[b-5eyendjjox] {
    background: transparent;
    border: 1px dashed var(--text-muted);
}

/* --- Mini CPU Bar --- */
.swarm-node-cpu[b-5eyendjjox] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.swarm-cpu-bar[b-5eyendjjox] {
    flex: 1;
    height: 4px;
    background: var(--bg-tertiary);
    border-radius: 9999px;
    overflow: hidden;
}

.swarm-cpu-fill[b-5eyendjjox] {
    height: 100%;
    background: linear-gradient(90deg, var(--success), var(--warning));
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.swarm-cpu-text[b-5eyendjjox] {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    min-width: 30px;
    text-align: right;
}

/* --- Threshold Gauges --- */
.swarm-gauge-track[b-5eyendjjox] {
    position: relative;
    height: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    overflow: visible;
    margin: 0.35rem 0;
}

.swarm-gauge-fill[b-5eyendjjox] {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--success));
    border-radius: 9999px;
    transition: width 0.5s ease;
}

.swarm-gauge-fill.gauge-exceeded[b-5eyendjjox] {
    background: linear-gradient(90deg, var(--warning), var(--danger));
}

.swarm-gauge-marker[b-5eyendjjox] {
    position: absolute;
    top: -3px;
    width: 2px;
    height: 14px;
    background: var(--text-primary);
    border-radius: 1px;
    transform: translateX(-50%);
}

.swarm-gauge-marker-up[b-5eyendjjox] {
    background: var(--danger);
}

.swarm-gauge-marker-down[b-5eyendjjox] {
    background: var(--success);
}

/* --- Cooldown Bars --- */
.swarm-cooldown-bar[b-5eyendjjox] {
    height: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 9999px;
    overflow: hidden;
    margin: 0.25rem 0;
}

.swarm-cooldown-fill[b-5eyendjjox] {
    height: 100%;
    background: var(--border-default);
    border-radius: 9999px;
    transition: width 1s linear;
}

.swarm-cooldown-fill.cooldown-active[b-5eyendjjox] {
    background: linear-gradient(90deg, var(--warning), var(--accent));
}

/* --- Lifecycle Feed --- */
.swarm-lifecycle-entry[b-5eyendjjox] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    animation: slideInLeft 0.3s ease-out;
}

.swarm-lifecycle-entry:last-child[b-5eyendjjox] {
    border-bottom: none;
}

.swarm-lifecycle-action[b-5eyendjjox] {
    font-weight: 600;
    font-size: 0.75rem;
    min-width: 80px;
}

.swarm-lifecycle-action.lifecycle-start[b-5eyendjjox] {
    color: var(--success);
}

.swarm-lifecycle-action.lifecycle-stop[b-5eyendjjox] {
    color: var(--danger);
}

.swarm-lifecycle-action.lifecycle-change[b-5eyendjjox] {
    color: var(--warning);
}

.swarm-lifecycle-entry.lifecycle-stop[b-5eyendjjox] {
    opacity: 0.7;
}

/* --- Max Replicas Input --- */
.swarm-max-input[b-5eyendjjox] {
    width: 52px;
    height: 24px;
    padding: 0 0.3rem;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    text-align: center;
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
    .swarm-zone-grid[b-5eyendjjox] {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.5rem;
    }

    .swarm-node[b-5eyendjjox] {
        padding: 0.5rem;
    }

    .swarm-node-name[b-5eyendjjox] {
        font-size: 0.75rem;
    }

    .swarm-lifecycle-entry[b-5eyendjjox] {
        font-size: 0.7rem !important;
        gap: 0.4rem;
        padding: 0.35rem 0.5rem;
    }
}
