/* /Components/Layout/MainLayout.razor.rz.scp.css */
#blazor-error-ui[b-31nvrezu59] {
    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-31nvrezu59] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-qtaq79bp7h],
.components-reconnect-repeated-attempt-visible[b-qtaq79bp7h],
.components-reconnect-failed-visible[b-qtaq79bp7h],
.components-pause-visible[b-qtaq79bp7h],
.components-resume-failed-visible[b-qtaq79bp7h],
.components-rejoining-animation[b-qtaq79bp7h] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-qtaq79bp7h],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-qtaq79bp7h],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-qtaq79bp7h],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-qtaq79bp7h],
#components-reconnect-modal.components-reconnect-retrying[b-qtaq79bp7h],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-qtaq79bp7h],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-qtaq79bp7h],
#components-reconnect-modal.components-reconnect-failed[b-qtaq79bp7h],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-qtaq79bp7h] {
    display: block;
}


#components-reconnect-modal[b-qtaq79bp7h] {
    background-color: white;
    width: 20rem;
    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-qtaq79bp7h 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-qtaq79bp7h 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-qtaq79bp7h 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-qtaq79bp7h]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-qtaq79bp7h 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-qtaq79bp7h {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-qtaq79bp7h {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-qtaq79bp7h {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-qtaq79bp7h] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-qtaq79bp7h] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-qtaq79bp7h] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-qtaq79bp7h] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-qtaq79bp7h] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-qtaq79bp7h] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-qtaq79bp7h] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-qtaq79bp7h 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-qtaq79bp7h] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-qtaq79bp7h {
    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/Components/InteractiveMap.razor.rz.scp.css */
.map-container[b-lokqz2uw21] {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Задний план - карта */
.map-background[b-lokqz2uw21] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 1;
}

/* Передний план - зоны и контролы */
.map-foreground[b-lokqz2uw21] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

/* Зоны получают события */
.zone-circle[b-lokqz2uw21] {
    position: absolute;
    border-radius: 50%;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transform: translate(-50%, -50%);
    min-width: 20px;
    min-height: 20px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    z-index: 3;
}

    .zone-circle:hover[b-lokqz2uw21] {
        opacity: 0.9;
    }

    .zone-circle.selected[b-lokqz2uw21] {
        box-shadow: 0 0 0 4px #fff, 0 0 0 8px rgba(0, 150, 255, 0.5);
        animation: pulse-b-lokqz2uw21 1s ease-in-out infinite;
    }

@keyframes pulse-b-lokqz2uw21 {
    0% {
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.08);
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
    }
}

.zone-label[b-lokqz2uw21] {
    color: white;
    font-size: 12px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.9);
    pointer-events: none;
    z-index: 10;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(0,0,0,0.3);
}

.zone-delete-btn[b-lokqz2uw21] {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: #ff4444;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    padding: 0;
    line-height: 1;
    transition: all 0.2s ease;
    pointer-events: auto;
    z-index: 20;
}

    .zone-delete-btn:hover[b-lokqz2uw21] {
        transform: scale(1.2);
        background: #ff0000;
    }

.map-wrapper[b-lokqz2uw21] {
    transform-origin: 0 0;
    transition: none;
    position: relative;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.map-image-wrapper[b-lokqz2uw21] {
    position: relative;
    overflow: visible;
}

.map-image[b-lokqz2uw21] {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    border-radius: 8px;
    -webkit-user-drag: none;
    user-drag: none;
}

/* Контролы получают события */
.controls[b-lokqz2uw21] {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(255,255,255,0.95);
    padding: 10px 14px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    flex-wrap: wrap;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    z-index: 100;
    pointer-events: auto;
}

    .controls .btn[b-lokqz2uw21] {
        min-width: 44px;
        height: 44px;
        font-size: 16px;
        padding: 0 12px;
        border-radius: 10px;
        border: none;
        font-weight: 500;
        transition: all 0.2s ease;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .controls .btn:hover[b-lokqz2uw21] {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .controls .btn:active[b-lokqz2uw21] {
            transform: scale(0.92);
        }

.btn-primary[b-lokqz2uw21] {
    background: #4A90D9;
    color: white;
}

.btn-success[b-lokqz2uw21] {
    background: #34C759;
    color: white;
}

.btn-danger[b-lokqz2uw21] {
    background: #FF3B30;
    color: white;
}

.btn-warning[b-lokqz2uw21] {
    background: #FF9500;
    color: white;
}

.btn-outline-secondary[b-lokqz2uw21] {
    background: transparent;
    color: #666;
    border: 2px solid #666;
}

.zone-settings[b-lokqz2uw21] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 8px;
}

    .zone-settings label[b-lokqz2uw21] {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 12px;
        color: #333;
    }

    .zone-settings input[type="color"][b-lokqz2uw21] {
        width: 30px;
        height: 30px;
        padding: 0;
        border: 2px solid #ddd;
        border-radius: 6px;
        cursor: pointer;
    }

    .zone-settings input[type="range"][b-lokqz2uw21] {
        width: 80px;
        height: 4px;
        -webkit-appearance: none;
        appearance: none;
        background: #ddd;
        border-radius: 2px;
        outline: none;
    }

        .zone-settings input[type="range"][b-lokqz2uw21]::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 16px;
            height: 16px;
            border-radius: 50%;
            background: #4A90D9;
            cursor: pointer;
        }

    .zone-settings span[b-lokqz2uw21] {
        min-width: 30px;
        font-size: 14px;
        font-weight: bold;
        color: #333;
    }

.zone-settings-hint[b-lokqz2uw21] {
    font-size: 11px;
    color: #666;
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .map-container[b-lokqz2uw21] {
        height: 70vh;
    }

    .controls[b-lokqz2uw21] {
        bottom: 10px;
        padding: 8px 10px;
        gap: 5px;
        width: 95%;
        max-width: 500px;
    }

        .controls .btn[b-lokqz2uw21] {
            min-width: 38px;
            height: 38px;
            font-size: 14px;
            padding: 0 8px;
        }

    .zone-label[b-lokqz2uw21] {
        font-size: 10px;
    }

    .zone-circle[b-lokqz2uw21] {
        min-width: 20px;
        min-height: 20px;
    }

    .zone-settings input[type="range"][b-lokqz2uw21] {
        width: 60px;
    }
    .zone-settings-hint[b-lokqz2uw21] {
        font-size: 10px;
        white-space: normal;
    }
}
