/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-wxq05ms3rw] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-wxq05ms3rw] {
    flex: 1;
}

.sidebar[b-wxq05ms3rw] {
    background: var(--surface);
    border-right: 1px solid var(--border);
}

.top-row[b-wxq05ms3rw] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-wxq05ms3rw]  a, .top-row[b-wxq05ms3rw]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-wxq05ms3rw]  a:hover, .top-row[b-wxq05ms3rw]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-wxq05ms3rw]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-wxq05ms3rw] {
        justify-content: space-between;
    }

    .top-row[b-wxq05ms3rw]  a, .top-row[b-wxq05ms3rw]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-wxq05ms3rw] {
        flex-direction: row;
    }

    .sidebar[b-wxq05ms3rw] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-wxq05ms3rw] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-wxq05ms3rw]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-wxq05ms3rw], article[b-wxq05ms3rw] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-wxq05ms3rw] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-wxq05ms3rw] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-g3djuxn5i9] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    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.1);
}

.navbar-toggler:checked[b-g3djuxn5i9] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-g3djuxn5i9] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-g3djuxn5i9] {
    font-size: 1.1rem;
}

.bi[b-g3djuxn5i9] {
    display: inline-block;
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    top: -1px;
    background-size: cover;
}

.nav-item[b-g3djuxn5i9] {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type[b-g3djuxn5i9] {
        padding-top: 1rem;
    }

    .nav-item:last-of-type[b-g3djuxn5i9] {
        padding-bottom: 1rem;
    }

    .nav-item[b-g3djuxn5i9]  .nav-link {
        color: var(--text-secondary);
        background: none;
        border: none;
        border-radius: var(--radius-lg);
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: normal;
        width: 100%;
        transition: background-color var(--transition-fast), color var(--transition-fast);
        font-weight: 500;
        margin-right: 0.5rem;
    }

.nav-item[b-g3djuxn5i9]  a.active {
    background-color: rgba(84, 172, 191, 0.15); /* Luna teal with opacity */
    color: var(--text) !important; /* Force text color to match theme text (Dark in light mode, White in dark mode) */
    font-weight: 600;
}

.nav-item[b-g3djuxn5i9]  .nav-link:hover {
    background-color: var(--surface-hover);
    color: var(--text);
}

/* Ensure SVG icons inherit color */
.nav-item[b-g3djuxn5i9]  .nav-link svg {
    /* transition: stroke var(--transition-fast); - removed to prevent flickering */
}

.nav-scrollable[b-g3djuxn5i9] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-g3djuxn5i9] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-g3djuxn5i9] {
        display: none;
    }

    .nav-scrollable[b-g3djuxn5i9] {
        /* Never collapse the sidebar for wide screens */
        display: block;

        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-jf82ubv2h1],
.components-reconnect-repeated-attempt-visible[b-jf82ubv2h1],
.components-reconnect-failed-visible[b-jf82ubv2h1],
.components-pause-visible[b-jf82ubv2h1],
.components-resume-failed-visible[b-jf82ubv2h1],
.components-rejoining-animation[b-jf82ubv2h1] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-jf82ubv2h1],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-jf82ubv2h1],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-jf82ubv2h1],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-jf82ubv2h1],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-jf82ubv2h1],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-jf82ubv2h1],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-jf82ubv2h1] {
    display: block;
}


#components-reconnect-modal[b-jf82ubv2h1] {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.2s ease-in-out;
    pointer-events: none;
}

#components-reconnect-modal.is-open.components-reconnect-show[b-jf82ubv2h1],
#components-reconnect-modal.is-open.components-reconnect-retrying[b-jf82ubv2h1],
#components-reconnect-modal.is-open.components-reconnect-failed[b-jf82ubv2h1],
#components-reconnect-modal.is-open.components-reconnect-paused[b-jf82ubv2h1],
#components-reconnect-modal.is-open.components-reconnect-resume-failed[b-jf82ubv2h1] {
    display: flex;
    opacity: 1;
    pointer-events: none;
    animation: components-reconnect-modal-fadeInOpacity-b-jf82ubv2h1 0.2s ease-in-out;
    animation-fill-mode: both;
}

#components-reconnect-modal.is-open:not(.components-reconnect-show):not(.components-reconnect-retrying):not(.components-reconnect-failed):not(.components-reconnect-paused):not(.components-reconnect-resume-failed)[b-jf82ubv2h1] {
    display: none;
    opacity: 0;
    pointer-events: none;
}

