/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* ══ Layout root ══ */
.swm-layout[b-cruzypk932] {
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ══ Страничен панел ══ */
.swm-sidebar[b-cruzypk932] {
    width: 264px;
    min-width: 264px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(2, 132, 199, 0.12);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: 4px 0 32px rgba(2, 132, 199, 0.06);
    z-index: 100;
    scrollbar-width: thin;
    scrollbar-color: rgba(2, 132, 199, 0.20) transparent;
}

.swm-sidebar[b-cruzypk932]::-webkit-scrollbar       { width: 4px; }
.swm-sidebar[b-cruzypk932]::-webkit-scrollbar-track { background: transparent; }
.swm-sidebar[b-cruzypk932]::-webkit-scrollbar-thumb { background: rgba(2, 132, 199, 0.20); border-radius: 4px; }

/* ── Лого ── */
.sidebar-logo[b-cruzypk932] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 16px 16px;
    border-bottom: 1px solid rgba(2, 132, 199, 0.10);
    flex-shrink: 0;
}

.sidebar-logo-icon[b-cruzypk932] {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0284C7, #0891B2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.30);
    flex-shrink: 0;
}

.sidebar-logo-text[b-cruzypk932] {
    font-size: 14px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
}

.sidebar-logo-sub[b-cruzypk932] {
    font-size: 11px;
    color: #94A3B8;
    font-weight: 400;
    margin-top: 1px;
}

/* ── Зони и секции ── */
.nav-zone[b-cruzypk932] {
    margin: 3px 6px;
    border-radius: 10px;
    border-left: 3px solid transparent;
    padding: 2px 0;
}

.nav-section-label[b-cruzypk932] {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 14px 4px;
    color: #94A3B8;
    user-select: none;
}

