/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
#components-reconnect-modal[b-g1wcxw4hai] {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1400;
    overflow: hidden;
    background-color: transparent;
    border: none;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
}

    #components-reconnect-modal[b-g1wcxw4hai]::backdrop {
        background: rgba(10, 16, 28, 0.5);
    }

    #components-reconnect-modal.components-reconnect-show[b-g1wcxw4hai],
    #components-reconnect-modal[open][b-g1wcxw4hai],
    #components-reconnect-modal.components-reconnect-failed[b-g1wcxw4hai],
    #components-reconnect-modal.components-reconnect-repeated-attempt[b-g1wcxw4hai],
    #components-reconnect-modal.components-reconnect-paused[b-g1wcxw4hai],
    #components-reconnect-modal.components-reconnect-resume-failed[b-g1wcxw4hai],
    #components-reconnect-modal.components-pause[b-g1wcxw4hai],
    #components-reconnect-modal.components-resume-failed[b-g1wcxw4hai] {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.components-reconnect-backdrop[b-g1wcxw4hai] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(90% 60% at 80% 0%, color-mix(in srgb, var(--mud-palette-primary, #594AE2) 12%, transparent), transparent 60%), radial-gradient(80% 55% at 0% 100%, color-mix(in srgb, var(--mud-palette-info, #2196f3) 16%, transparent), transparent 62%), rgba(8, 12, 20, 0.5);
}