@keyframes components-reconnect-modal-slideUp-b-jf82ubv2h1 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-jf82ubv2h1 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.components-reconnect-container[b-jf82ubv2h1] {
    background-color: white;
    width: 20rem;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    pointer-events: auto;
    animation: components-reconnect-modal-slideUp-b-jf82ubv2h1 0.4s cubic-bezier(.05, .89, .25, 1.02);
}

#components-reconnect-modal p[b-jf82ubv2h1] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-jf82ubv2h1] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-jf82ubv2h1] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-jf82ubv2h1] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-jf82ubv2h1] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-jf82ubv2h1] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-jf82ubv2h1 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-jf82ubv2h1] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-jf82ubv2h1 {
    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/Admin/FleetScriptsTab.razor.rz.scp.css */
.fleet-scripts-tab[b-tofygyjtg1] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scripts-toolbar[b-tofygyjtg1],
.scripts-toolbar__filters[b-tofygyjtg1],
.scripts-toolbar__actions[b-tofygyjtg1],
.workspace-card__header[b-tofygyjtg1],
.workspace-card__actions[b-tofygyjtg1],
.scripts-list-panel__header[b-tofygyjtg1],
.scripts-pagination[b-tofygyjtg1],
.scripts-modal__header[b-tofygyjtg1],
.scripts-modal__footer[b-tofygyjtg1],
.script-list-item__title-row[b-tofygyjtg1],
.script-list-item__actions[b-tofygyjtg1],
.batch-selection-toolbar[b-tofygyjtg1],
.batch-host-result[b-tofygyjtg1],
.batch-host-result__status[b-tofygyjtg1],
.batch-hosts-toolbar[b-tofygyjtg1] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.scripts-toolbar[b-tofygyjtg1],
.workspace-card[b-tofygyjtg1],
.scripts-list-panel[b-tofygyjtg1],
.scripts-modal[b-tofygyjtg1] {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.scripts-toolbar[b-tofygyjtg1],
.workspace-card[b-tofygyjtg1],
.scripts-list-panel[b-tofygyjtg1] {
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.scripts-toolbar[b-tofygyjtg1] {
    justify-content: space-between;
    padding: 1rem;
    flex-wrap: wrap;
}

.scripts-toolbar__filters[b-tofygyjtg1] {
    flex-wrap: wrap;
}

.scripts-layout[b-tofygyjtg1] {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 1rem;
    min-height: 60vh;
}

.scripts-list-panel[b-tofygyjtg1],
.workspace-card[b-tofygyjtg1] {
    padding: 1rem;
}

.scripts-list-panel[b-tofygyjtg1] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scripts-list-panel__header[b-tofygyjtg1] {
    justify-content: space-between;
}

.scripts-list-panel__header h3[b-tofygyjtg1],
.workspace-card__header h3[b-tofygyjtg1],
.workspace-placeholder h3[b-tofygyjtg1],
.scripts-modal__header h3[b-tofygyjtg1] {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.scripts-list-panel__header p[b-tofygyjtg1],
.workspace-card__header p[b-tofygyjtg1],
.workspace-placeholder p[b-tofygyjtg1],
.scripts-modal__header p[b-tofygyjtg1],
.scripts-modal__summary[b-tofygyjtg1] {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.scripts-list[b-tofygyjtg1],
.batch-host-results[b-tofygyjtg1] {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.script-list-item[b-tofygyjtg1] {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(15, 23, 42, 0.02));
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.script-list-item.is-selected[b-tofygyjtg1] {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent);
}

.script-list-item__body[b-tofygyjtg1] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
    padding: 0;
    cursor: pointer;
}

.script-list-item__meta[b-tofygyjtg1] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.scripts-workspace[b-tofygyjtg1] {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.workspace-card__header[b-tofygyjtg1],
.scripts-modal__header[b-tofygyjtg1],
.workspace-card__footer[b-tofygyjtg1],
.scripts-modal__footer[b-tofygyjtg1],
.batch-selection-toolbar[b-tofygyjtg1],
.batch-hosts-toolbar[b-tofygyjtg1] {
    justify-content: space-between;
    flex-wrap: wrap;
}

.editor-grid[b-tofygyjtg1],
.script-meta-grid[b-tofygyjtg1] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.script-meta-grid[b-tofygyjtg1] {
    margin-bottom: 1rem;
}

.scripts-field[b-tofygyjtg1] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 180px;
}

.scripts-field span[b-tofygyjtg1],
.meta-label[b-tofygyjtg1] {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.scripts-field--compact[b-tofygyjtg1] {
    max-width: 220px;
}

.scripts-field--textarea[b-tofygyjtg1] {
    margin-top: 1rem;
}

.scripts-editor[b-tofygyjtg1],
.code-panel__content[b-tofygyjtg1] {
    font-family: "Cascadia Code", Consolas, Monaco, monospace;
    font-size: 0.82rem;
    line-height: 1.55;
}

.scripts-editor[b-tofygyjtg1] {
    min-height: 340px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #09111f;
    color: #dbe5f5;
    padding: 1rem;
}

.scripts-editor--compact[b-tofygyjtg1] {
    min-height: 180px;
}

.code-panel[b-tofygyjtg1] {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.code-panel__header[b-tofygyjtg1] {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    font-size: 0.8rem;
}

.code-panel__content[b-tofygyjtg1] {
    margin: 0;
    padding: 1rem;
    background: #09111f;
    color: #dbe5f5;
    overflow: auto;
    max-height: 420px;
    white-space: pre-wrap;
    word-break: break-word;
}

.meta-item[b-tofygyjtg1] {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.9rem;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.meta-value[b-tofygyjtg1] {
    font-size: 0.9rem;
    font-weight: 600;
}

.workspace-placeholder[b-tofygyjtg1],
.scripts-loading[b-tofygyjtg1],
.scripts-empty-list[b-tofygyjtg1] {
    border: 1px dashed var(--border);
    border-radius: 14px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 240px;
    text-align: center;
}

.scripts-loading--workspace[b-tofygyjtg1] {
    min-height: 320px;
}

.status-badge[b-tofygyjtg1] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.status-badge--neutral[b-tofygyjtg1] {
    background: rgba(148, 163, 184, 0.12);
    color: var(--text-muted);
}

.status-badge--pending[b-tofygyjtg1] {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.status-badge--success[b-tofygyjtg1] {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.status-badge--error[b-tofygyjtg1] {
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
}

.status-badge--warning[b-tofygyjtg1] {
    background: rgba(249, 115, 22, 0.14);
    color: #c2410c;
}

.scripts-checkbox[b-tofygyjtg1],
.batch-host-picker__item[b-tofygyjtg1] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.batch-host-picker[b-tofygyjtg1] {
    max-height: 320px;
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.batch-host-result[b-tofygyjtg1] {
    justify-content: space-between;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    background: var(--bg);
    flex-wrap: wrap;
}

.scripts-modal-backdrop[b-tofygyjtg1] {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    z-index: 1200;
}

.scripts-modal[b-tofygyjtg1] {
    width: min(640px, 100%);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
}

.scripts-modal--wide[b-tofygyjtg1] {
    width: min(880px, 100%);
}

.form-error[b-tofygyjtg1] {
    color: var(--danger, #dc2626);
    margin: 0;
    font-size: 0.82rem;
}

.text-xs[b-tofygyjtg1] {
    font-size: 0.75rem;
}

@media (max-width: 1280px) {
    .scripts-layout[b-tofygyjtg1] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .scripts-toolbar[b-tofygyjtg1],
    .workspace-card__header[b-tofygyjtg1],
    .workspace-card__footer[b-tofygyjtg1],
    .scripts-modal__header[b-tofygyjtg1],
    .scripts-modal__footer[b-tofygyjtg1],
    .batch-selection-toolbar[b-tofygyjtg1],
    .batch-host-result[b-tofygyjtg1] {
        align-items: stretch;
    }

    .scripts-toolbar__actions[b-tofygyjtg1],
    .workspace-card__actions[b-tofygyjtg1],
    .script-list-item__actions[b-tofygyjtg1],
    .scripts-pagination[b-tofygyjtg1] {
        flex-wrap: wrap;
    }

    .scripts-field[b-tofygyjtg1],
    .scripts-field--compact[b-tofygyjtg1] {
        min-width: 100%;
        max-width: none;
    }

    .scripts-modal-backdrop[b-tofygyjtg1] {
        padding: 0.75rem;
    }
}