/* Зона: Съдържание */
.nav-zone-content[b-cruzypk932] { background: rgba(2, 132, 199, 0.05); border-left-color: rgba(2, 132, 199, 0.30); }
.nav-zone-content .nav-section-label[b-cruzypk932] { color: #0369A1; }

/* Зона: Каталог */
.nav-zone-catalog[b-cruzypk932] { background: rgba(5, 150, 105, 0.05); border-left-color: rgba(5, 150, 105, 0.30); }
.nav-zone-catalog .nav-section-label[b-cruzypk932] { color: #047857; }

/* Зона: Система */
.nav-zone-system[b-cruzypk932] { background: rgba(15, 23, 42, 0.04); border-left-color: rgba(15, 23, 42, 0.15); }
.nav-zone-system .nav-section-label[b-cruzypk932] { color: #334155; }

/* ══ Основна зона ══ */
.swm-main[b-cruzypk932] {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

/* ── Горна лента ── */
.swm-topbar[b-cruzypk932] {
    height: 56px;
    min-height: 56px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(2, 132, 199, 0.12);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 24px;
    box-shadow: 0 2px 16px rgba(2, 132, 199, 0.05);
    z-index: 50;
    flex-shrink: 0;
    position: relative;
}

.topbar-left[b-cruzypk932] {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.topbar-center[b-cruzypk932] {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    white-space: nowrap;
}

.topbar-title[b-cruzypk932] {
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
}

.topbar-right[b-cruzypk932] {
    margin-left: auto;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* ── Глобален селектор на активна сцена ── */
.global-scene-selector[b-cruzypk932] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border: 1.5px dashed #CBD5E1;
    border-radius: 10px;
    cursor: pointer;
    background: #F8FAFC;
    min-width: 190px;
    max-width: 340px;
    transition: border-color 0.15s, background 0.15s;
    user-select: none;
}
.global-scene-selector:hover[b-cruzypk932] {
    border-color: #334155;
    border-style: solid;
    background: #F1F5F9;
}
.global-scene-selector.has-scene[b-cruzypk932] {
    border-style: solid;
    border-color: #BAE6FD;
    background: #F0F9FF;
}
.global-scene-selector.has-scene:hover[b-cruzypk932] {
    border-color: #0369A1;
    background: #E0F2FE;
}

.gss-info[b-cruzypk932] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}
.gss-label[b-cruzypk932]       { font-size: 10px; color: #94A3B8; line-height: 1; }
.gss-name[b-cruzypk932]        { font-size: 13px; font-weight: 600; color: #0F172A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gss-placeholder[b-cruzypk932] { font-size: 13px; color: #94A3B8; }

/* ── Съдържание на страницата ── */
.page-content[b-cruzypk932] {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    background: transparent;
}

/* ── Акаунт падащо меню ── */
.account-dropdown[b-cruzypk932] {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 234px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.15);
    border: 1px solid #E2E8F0;
    z-index: 1300;
    overflow: hidden;
    padding: 4px 0;
}

.account-menu-header[b-cruzypk932] {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px 10px;
}

.account-menu-name[b-cruzypk932] {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-menu-role[b-cruzypk932] {
    font-size: 11px;
    color: #64748B;
    margin-top: 1px;
}

.account-menu-divider[b-cruzypk932] {
    height: 1px;
    background: #E2E8F0;
    margin: 4px 0;
}

.account-menu-item[b-cruzypk932] {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
    font-family: inherit;
    text-align: left;
}

.account-menu-item:hover[b-cruzypk932]        { background: #F1F5F9; }
.account-menu-item-danger[b-cruzypk932]       { color: #DC2626; }
.account-menu-item-danger:hover[b-cruzypk932] { background: #FEF2F2; }

/* ── Мобилна адаптация ── */
@media (max-width: 768px) {
    .swm-sidebar[b-cruzypk932] {
        position: fixed;
        left: -264px;
        top: 0;
        z-index: 200;
    }
    .swm-sidebar.open[b-cruzypk932] { left: 0; }
    .page-content[b-cruzypk932] { padding: 16px; }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-5pgr54tg1r],
.components-reconnect-repeated-attempt-visible[b-5pgr54tg1r],
.components-reconnect-failed-visible[b-5pgr54tg1r],
.components-pause-visible[b-5pgr54tg1r],
.components-resume-failed-visible[b-5pgr54tg1r],
.components-rejoining-animation[b-5pgr54tg1r] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-5pgr54tg1r],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-5pgr54tg1r],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-5pgr54tg1r],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-5pgr54tg1r],
#components-reconnect-modal.components-reconnect-retrying[b-5pgr54tg1r],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-5pgr54tg1r],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-5pgr54tg1r],
#components-reconnect-modal.components-reconnect-failed[b-5pgr54tg1r],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-5pgr54tg1r] {
    display: block;
}


#components-reconnect-modal[b-5pgr54tg1r] {
    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-5pgr54tg1r 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-5pgr54tg1r 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-5pgr54tg1r 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-5pgr54tg1r]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-5pgr54tg1r 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-5pgr54tg1r {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-5pgr54tg1r {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-5pgr54tg1r {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-5pgr54tg1r] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-5pgr54tg1r] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-5pgr54tg1r] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-5pgr54tg1r] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-5pgr54tg1r] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-5pgr54tg1r] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-5pgr54tg1r] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-5pgr54tg1r 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-5pgr54tg1r] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-5pgr54tg1r {
    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/Sceni/LayoutEditor.razor.rz.scp.css */
.layout-svg[b-jl5eqsjhzs] {
    width: 100%;
    display: block;
    background: #F8FAFC;
    border: 1px solid rgba(2, 132, 199, 0.18);
    border-radius: 12px;
    touch-action: none;
    user-select: none;
    /* letter-spacing inherits as an absolute length, far too wide for text measured in metres */
    letter-spacing: 0;
    word-spacing: 0;
}

.grid[b-jl5eqsjhzs]      { stroke: #E2E8F0; stroke-width: 0.012; }
.grid-axis[b-jl5eqsjhzs] { stroke: #CBD5E1; stroke-width: 0.022; }

.floor[b-jl5eqsjhzs]              { fill: rgba(2, 132, 199, 0.07); stroke: rgba(2, 132, 199, 0.35); stroke-width: 0.025; }
.floor.hidden-floor[b-jl5eqsjhzs] { fill: none; stroke-dasharray: 0.08 0.08; }

.camera[b-jl5eqsjhzs]       { fill: #475569; }
.camera-ray[b-jl5eqsjhzs]   { stroke: #94A3B8; stroke-width: 0.02; stroke-dasharray: 0.1 0.08; }
.camera-label[b-jl5eqsjhzs] { font-size: 0.2px; fill: #64748B; text-anchor: middle; }

.item[b-jl5eqsjhzs]                { cursor: grab; }
.readonly .item[b-jl5eqsjhzs]      { cursor: default; }
.item:active[b-jl5eqsjhzs]         { cursor: grabbing; }

.body[b-jl5eqsjhzs]      { fill: #2B3A57; stroke: #fff; stroke-width: 0.04; }
.facing[b-jl5eqsjhzs]    { fill: #0284C7; }
.layout-svg[b-jl5eqsjhzs]  .initial { font-size: 0.26px; font-weight: 700; fill: #fff; text-anchor: middle; pointer-events: none; }
.layout-svg[b-jl5eqsjhzs]  .label   { font-size: 0.19px; font-weight: 600; fill: #0F172A; text-anchor: middle; pointer-events: none;
                              paint-order: stroke; stroke: #F8FAFC; stroke-width: 0.06; }

.prop[b-jl5eqsjhzs]       { stroke: rgba(15, 23, 42, 0.45); stroke-width: 0.025; opacity: 0.9; }
.prop-front[b-jl5eqsjhzs] { stroke: #0F172A; stroke-width: 0.05; }

.item.selected .body[b-jl5eqsjhzs] { stroke: #F59E0B; stroke-width: 0.07; }
.item.selected .prop[b-jl5eqsjhzs] { stroke: #F59E0B; stroke-width: 0.06; }
/* /Components/Pages/Sceni/SceneDialog.razor.rz.scp.css */
.tab-body[b-z7qog6njea] {
    height: calc(100vh - 290px);
    min-height: 420px;
    overflow-y: auto;
    padding: 12px 6px 6px;
}

/* ── Подредба ── */
.layout-wrap[b-z7qog6njea] {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.layout-canvas[b-z7qog6njea] { flex: 1 1 auto; min-width: 0; }
.layout-side[b-z7qog6njea]   { flex: 0 0 360px; }

@media (max-width: 1100px) {
    .layout-wrap[b-z7qog6njea] { flex-direction: column; }
    .layout-side[b-z7qog6njea] { flex-basis: auto; width: 100%; }
}

/* ── Реплики ── */
.line-row[b-z7qog6njea] {
    background: #fff;
    border: 1px solid rgba(2, 132, 199, 0.14);
    border-radius: 12px;
    padding: 8px 10px 10px;
    margin-bottom: 8px;
}

.line-head[b-z7qog6njea] {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.line-no[b-z7qog6njea] {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #E0F2FE;
    color: #0369A1;
    font-weight: 700;
    font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.line-tools[b-z7qog6njea]   { display: flex; align-items: center; gap: 2px; }
.line-actions[b-z7qog6njea] { display: flex; align-items: center; margin-left: auto; }

.line-body[b-z7qog6njea] {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 300px 250px;
    gap: 12px;
    align-items: start;
}
@media (max-width: 1200px) {
    .line-body[b-z7qog6njea] { grid-template-columns: 1fr; }
}

.line-reference[b-z7qog6njea] {
    font-size: 12px;
    color: #64748B;
    background: #F8FAFC;
    border-left: 3px solid #CBD5E1;
    padding: 3px 8px;
    margin-bottom: 4px;
    border-radius: 0 6px 6px 0;
}

.line-audio[b-z7qog6njea] { display: flex; flex-direction: column; gap: 4px; }
.line-audio audio[b-z7qog6njea] { width: 100%; height: 32px; }
.audio-name[b-z7qog6njea] {
    font-size: 12px;
    color: #334155;
    display: flex; align-items: center; gap: 4px;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.audio-name span[b-z7qog6njea] { color: #94A3B8; }

.line-look[b-z7qog6njea] { display: flex; flex-direction: column; gap: 6px; }
.look-label[b-z7qog6njea] { font-size: 11px; color: #64748B; }

/* ── Избор на герой (кой говори / гледа) ── */
.who-group[b-z7qog6njea] { display: flex; flex-wrap: wrap; gap: 4px; }

.who[b-z7qog6njea] {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px 2px 3px;
    border: 1px solid #CBD5E1;
    border-radius: 16px;
    background: #fff;
    color: #334155;
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    min-height: 30px;
}
.who:hover[b-z7qog6njea] { border-color: #0284C7; }
.who.active[b-z7qog6njea] {
    background: #0284C7;
    border-color: #0284C7;
    color: #fff;
    font-weight: 600;
}
.who-group.small .who[b-z7qog6njea] { padding: 2px 9px; min-height: 26px; font-size: 12px; }
/* /Components/Shared/NavGroup.razor.rz.scp.css */
.nav-group[b-odfq6580gr] {
    margin-bottom: 1px;
}

.nav-group-header[b-odfq6580gr] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin: 2px 8px;
    border-radius: 10px;
    cursor: pointer;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    user-select: none;
    position: relative;
}

.nav-group-header:hover[b-odfq6580gr] {
    background: #DBEAFE;
    color: #2563EB;
}

.nav-group-header.child-active[b-odfq6580gr] {
    background: #DBEAFE;
    color: #1D4ED8;
    font-weight: 600;
}

.nav-group-header.child-active[b-odfq6580gr]::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #0284C7;
    border-radius: 0 3px 3px 0;
}

.nav-group-label[b-odfq6580gr] {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-group-items[b-odfq6580gr] {
    padding-left: 4px;
    padding-bottom: 2px;
}
/* /Components/Shared/NavItem.razor.rz.scp.css */
.nav-item[b-j0vizb8rqf] {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    margin: 2px 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #475569;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.nav-item:hover[b-j0vizb8rqf] {
    background: #DBEAFE;
    color: #2563EB;
    text-decoration: none;
}

.nav-item.active[b-j0vizb8rqf] {
    background: #DBEAFE;
    color: #1D4ED8;
    font-weight: 600;
}

.nav-item.active[b-j0vizb8rqf]::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 60%;
    background: #0284C7;
    border-radius: 0 3px 3px 0;
}

.nav-item.sub[b-j0vizb8rqf] {
    padding: 6px 16px 6px 44px;
    font-size: 12.5px;
    font-weight: 400;
}

[b-j0vizb8rqf] .nav-icon {
    font-size: 18px !important;
    flex-shrink: 0;
}