.components-reconnect-surface[b-g1wcxw4hai] {
    width: min(480px, 100%);
    border-radius: var(--mud-default-borderradius, 12px);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default, #e0e0e0) 70%, transparent);
    background: var(--mud-palette-surface, #fff);
    box-shadow: var(--mud-elevation-24, 0 16px 30px rgba(0, 0, 0, 0.28));
    color: var(--mud-palette-text-primary, #1f2937);
    padding: 20px 20px 18px;
}

.components-reconnect-header[b-g1wcxw4hai] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

    .components-reconnect-header h2[b-g1wcxw4hai] {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.3;
    }

.components-reconnect-status-dot[b-g1wcxw4hai] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mud-palette-warning, #f59e0b);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--mud-palette-warning, #f59e0b) 25%, transparent);
}

.components-reconnect-supporting[b-g1wcxw4hai],
.components-reconnect-message[b-g1wcxw4hai] {
    margin: 0;
    line-height: 1.45;
    font-size: 0.95rem;
}

.components-reconnect-supporting[b-g1wcxw4hai] {
    color: var(--mud-palette-text-secondary, #52607a);
    margin-bottom: 14px;
}

.components-reconnect-message[b-g1wcxw4hai] {
    font-weight: 500;
}

.components-reconnect-danger[b-g1wcxw4hai] {
    color: var(--mud-palette-error, #b00020);
}

.components-reconnect-actions[b-g1wcxw4hai] {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.components-reconnect-first-attempt-visible[b-g1wcxw4hai],
.components-reconnect-repeated-attempt-visible[b-g1wcxw4hai],
.components-reconnect-failed-visible[b-g1wcxw4hai],
.components-pause-visible[b-g1wcxw4hai],
.components-resume-failed-visible[b-g1wcxw4hai] {
    display: none;
}

dialog[open].components-reconnect-show .components-reconnect-first-attempt-visible[b-g1wcxw4hai] {
    display: block;
}

dialog[open].components-reconnect-show .components-rejoin-loader[b-g1wcxw4hai] {
    display: inline-flex;
}

dialog[open].components-reconnect-failed .components-reconnect-failed-visible[b-g1wcxw4hai] {
    display: block;
}

dialog[open].components-reconnect-failed #components-reconnect-button[b-g1wcxw4hai] {
    display: block;
}

dialog[open].components-reconnect-repeated-attempt .components-reconnect-repeated-attempt-visible[b-g1wcxw4hai] {
    display: block;
}

dialog[open].components-reconnect-repeated-attempt .components-rejoin-loader[b-g1wcxw4hai] {
    display: inline-flex;
}

dialog[open].components-reconnect-paused .components-pause-visible[b-g1wcxw4hai],
dialog[open].components-pause .components-pause-visible[b-g1wcxw4hai] {
    display: block;
}

dialog[open].components-reconnect-paused #components-resume-button[b-g1wcxw4hai],
dialog[open].components-pause #components-resume-button[b-g1wcxw4hai],
dialog[open].components-reconnect-resume-failed #components-resume-button[b-g1wcxw4hai],
dialog[open].components-resume-failed #components-resume-button[b-g1wcxw4hai] {
    display: block;
}

dialog[open].components-reconnect-resume-failed .components-resume-failed-visible[b-g1wcxw4hai],
dialog[open].components-resume-failed .components-resume-failed-visible[b-g1wcxw4hai] {
    display: block;
}

.components-rejoin-loader[b-g1wcxw4hai] {
    display: none;
    margin-bottom: 10px;
    gap: 8px;
}

    .components-rejoin-loader div[b-g1wcxw4hai] {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background-color: var(--mud-palette-primary, #594AE2);
        animation: reconnect-pulse-b-g1wcxw4hai 1.2s infinite ease-in-out both;
    }

        .components-rejoin-loader div:nth-child(1)[b-g1wcxw4hai] {
            animation-delay: -0.24s;
        }

        .components-rejoin-loader div:nth-child(2)[b-g1wcxw4hai] {
            animation-delay: -0.12s;
        }

@keyframes reconnect-pulse-b-g1wcxw4hai {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

#components-reconnect-button[b-g1wcxw4hai],
#components-resume-button[b-g1wcxw4hai] {
    display: none;
    min-width: 92px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: var(--mud-palette-primary, #594AE2);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    transition: filter 140ms ease, transform 140ms ease;
}

    #components-reconnect-button:hover[b-g1wcxw4hai],
    #components-resume-button:hover[b-g1wcxw4hai] {
        filter: brightness(0.95);
    }

    #components-reconnect-button:active[b-g1wcxw4hai],
    #components-resume-button:active[b-g1wcxw4hai] {
        transform: translateY(1px);
    }

@media (max-width: 600px) {
    .components-reconnect-backdrop[b-g1wcxw4hai] {
        padding: 14px;
    }

    .components-reconnect-surface[b-g1wcxw4hai] {
        padding: 16px;
    }
}
/* /Components/Widgets/MapisterioV2.razor.rz.scp.css */
/* ── Root container ── */
.mapisterio-root[b-1673bym31c] {
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    background: #FFFFFF;
    overflow: hidden;
}

/* ── Two-column layout (flex, no MudGrid overhead) ── */
.mapisterio-layout[b-1673bym31c] {
    display: flex;
}

.mapisterio-map-col[b-1673bym31c] {
    flex: 1;
    min-width: 0;
    position: relative;
}

.mapisterio-sidebar-col[b-1673bym31c] {
    width: 260px;
    min-width: 220px;
    border-left: 1px solid #E2E8F0;
    background: #FAFAFA;
}

/* ── Map ── */
.mapisterio-map[b-1673bym31c] {
    width: 100%;
    height: 100%;
    border-radius: 12px 0 0 12px;
}

/* ── Sidebar ── */
.mapisterio-sidebar[b-1673bym31c] {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mapisterio-sidebar-header[b-1673bym31c] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid #E2E8F0;
    background: #FFFFFF;
}

[b-1673bym31c] .mapisterio-sidebar-icon {
    color: #0052FF;
    font-size: 18px;
}

/* ── Empty state ── */
.mapisterio-empty[b-1673bym31c] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    text-align: center;
}

/* ── Items list ── */
.mapisterio-items[b-1673bym31c] {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

/* ── Single item ── */
.mapisterio-item[b-1673bym31c] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    margin-bottom: 4px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.mapisterio-item:hover[b-1673bym31c] {
    border-color: #CBD5E1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.mapisterio-item.editing[b-1673bym31c] {
    border-color: #F59E0B;
    background: rgba(245,158,11,0.06);
    box-shadow: 0 0 0 2px rgba(245,158,11,0.15);
}

.mapisterio-item.no-layer[b-1673bym31c] {
    border-style: dashed;
    border-color: #E2E8F0;
}

/* ── Item label (dot + name) ── */
.mapisterio-item-label[b-1673bym31c] {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.mapisterio-item-name[b-1673bym31c] {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Status dot ── */
.mapisterio-item-dot[b-1673bym31c] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-active[b-1673bym31c] {
    background: #22C55E;
    box-shadow: 0 0 4px rgba(34,197,94,0.4);
}

.dot-inactive[b-1673bym31c] {
    background: #CBD5E1;
}

/* ── Item actions ── */
.mapisterio-item-actions[b-1673bym31c] {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 960px) {
    .mapisterio-layout[b-1673bym31c] {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .mapisterio-map-col[b-1673bym31c] {
        height: 50vh;
        min-height: 320px;
    }

    .mapisterio-sidebar-col[b-1673bym31c] {
        width: 100%;
        min-width: 0;
        border-left: none;
        border-top: 1px solid #E2E8F0;
        max-height: 40vh;
    }

    .mapisterio-map[b-1673bym31c] {
        border-radius: 12px 12px 0 0;
    }
}
