/* --- ALAPVETŐ SZERKESZTŐ TEST STRUKTÚRA --- */
html {
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

body.editor-mode {
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   UNIVERZÁLIS LEBEGŐ EGYEDI SCROLLBAR (MINDENHOL A GYÁRI HELYETT)
   - Teljesen átlátszó sáv, a tartalom alá fut (overlay)
   - Nincsenek alsó-felső nyilak
   - Lekerekített finom lebegő fogantyú kapszula
   ========================================================================== */

/* Csak nem-WebKit böngészőkben (Firefox) használjuk a standard scrollbar-width / scrollbar-color szabályokat,
   mert a modern Chromiumban (121+) a scrollbar-color/scrollbar-width kiüti a ::-webkit-scrollbar-t! */
@supports not selector(::-webkit-scrollbar) {
    *, *::before, *::after {
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }
    .workspace,
    .workspace *,
    .fa-icon-grid,
    .fa-custom-grid,
    .scroll-row-inner {
        scrollbar-color: rgba(0, 0, 0, 0.25) transparent;
    }
}

/* WebKit / Chromium univerzális lebegő görgetősáv (Chrome, Edge, Safari, Opera, Brave) */
::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 6px !important;
    height: 6px !important;
    background: transparent !important;
    background-color: transparent !important;
}

::-webkit-scrollbar-button,
*::-webkit-scrollbar-button,
::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:single-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

::-webkit-scrollbar-track,
*::-webkit-scrollbar-track,
::-webkit-scrollbar-track-piece,
*::-webkit-scrollbar-track-piece,
::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.25) !important;
    border-radius: 999px !important;
    border: none !important;
    box-shadow: none !important;
    transition: background-color 0.15s ease;
}

::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.55) !important;
}

/* Sötét panelek, oldalsávok, fejlécek és modális ablakok esetén: áttetsző fehér lebegő kapszula */
.top-toolbar ::-webkit-scrollbar-thumb,
.layers-sidebar ::-webkit-scrollbar-thumb,
.sidebar-content ::-webkit-scrollbar-thumb,
.sidebar-props-body ::-webkit-scrollbar-thumb,
.dropdown-panel ::-webkit-scrollbar-thumb,
.page-switcher-dropdown ::-webkit-scrollbar-thumb,
.page-dropdown-list ::-webkit-scrollbar-thumb,
.sidebar-pages-list ::-webkit-scrollbar-thumb,
.float-modal-body ::-webkit-scrollbar-thumb,
.float-modal-dialog ::-webkit-scrollbar-thumb,
.add-element-dropdown ::-webkit-scrollbar-thumb,
.empty-add-dropdown ::-webkit-scrollbar-thumb,
.empty-column-context-menu ::-webkit-scrollbar-thumb,
.evergo-select-dropdown ::-webkit-scrollbar-thumb,
.header-template-list-items ::-webkit-scrollbar-thumb,
.evergo-settings-content ::-webkit-scrollbar-thumb,
.code-viewer-body ::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.22) !important;
}

.top-toolbar ::-webkit-scrollbar-thumb:hover,
.layers-sidebar ::-webkit-scrollbar-thumb:hover,
.sidebar-content ::-webkit-scrollbar-thumb:hover,
.sidebar-props-body ::-webkit-scrollbar-thumb:hover,
.dropdown-panel ::-webkit-scrollbar-thumb:hover,
.page-switcher-dropdown ::-webkit-scrollbar-thumb:hover,
.page-dropdown-list ::-webkit-scrollbar-thumb:hover,
.sidebar-pages-list ::-webkit-scrollbar-thumb:hover,
.float-modal-body ::-webkit-scrollbar-thumb:hover,
.float-modal-dialog ::-webkit-scrollbar-thumb:hover,
.add-element-dropdown ::-webkit-scrollbar-thumb:hover,
.empty-add-dropdown ::-webkit-scrollbar-thumb:hover,
.empty-column-context-menu ::-webkit-scrollbar-thumb:hover,
.evergo-select-dropdown ::-webkit-scrollbar-thumb:hover,
.header-template-list-items ::-webkit-scrollbar-thumb:hover,
.evergo-settings-content ::-webkit-scrollbar-thumb:hover,
.code-viewer-body ::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255, 255, 255, 0.45) !important;
}

/* Lebegő overlay viselkedés: a tartalom a görgetősáv alá fut, nincs layout eltolás */
.workspace,
.sidebar-content,
.sidebar-props-body,
.page-switcher-dropdown,
.page-dropdown-list,
.sidebar-pages-list,
.float-modal-body,
.dropdown-panel,
.add-element-dropdown,
.empty-add-dropdown,
.empty-column-context-menu,
.evergo-select-dropdown,
.header-template-list-items,
.evergo-settings-content,
.code-viewer-body {
    overflow-y: overlay;
}

/* --- FELSŐ SÁV (3 ZÓNÁS LETISZTULT STRUKTÚRA) --- */
.top-toolbar {
    background-color: var(--toolbar-bg);
    height: 60px;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-dark);
    color: var(--text-main);
    font-size: 13px;
    user-select: none;
    width: 100%;
    z-index: 1000;
    position: relative;
    padding: 0 16px;
}

/* 1. BAL ZÓNA: FŐMENÜ, VISSZAVONÁS/ELŐRE, OLDALSÁV GOMB, OLDALVÁLASZTÓ */
.toolbar-left-group {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

/* 1.5 KÖZÉPSŐ ZÓNA: SZERKESZTETT NÉZET VÁLTÓ + FELÜLÍRÁS SZÁMLÁLÓ + 3-PONTOS MENÜ */
.toolbar-center-group {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: auto;
}

.device-switcher-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.device-overrides-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ui-text-muted, #7a7a7a);
    background: var(--ui-bg-elevated, #303030);
    border: 1px solid var(--ui-border-default, #3f3f3f);
    transition: all 0.2s ease;
    user-select: none;
    cursor: default;
    white-space: nowrap;
}

.device-overrides-badge.has-overrides {
    color: var(--color-warning, #f59e0b);
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.4);
}

.device-overrides-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748b;
    transition: all 0.2s ease;
}

.device-overrides-badge.has-overrides .dot {
    background: var(--color-warning, #f59e0b);
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.8);
}

.device-actions-wrapper {
    position: relative;
}

.device-actions-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: var(--ui-bg-elevated, #303030);
    border: 1px solid var(--ui-border-default, #3f3f3f);
    color: var(--ui-text-secondary, #b3b3b3);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
}

.device-actions-btn:hover,
.device-actions-btn.active {
    background: var(--ui-bg-hover, #3a3a3a);
    border-color: var(--ui-border-strong, #525252);
    color: var(--ui-text-primary, #ffffff);
}

.device-actions-dropdown {
    display: none;
    position: absolute;
    width: 280px;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    transform: none;
    background: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    padding: 5px;
    z-index: 2000;
}

.device-actions-dropdown.open {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.device-actions-header {
    font-size: 10.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888888;
    padding: 6px 10px 4px 10px;
}

.device-action-item {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 10px;
    background: transparent;
    border: none;
    border-radius: 5px;
    color: #cccccc;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    font-size: 12px;
}

.device-action-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.device-action-item i {
    font-size: 13px;
    width: 16px;
    text-align: center;
    margin-top: 2px;
    color: #aaaaaa;
    flex-shrink: 0;
}

.device-action-item:hover i {
    color: #ffffff;
}

.device-action-item.action-item-danger i {
    color: #ef4444;
}

.device-action-item.action-item-danger:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
}

.device-action-item.action-item-danger:hover i {
    color: #ef4444;
}

.action-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.action-item-title {
    font-size: 12px;
    font-weight: 600;
}

.action-item-desc {
    font-size: 10.5px;
    color: #94a3b8;
    line-height: 1.35;
}

/* 2. JOBB ZÓNA: ELŐNÉZET ÉS MENTÉS */
.toolbar-right {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1;
    flex-shrink: 0;
    white-space: nowrap;
}

/* --- FŐMENÜ (HAMBURGER MENÜ GOMB) --- */
.hamburger-btn {
    width: 36px;
    height: 36px;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 16px !important;
    color: var(--text-main) !important;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.hamburger-btn:hover {
    background-color: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

.main-menu-wrapper {
    position: relative;
}

.toolbar-divider {
    width: 1px;
    height: 22px;
    background-color: rgba(255, 255, 255, 0.14);
    margin: 0 4px;
}

/* --- VISSZAVONÁS & ELŐRE GOMBOK --- */
.undo-redo-group {
    display: flex;
    align-items: center;
    gap: 3px;
}

.undo-redo-btn {
    width: 32px;
    height: 32px;
    padding: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px !important;
    color: var(--text-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.undo-redo-btn:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.undo-redo-btn:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    pointer-events: none;
}

.toolbar-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 7px 12px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.toolbar-btn i {
    font-size: 14px;
}

.toolbar-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.toolbar-btn.layers-btn {
    color: var(--text-main);
    background-color: rgba(255, 255, 255, 0.05);
    width: 36px;
    height: 36px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}
.toolbar-btn.layers-btn i {
    font-size: 16px;
}
.toolbar-btn.layers-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.toolbar-btn.layers-btn.active,
body:has(#layersSidebar.open) #toggleLayers {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}

.toolbar-btn.clear-btn:hover {
    background-color: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

/* --- ELEM HOZZÁADÁSA GOMB POZICIONÁLÁSA A VÁSZONHOZ IGAZÍTVA --- */
.add-element-wrapper {
    position: relative;
    margin-left: 12px;
    transition: margin-left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

body:has(#layersSidebar.open) .add-element-wrapper,
body:has(.layers-sidebar.open) .add-element-wrapper {
    margin-left: 224px;
}

/* --- KÖZÉP: RESZPONZÍV NÉZETVÁLTÓ --- */
.device-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: #252525;
    padding: 3px;
    border-radius: 6px;
    border: 1px solid #444;
}

.device-btn {
    background: transparent;
    border: none;
    color: #aaaaaa;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.device-btn i {
    font-size: 13px;
}

.device-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.device-btn.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* --- KÖZÉP: AKTÍV ELEM JELZŐ & ÁTNEVEZŐ --- */
.active-element-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #252525;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 5px 12px;
    color: #dddddd;
    font-size: 12px;
    transition: all 0.2s ease;
}

.active-element-chip:hover {
    border-color: #666;
}

.active-element-chip.has-selection {
    background: rgba(52, 106, 243, 0.15);
    border-color: var(--primary-color);
    color: #ffffff;
}

.active-element-chip i {
    color: #888888;
    font-size: 12px;
}

.active-element-chip.has-selection i {
    color: var(--primary-color);
}

#editableName {
    outline: none;
    cursor: text;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
}

#editableName:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    padding: 0 4px;
}

/* Kontextuális szerkesztő menük csoportja (Fejlécből elrejtve, a tulajdonságok a bal menübe vannak dokkolva) */
.editor-menus-group {
    display: none !important;
}

.editor-menus-group .dropdown-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.editor-menus-group .dropdown-wrapper:not(:first-child)::before {
    content: '';
    display: inline-block;
    width: 1px;
    height: 16px;
    background: #444;
    margin: 0 1px;
    flex-shrink: 0;
}

.editor-menus-group .toolbar-btn.dropdown-toggle {
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #b5b5b5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    cursor: pointer;
    box-shadow: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.editor-menus-group .toolbar-btn.dropdown-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.editor-menus-group .toolbar-btn.dropdown-toggle.open,
.editor-menus-group .toolbar-btn.dropdown-toggle.active,
.editor-menus-group .dropdown-wrapper:has(.dropdown-panel.open) .toolbar-btn.dropdown-toggle,
.editor-menus-group .dropdown-wrapper:has(.dropdown-panel.active-section) .toolbar-btn.dropdown-toggle {
    background: rgba(255, 255, 255, 0.16) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

/* --- EDITOR & MUNKATERÜLET --- */
.editor-container { 
    display: flex; 
    flex: 1 1 0%;
    min-height: 0;
    height: calc(100% - 60px); 
    width: 100%; 
    position: relative; 
    overflow: hidden; 
}

.layers-sidebar { 
    width: 420px; 
    min-width: 420px; 
    height: 100%; 
    background-color: var(--ui-bg-panel, #2b2b2b); 
    border-right: 1px solid var(--ui-border-default, #3f3f3f); 
    color: var(--text-main); 
    display: flex; 
    flex-direction: row; 
    position: absolute; 
    left: 0; 
    top: 0; 
    z-index: 100; 
    transform: translateX(-100%); 
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1); 
    box-shadow: none; 
}
.layers-sidebar.open { transform: translateX(0); }

/* FIGMA-STÍLUSÚ KESKENY BAL FÜGGŐLEGES MENÜSÁV (RAIL) */
.sidebar-rail {
    width: 68px;
    min-width: 68px;
    height: 100%;
    background-color: var(--ui-bg-panel, #2b2b2b);
    border-right: 1px solid var(--ui-border-subtle, #333333);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 0;
    gap: 8px;
    user-select: none;
    z-index: 2;
    position: relative;
}

.sidebar-rail-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 15px;
    transition: all 0.15s ease;
    position: relative;
}

.sidebar-rail-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-rail-btn.active {
    color: #ffffff;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.sidebar-rail-btn.active:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-rail-btn.active::before {
    content: '';
    position: absolute;
    left: -16px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 2px 2px 0;
    background: #ffffff;
}

/* ALMENÜK A BAL SZÉLSŐ IKON MENÜSÁVBAN (TULAJDONSÁGOK ÉS STÍLUSOK) */
.sidebar-rail-subgroup {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
    position: relative;
    padding: 6px 0;
    margin-top: -2px;
    transition: opacity 0.2s ease;
}

/* Csak akkor nyitott, ha a Tulajdonságok főmenüpont aktív */
.sidebar-rail:has(#railTabProperties.active) .sidebar-rail-subgroup,
.sidebar-rail-subgroup.is-tab-active {
    display: flex;
    animation: railSubgroupFade 0.16s ease-out;
}

@keyframes railSubgroupFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-rail-subgroup.no-selection {
    opacity: 0.65;
}

/* Halványabb szürke vonal a fehér jelölő alatt, ami jelzi az almenüpontokat */
.sidebar-rail-subgroup::before {
    content: '';
    position: absolute;
    left: 0;
    top: -4px;
    bottom: 4px;
    width: 2px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 1px;
    transition: opacity 0.2s ease;
}

.sidebar-rail-subgroup:not(.is-tab-active)::before {
    opacity: 0.35;
}

.sidebar-rail-btn.rail-sub-btn {
    width: 32px;
    height: 32px;
    font-size: 13px;
    color: #8e92a4;
    border-radius: 7px;
    position: relative;
    transition: all 0.15s ease;
}

.sidebar-rail-btn.rail-sub-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.sidebar-rail-btn.rail-sub-btn.active {
    color: #ffffff;
    background: rgba(52, 106, 243, 0.22);
    border-color: rgba(52, 106, 243, 0.4);
}

/* Az aktív almenüpont fehér jelölője a szürke vonalon */
.sidebar-rail-btn.rail-sub-btn.active::before {
    content: '';
    position: absolute;
    left: -18px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: #ffffff;
    border-radius: 0 2px 2px 0;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* FŐ TARTALOMTERÜLET */
.sidebar-main-pane {
    flex: 1;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--ui-bg-panel, #2b2b2b);
}

.sidebar-view {
    display: none;
    flex-direction: column;
    height: 100%;
    width: 100%;
    overflow: hidden;
    background-color: var(--ui-bg-panel, #2b2b2b);
}

.sidebar-view.active {
    display: flex;
}

/* TULAJDONSÁGOK NÉZET FEJLÉC (KOMPAKT, ALACSONY FEJLÉC 20PX MARGÓVAL) */
.sidebar-props-header {
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    box-sizing: border-box !important;
    padding: 20px !important;
    border-bottom: 1px solid var(--ui-border-subtle, #333333) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: var(--ui-bg-panel, #2b2b2b) !important;
    flex-shrink: 0 !important;
}

.props-header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.props-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.props-header-icon {
    font-size: 13px;
    color: #aaaaaa;
}

.props-header-title {
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.props-header-badge {
    font-size: 9.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888888;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

.props-subnav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.props-subnav::-webkit-scrollbar {
    display: none;
}

.props-subnav-btn {
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 500;
    color: #aaaaaa;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 5px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.12s ease;
}

.props-subnav-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.props-subnav-btn.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

.sidebar-props-body {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 0;
    background-color: var(--ui-bg-panel, #2b2b2b);
}

.props-empty-state {
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    color: #777777;
    height: 100%;
}

.props-empty-state i {
    font-size: 32px;
    opacity: 0.5;
}

.props-empty-title {
    font-size: 13px;
    font-weight: 600;
    color: #aaaaaa;
    margin: 0;
}

.props-empty-desc {
    font-size: 11.5px;
    line-height: 1.45;
    color: #777777;
    margin: 0;
}

.props-panels-host {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    padding-bottom: 40px;
}

.props-panels-host .dropdown-panel {
    display: none !important;
    position: static !important;
    width: 100% !important;
    max-height: none !important;
    height: auto !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow-y: visible !important;
    color: #ffffff;
    z-index: 1 !important;
}

.props-panels-host .dropdown-panel.active-section {
    display: block !important;
}

/* Bal oldalsávban egyáltalán ne jelenjenek meg szerkesztett nézet fülek */
.layers-sidebar .panel-device-switcher-section:not(.layers-device-header),
.sidebar-props-body .panel-device-switcher-section,
.props-panels-host .panel-device-switcher-section,
.dropdown-panel .panel-device-switcher-section,
.panel-device-pills {
    display: none !important;
}

/* Amikor a Bal menü nyitva van, tolja el a munkaterületet és a minta képernyőt a fennmaradó hely közepére (előnézetben soha) */
body:not(.preview-mode):has(#layersSidebar.open) .workspace,
body:not(.preview-mode) .editor-container:has(.layers-sidebar.open) .workspace {
    margin-left: 420px !important;
    width: calc(100% - 420px) !important;
}

.sidebar-header { 
    display: none !important;
}

.layers-device-header {
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    box-sizing: border-box !important;
    padding: 20px !important;
    border-radius: 0 !important;
    background: var(--ui-bg-panel, #262626) !important;
    border-bottom: 1px solid var(--ui-border-subtle, #333333) !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex-shrink: 0 !important;
}

.layers-device-header .panel-device-pills {
    margin-top: 6px;
    background: var(--ui-bg-base, #1e1e1e) !important;
    border: 1px solid var(--ui-border-default, #3f3f3f) !important;
}

.layers-device-header .panel-device-pill.active,
.panel-device-pill.active {
    background: var(--primary-color) !important;
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 6px rgba(52, 106, 243, 0.45) !important;
}

.layers-device-header .panel-device-pill.active *,
.panel-device-pill.active * {
    color: #ffffff !important;
}

.save-toolbar-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: var(--primary-light, rgba(52, 106, 243, 0.18)) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(52, 106, 243, 0.45) !important;
    border-radius: 6px !important;
    padding: 6px 13px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
}

.save-toolbar-btn:hover {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 2px 8px rgba(52, 106, 243, 0.45) !important;
}

.reset-layer-orders-btn {
    background: transparent;
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: var(--color-warning, #f59e0b);
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.reset-layer-orders-btn:hover {
    background: rgba(245, 158, 11, 0.15);
    border-color: var(--color-warning, #f59e0b);
    color: #fcd34d;
}

.sidebar-content {
    padding: 8px 10px;
    overflow-y: auto;
    overflow-y: overlay;
    flex: 1;
    background-color: var(--ui-bg-panel, #262626);
}

/* --- LETISZTULT FASTRUKTÚRA A RÉTEGEKHEZ (TISZTA, ÁGRAJZ NÉLKÜL, BECSUKHATÓ ÉS HALVÁNY KÉK HOVERREL) --- */
.layers-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 28px;
}
.layer-node {
    list-style: none;
    position: relative;
    display: flex;
    flex-direction: column;
}
.layer-tree-branch {
    list-style: none;
    padding-left: 14px;
    margin-left: 2px;
    border-left: none !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 2px;
    margin-bottom: 2px;
    position: relative;
    border-radius: 6px;
    transition: background-color 0.15s ease;
}
.layer-tree-branch > .layer-node::before {
    display: none !important;
}

/* Becsukott ágak elrejtése */
.layer-node.is-collapsed > .layer-tree-branch {
    display: none !important;
}
.layer-node.is-collapsed > .layer-item .layer-toggle-btn i {
    transform: rotate(-90deg);
}

.layer-item {
    padding: 6px 10px;
    min-height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    line-height: 1.3;
    color: var(--ui-text-secondary, #b3b3b3);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    border: none;
    background-color: transparent;
    position: relative;
}

/* Alapértelmezetten nincs háttér a szinteknél, színek a főmenühöz hangolva */
.layer-item.level-0,
.layer-item.level-1 {
    font-weight: 600;
    color: var(--ui-text-primary, #ffffff);
}
.layer-item.level-2 {
    font-weight: 500;
    color: var(--ui-text-secondary, #b3b3b3);
}
.layer-item.level-3 {
    font-weight: 400;
    color: var(--ui-text-muted, #7a7a7a);
}

/* 1. Az aktív elemnek NEM kell hover, megőrzi a tiszta főkék színét */
.layer-item.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 500;
}
.layer-item.active:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
}
.layer-item.active .layer-toggle-btn {
    color: #ffffff !important;
}
.layer-item.active .layer-toggle-btn:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.2) !important;
}
.layer-item.active .layer-item-badge {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.22) !important;
}
.layer-item.active .layer-item-content i,
.layer-item.active .layer-menu-trigger-btn {
    color: #ffffff !important;
}

/* 2. CSAK a közvetlenül egér alatti (onmouse) elem kap hover színt (ha nem aktív) */
.layer-item:hover:not(.active) {
    background-color: rgba(52, 106, 243, 0.22) !important;
    color: #ffffff !important;
}

/* 3. És alatta EGYETLEN összefüggő halványabb kék mező minden, ami alá tartozik */
/*    Szülő felé NEM terjed a hover, és NINCS padding-változás, így a sorok egyáltalán nem tolódnak szét */
.layer-item:hover + .layer-tree-branch {
    background-color: rgba(52, 106, 243, 0.08);
}

.layer-item.has-order-override {
    box-shadow: inset 3px 0 0 var(--color-warning, #f59e0b);
}
.layer-item.is-dragging-layer {
    opacity: 0.35 !important;
    outline: 1px dashed var(--primary-color) !important;
}

/* Drag and Drop: tiszta 2px kék vonal az elemek KÖZÖTT */
.layer-item.drag-over-top {
    border-top: none !important;
}
.layer-item.drag-over-top::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 4px;
    right: 4px;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(52, 106, 243, 0.8);
    border-radius: 2px;
    z-index: 10;
    pointer-events: none;
}

.layer-item.drag-over-bottom {
    border-bottom: none !important;
}
.layer-item.drag-over-bottom::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 4px;
    right: 4px;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px rgba(52, 106, 243, 0.8);
    border-radius: 2px;
    z-index: 10;
    pointer-events: none;
}

/* Drag and Drop: Ebbe a konténerbe kerülés (nesting / reparenting) */
.layer-item.drag-over-into {
    background: rgba(52, 106, 243, 0.22) !important;
    outline: 1.5px dashed #346af3 !important;
    outline-offset: -1.5px !important;
    border: none !important;
    box-shadow: inset 0 0 0 1px rgba(52, 106, 243, 0.3) !important;
    color: #ffffff !important;
    position: relative;
}
.layer-item.drag-over-into::after {
    content: "↳";
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    color: #60a5fa;
    background: #1e293b;
    border: 1px solid rgba(96, 165, 250, 0.45);
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    pointer-events: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    z-index: 10;
}

/* Becsukás / Kinyitás nyíl gomb és távtartó */
.layer-toggle-btn {
    background: transparent;
    border: none;
    color: #7e8499;
    width: 16px;
    height: 16px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 3px;
    margin-right: 4px;
    padding: 0;
    transition: color 0.15s ease, background 0.15s ease;
    flex-shrink: 0;
}
.layer-toggle-btn i {
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.layer-toggle-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
}
.layer-toggle-spacer {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin-right: 4px;
    flex-shrink: 0;
}

.layer-item-content {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

/* Átnevezés (két lassú kattintással) */
.layer-name-text {
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 3px;
    transition: background-color 0.12s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.layer-name-text.is-editing-name {
    outline: 1.5px solid #60a5fa !important;
    background-color: #383d4a !important;
    color: #ffffff !important;
    cursor: text !important;
    user-select: text !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.layer-item.active .layer-name-text.is-editing-name {
    background-color: rgba(255, 255, 255, 0.25) !important;
    outline: 1.5px solid #ffffff !important;
}

.layer-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    position: relative;
}

/* Három pont-ikon hamburger menü */
.layer-menu-trigger-btn {
    background: transparent;
    border: none;
    color: #888888;
    width: 22px;
    height: 22px;
    font-size: 13px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.layer-item:hover .layer-menu-trigger-btn,
.layer-item.active .layer-menu-trigger-btn,
.layer-menu-trigger-btn.open {
    opacity: 1;
    color: #ffffff;
}
.layer-menu-trigger-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.layer-context-popup {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    background: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 5px;
    min-width: 154px;
    z-index: 1000;
    display: none;
    flex-direction: column;
    gap: 2px;
}
.layer-context-popup.open {
    display: flex;
}
.layer-context-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    font-size: 12px;
    color: #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}
.layer-context-item i {
    font-size: 13px;
    width: 14px;
    text-align: center;
    color: #aaaaaa;
}
.layer-context-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.layer-context-item:hover i {
    color: #ffffff;
}
.layer-context-item.layer-delete-action:hover,
.layer-context-item.item-danger:hover {
    background-color: var(--color-danger, #ef4444) !important;
    color: #ffffff !important;
}
.layer-context-item.layer-delete-action:hover i,
.layer-context-item.item-danger:hover i {
    color: #ffffff !important;
}

.layer-item-badge {
    font-size: 9.5px;
    background: rgba(255, 255, 255, 0.08);
    padding: 1px 5px;
    border-radius: 3px;
    color: #aaaaaa;
    line-height: 1.2;
}

/* Nézetenként elrejtett elem a szerkesztő vásznon */
.editable-box.is-device-hidden {
    display: none !important;
}

/* Nézetenként elrejtett réteg a rétegfában */
.layer-item.layer-is-hidden {
    opacity: 0.48;
}
.layer-item.layer-is-hidden .layer-name-text {
    text-decoration: line-through;
    color: #94a3b8;
}

/* Szem ikon gomb a rétegfában */
.layer-vis-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 11px;
    opacity: 0.65;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.layer-item:hover .layer-vis-btn,
.layer-vis-btn.is-hidden {
    opacity: 1;
}
.layer-vis-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}
.layer-vis-btn.is-hidden {
    color: #f59e0b;
}

.workspace { 
    flex-grow: 1; 
    background-color: #e5e5e5; 
    overflow-y: auto; 
    overflow-x: hidden;
    width: 100%; 
    padding: 30px 0 80px 0; 
    position: relative; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    transition: margin-left 0.35s cubic-bezier(0.16, 1, 0.3, 1), width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Natív görgetősáv elrejtése a munkaterületen, hogy a tartalom 100%-ban kifusson a széléig háttérsáv nélkül */
.workspace::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Lebegő egyedi scrollbar fogantyú a munkaterület felett (a tartalom teljesen alá fut ki) */
.workspace-floating-scrollbar {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 16px;
    pointer-events: none;
    z-index: 950;
    display: flex;
    justify-content: flex-end;
}

.workspace-floating-thumb {
    position: absolute;
    top: 0;
    right: 4px;
    width: 6px;
    min-height: 36px;
    background-color: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    border: none !important;
    pointer-events: auto;
    cursor: default;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: width 0.15s ease, right 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.workspace-floating-thumb:hover,
.workspace-floating-thumb.is-dragging,
.workspace-floating-thumb.is-near {
    width: 9px;
    right: 3px;
    background-color: rgba(0, 0, 0, 0.65);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.empty-state { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: flex-start;
    padding-top: 45px;
    padding-bottom: 80px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
    gap: 8px; 
    text-align: center; 
    user-select: none; 
}
.empty-state h2 { color: #222; font-size: 18px; font-weight: 600; }
.empty-subtitle { color: #666; font-size: 13px; margin-bottom: 8px; }
.empty-add-btn { 
    background-color: #ffffff; 
    color: #222; 
    border: 1px solid #ccc; 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); 
}

/* --- TARTALMI SZERKESZTŐ ÉS HIERARCHIA --- */
.content-canvas {
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 100%;
    flex-shrink: 0;
    overflow: visible !important;
    container-type: inline-size;
    container-name: canvas;
    transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.content-canvas.view-xl,
.content-canvas:not(.view-desktop):not(.view-tablet):not(.view-mobile) {
    max-width: 100% !important;
    width: 100% !important;
    min-height: 100% !important;
    height: auto !important;
    background: #ffffff;
    flex-shrink: 0 !important;
    margin: 0 auto !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* XL nézetben a munkaterület szürke sávja és margója eltűnik, tiszta teljesvásznas weboldal élményt nyújtva */
.workspace.workspace-xl-active,
.workspace:has(.content-canvas.view-xl),
.workspace:has(.content-canvas:not(.view-desktop):not(.view-tablet):not(.view-mobile)) {
    background-color: #ffffff !important;
    padding: 0 !important;
    align-items: center !important;
}

.content-canvas.view-desktop {
    max-width: 1280px !important;
    width: 100% !important;
    min-height: 800px;
    height: auto !important;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.35);
    border: 10px solid #202020;
    padding: 0 !important;
    margin: 20px auto 60px auto !important;
    overflow: visible !important;
    box-sizing: border-box;
}

.content-canvas.view-mobile {
    max-width: 420px !important;
    width: 420px !important;
    min-height: 750px;
    height: auto !important;
    background: #ffffff;
    border-radius: 28px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.35);
    border: 12px solid #202020;
    padding: 0 !important;
    margin: 20px auto 60px auto !important;
    overflow: visible !important;
    box-sizing: border-box;
}

.content-canvas.view-mobile .columns-grid:not(.auto-grid-container) {
    display: flex !important;
    flex-direction: column !important;
    max-width: 100% !important;
}

.content-canvas.view-mobile .columns-grid:not(.auto-grid-container) > .builder-column {
    width: 100% !important;
    grid-column: span 12 !important;
}

.content-canvas.view-mobile .auto-grid-container {
    grid-template-columns: 1fr !important;
}

.content-canvas.view-mobile .builder-block {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.content-canvas.view-mobile .builder-block.block-width-full-bg > .columns-grid,
.content-canvas.view-tablet .builder-block.block-width-full-bg > .columns-grid {
    max-width: 100% !important;
}

.content-canvas.view-tablet {
    max-width: 768px !important;
    width: 768px !important;
    min-height: 800px;
    height: auto !important;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 50px rgba(0,0,0,0.35);
    border: 10px solid #202020;
    padding: 0 !important;
    margin: 20px auto 60px auto !important;
    overflow: visible !important;
    box-sizing: border-box;
}

.content-canvas.view-tablet .auto-grid-container {
    grid-template-columns: repeat(min(var(--auto-grid-cols, 2), 2), minmax(0, 1fr)) !important;
}

.content-canvas.view-tablet .builder-block {
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.content-canvas.view-tablet .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 1"]:not([style*="span 10"]):not([style*="span 11"]):not([style*="span 12"]),
.content-canvas.view-tablet .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 2"],
.content-canvas.view-tablet .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 3"] {
    grid-column: span 6 !important;
}

.content-canvas.view-tablet .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 4"]:nth-child(1),
.content-canvas.view-tablet .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 4"]:nth-child(2) {
    grid-column: span 6 !important;
}

.content-canvas.view-tablet .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 4"]:nth-child(3):last-child {
    grid-column: span 12 !important;
}

/* --- ÉLŐ RESZPONZÍV ABLAK-ÖSSZEHÚZÁS (CONTAINER ÉS MEDIA QUERY-K) --- */
@container canvas (max-width: 768px) {
    .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 1"]:not([style*="span 10"]):not([style*="span 11"]):not([style*="span 12"]),
    .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 2"],
    .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 3"] {
        grid-column: span 6 !important;
    }
    .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 4"]:nth-child(1),
    .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 4"]:nth-child(2) {
        grid-column: span 6 !important;
    }
    .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 4"]:nth-child(3):last-child {
        grid-column: span 12 !important;
    }
    .auto-grid-container {
        grid-template-columns: repeat(min(var(--auto-grid-cols, 2), 2), minmax(0, 1fr)) !important;
    }
}

@container canvas (max-width: 640px) {
    .columns-grid:not(.auto-grid-container) {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    .columns-grid:not(.auto-grid-container) > .builder-column {
        width: 100% !important;
        grid-column: span 12 !important;
        max-width: 100% !important;
    }
    .auto-grid-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

@media screen and (max-width: 768px) {
    .content-canvas:not(.view-mobile) .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 1"]:not([style*="span 10"]):not([style*="span 11"]):not([style*="span 12"]),
    .content-canvas:not(.view-mobile) .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 2"],
    .content-canvas:not(.view-mobile) .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 3"] {
        grid-column: span 6 !important;
    }
    .content-canvas:not(.view-mobile) .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 4"]:nth-child(1),
    .content-canvas:not(.view-mobile) .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 4"]:nth-child(2) {
        grid-column: span 6 !important;
    }
    .content-canvas:not(.view-mobile) .columns-grid:not(.auto-grid-container) > .builder-column:not([data-style-tablet*="grid-column"]):not([data-style-md*="grid-column"])[style*="span 4"]:nth-child(3):last-child {
        grid-column: span 12 !important;
    }
    .content-canvas:not(.view-mobile) .auto-grid-container {
        grid-template-columns: repeat(min(var(--auto-grid-cols, 2), 2), minmax(0, 1fr)) !important;
    }
}

@media screen and (max-width: 640px) {
    .content-canvas .columns-grid:not(.auto-grid-container) {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }
    .content-canvas .columns-grid:not(.auto-grid-container) > .builder-column {
        width: 100% !important;
        grid-column: span 12 !important;
        max-width: 100% !important;
    }
    .content-canvas .auto-grid-container {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* =========================================================================
   VÁGÓLAP KIVÁGÁS (CUT) ÉS KONTEXTUS MENÜ (JOBB EGÉRGOMB) STÍLUSOK
   ========================================================================= */
.is-clipboard-cut {
    opacity: 0.42 !important;
    outline: 2px dashed #f59e0b !important;
    outline-offset: 3px !important;
    transition: opacity 0.2s ease, outline 0.2s ease;
}
.layer-item.is-clipboard-cut {
    opacity: 0.42 !important;
    border: 1px dashed #f59e0b !important;
    background: rgba(245, 158, 11, 0.12) !important;
}

.evergo-context-menu {
    position: fixed;
    z-index: 10000;
    min-width: 220px;
    background: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.16);
    display: none;
    flex-direction: column;
    gap: 2px;
    color: #e4e4e7;
    font-size: 12px;
    user-select: none;
    backdrop-filter: blur(10px);
}
.evergo-context-menu.open {
    display: flex;
}
.context-menu-header {
    padding: 6px 10px 4px 10px;
    font-size: 10.5px;
    font-weight: 600;
    color: #888888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.context-menu-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 4px 0;
}
.context-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
    color: #cccccc;
}
.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.context-menu-item.is-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}
.context-menu-item i {
    font-size: 13px;
    width: 16px;
    text-align: center;
    color: #aaaaaa;
}
.context-menu-item:hover i {
    color: #ffffff;
}
.context-menu-item span:first-of-type {
    flex: 1;
}
.context-menu-shortcut {
    font-size: 10px;
    color: #777777;
    font-family: inherit;
    font-weight: 500;
    letter-spacing: 0.2px;
}
.context-menu-item:hover .context-menu-shortcut {
    color: #bbbbbb;
}
.context-menu-item.item-danger:hover {
    background: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
}
.context-menu-item.item-danger:hover i {
    color: #ef4444;
}

/* --- EVERGO FLOAT: ALOLDAL KEZELŐ ÉS GYORSVÁLTÓ STÍLUSOK --- */
.page-switcher-wrapper {
    position: relative;
}

.page-switcher-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #252525;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 6px 12px;
    color: #ffffff;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.page-switcher-btn:hover {
    background: #2d2d2d;
    border-color: rgba(255, 255, 255, 0.22);
}

.page-switcher-btn.open,
.page-switcher-wrapper:has(.page-switcher-dropdown.open) .page-switcher-btn {
    background: rgba(52, 106, 243, 0.15);
    border-color: var(--primary-color);
}

.page-switcher-icon {
    font-size: 13px;
    color: var(--primary-color);
}

.page-switcher-title {
    font-weight: 600;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.page-switcher-slug {
    font-size: 11px;
    color: #8e92a4;
    font-weight: 400;
}

.page-switcher-arrow {
    font-size: 10px;
    color: #8e92a4;
    transition: transform 0.2s ease;
}

.page-switcher-wrapper:has(.page-switcher-dropdown.open) .page-switcher-arrow {
    transform: rotate(180deg);
}

.page-switcher-dropdown {
    width: 350px !important;
    max-height: calc(85vh - 50px);
    overflow-y: auto;
    overflow-x: hidden !important;
    background-color: #2b2b2b !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.16) !important;
    backdrop-filter: blur(10px) !important;
    padding: 10px !important;
    z-index: 1005 !important;
}

.page-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-dropdown-header span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.6px;
}

.page-dropdown-add-btn,
.sidebar-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.1s ease;
}

.page-dropdown-add-btn:hover,
.sidebar-btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.page-dropdown-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 320px;
    overflow-y: auto;
    overflow-x: hidden !important;
    padding: 2px 0;
}

.page-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    user-select: none;
}

.page-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
}

.page-dropdown-item.active {
    background: rgba(52, 106, 243, 0.18) !important;
    border-color: var(--primary-color) !important;
}

.page-dropdown-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.page-dropdown-item-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.page-dropdown-item-slug {
    font-size: 11px;
    color: #8e92a4;
    font-family: monospace;
    margin-top: 1px;
}

.page-badge-home {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 3px;
    padding: 1px 5px;
}

/* BAL OLDALSÁV: ALOLDALAK NÉZET */
.sidebar-pages-header {
    height: 78px !important;
    min-height: 78px !important;
    max-height: 78px !important;
    box-sizing: border-box !important;
    padding: 20px !important;
    border-bottom: 1px solid var(--ui-border-subtle, #333333) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    background: var(--ui-bg-panel, #2b2b2b) !important;
    flex-shrink: 0 !important;
}

.sidebar-pages-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background-color: var(--ui-bg-panel, #2b2b2b);
}

.sidebar-page-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #242424;
    border: 1px solid rgba(255, 255, 255, 0.07);
    cursor: pointer;
    transition: all 0.15s ease;
}

.sidebar-page-card:hover {
    background: #2a2a2a;
    border-color: rgba(255, 255, 255, 0.16);
}

.sidebar-page-card.active {
    background: rgba(52, 106, 243, 0.12);
    border-color: var(--primary-color);
}

.sidebar-page-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-page-card-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sidebar-page-card-slug {
    font-size: 11px;
    color: #8e92a4;
    font-family: monospace;
}

.sidebar-page-card-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.page-icon-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: #8e92a4;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.12s ease;
}

.page-icon-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.page-icon-btn.danger:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.sidebar-page-settings-card {
    margin: 12px;
    padding: 12px;
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
}

.page-settings-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-settings-close-btn {
    background: transparent;
    border: none;
    color: #8e92a4;
    cursor: pointer;
    font-size: 12px;
}

.page-settings-close-btn:hover {
    color: #ffffff;
}

.page-settings-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.page-field-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    color: #8e92a4;
    letter-spacing: 0.4px;
}

.page-settings-input,
.page-settings-textarea {
    width: 100%;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    padding: 6px 8px;
    color: #ffffff;
    font-size: 12px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.page-settings-input:focus,
.page-settings-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.page-settings-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: 4px;
}

.page-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    background: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    cursor: pointer;
    transition: all 0.12s ease;
}

.page-action-btn:hover {
    background: #333333;
    border-color: rgba(255, 255, 255, 0.2);
}

.page-action-btn.page-action-danger:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: #ef4444;
    color: #fca5a5;
}

/* ==========================================================================
   EVERGO FLOAT – LEBEGŐ MODÁLIS ABLAKOK (NEW PAGE & PAGE SETTINGS MODAL)
   ========================================================================== */

.float-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: floatModalFadeIn 0.18s ease-out;
}

@keyframes floatModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.float-modal-dialog {
    width: 480px;
    max-width: 95vw;
    background: #202020;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: floatModalSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes floatModalSlideUp {
    from { transform: translateY(16px) scale(0.98); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.float-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #252525;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.float-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.3px;
}

.float-modal-title i {
    font-size: 16px;
    color: var(--primary-color);
}

.float-modal-close {
    background: transparent;
    border: none;
    color: #8e92a4;
    font-size: 15px;
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.float-modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.float-modal-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: 72vh;
    overflow-y: auto;
}

/* Típus választó gombok */
.float-type-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 4px;
}

.float-type-btn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background: #181818;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.float-type-btn:hover {
    background: #242424;
    border-color: rgba(255, 255, 255, 0.2);
}

.float-type-btn.active {
    background: rgba(52, 106, 243, 0.14);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

.float-type-btn i {
    font-size: 18px;
    color: #8e92a4;
    margin-top: 2px;
    flex-shrink: 0;
}

.float-type-btn.active i {
    color: var(--primary-color);
}

.float-type-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.float-type-desc {
    font-size: 10.5px;
    color: #8e92a4;
    line-height: 1.35;
}

.float-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.float-field-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #8e92a4;
    letter-spacing: 0.5px;
}

.float-field-hint {
    font-size: 10.5px;
    color: #6b7280;
    margin-top: 2px;
}

.float-modal-input,
.float-modal-select,
.float-modal-textarea {
    width: 100%;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 8px 10px;
    color: #ffffff;
    font-size: 13px;
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.float-modal-input:focus,
.float-modal-select:focus,
.float-modal-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 106, 243, 0.25);
    background: #1b1b1b;
}

.float-modal-input:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    background: #141414;
}

.float-input-with-prefix {
    display: flex;
    align-items: center;
    background: #181818;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    overflow: hidden;
}

.float-input-with-prefix:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 106, 243, 0.25);
}

.float-input-prefix {
    padding: 8px 10px;
    font-size: 12px;
    color: #6b7280;
    background: #141414;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    user-select: none;
    white-space: nowrap;
}

.float-input-with-prefix .float-modal-input {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}

.float-settings-accordion {
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-settings-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #c0c4d6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.float-settings-section-title i {
    color: var(--primary-color);
    font-size: 13px;
}

.float-modal-actions-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
}

.float-action-pill {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #2b2b2b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5e7eb;
    font-size: 11.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.float-action-pill:hover {
    background: #363636;
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.float-action-pill.danger:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    color: #fca5a5;
}

.float-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 20px;
    background: #252525;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.float-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    border: none;
}

.float-modal-btn.secondary {
    background: #303030;
    color: #cccccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.float-modal-btn.secondary:hover {
    background: #3a3a3a;
    color: #ffffff;
}

.float-modal-btn.primary {
    background: var(--primary-color);
    color: #ffffff;
}

.float-modal-btn.primary:hover {
    background: #2b57c7;
}

/* ==========================================================================
   OLDALAK FASTRUKTÚRA (RÉTEGEKKEL AZONOS MEGJELENÉS) & AKTÍV OLDAL SÁV
   ========================================================================== */

.sidebar-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #2b2b2b;
    color: #d1d5db;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.sidebar-btn-secondary:hover {
    background: #363636;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
}

.page-tree-action-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    opacity: 0;
    transition: opacity 0.12s ease, background-color 0.12s ease, color 0.12s ease;
    flex-shrink: 0;
}

.layer-item:hover .page-tree-action-btn,
.layer-item.active .page-tree-action-btn {
    opacity: 1;
}

.layer-item.active .page-tree-action-btn {
    color: rgba(255, 255, 255, 0.9) !important;
}

.page-tree-action-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.page-tree-action-btn.danger:hover {
    background: rgba(239, 68, 68, 0.28) !important;
    color: #fca5a5 !important;
}

.layer-item.is-folder-node:not(.active):not(:hover) {
    color: #e2e8f0;
}

.layer-item.is-folder-node:not(.active) .layer-item-content > i {
    color: #60a5fa;
}

.layer-item.selected-folder {
    background-color: rgba(96, 165, 250, 0.18) !important;
    color: #ffffff !important;
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.45);
}

.layer-item.is-home-node:not(.active) .layer-item-content > i {
    color: #38bdf8;
}

.pages-tree-list .layer-item.active {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    font-weight: 600;
    box-shadow: none !important;
}

.pages-tree-list .layer-item.active * {
    color: #ffffff !important;
}

.pages-tree-list .layer-item.active .layer-item-badge {
    background: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

.layers-active-page-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    box-sizing: border-box;
    margin-bottom: 0 !important;
    background: rgba(52, 106, 243, 0.14);
    border: 1px solid rgba(52, 106, 243, 0.32);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    width: 100%;
}

.layers-active-page-bar:hover {
    background: rgba(52, 106, 243, 0.22);
    border-color: rgba(52, 106, 243, 0.5);
}

.props-active-box-bar {
    width: 100%;
    box-sizing: border-box;
    height: 38px;
    min-height: 38px;
    max-height: 38px;
    background: rgba(52, 106, 243, 0.14);
    border: 1px solid rgba(52, 106, 243, 0.32);
    border-radius: 8px;
}
.props-active-box-bar.no-selection {
    opacity: 0.85;
    cursor: default;
    background: rgba(52, 106, 243, 0.14);
    border: 1px solid rgba(52, 106, 243, 0.32);
}
.props-active-box-bar.no-selection:hover {
    background: rgba(52, 106, 243, 0.14);
    border-color: rgba(52, 106, 243, 0.32);
}
.props-parent-nav-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    color: #94a3b8;
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    flex-shrink: 0;
}
.props-active-box-bar:not(.no-selection):hover .props-parent-nav-btn.has-parent {
    opacity: 0.9;
    pointer-events: auto;
    color: #60a5fa;
}
.props-parent-nav-btn:hover {
    opacity: 1 !important;
    background-color: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.layers-active-page-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
    min-width: 0;
    overflow: hidden;
}

.layers-active-page-info i {
    color: #3b82f6;
    font-size: 13px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.layers-active-page-slug {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    white-space: nowrap;
}

.layers-active-page-switch {
    font-size: 10.5px;
    font-weight: 600;
    color: #60a5fa;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.page-dropdown-folder-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px 4px 10px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    user-select: none;
    margin-top: 2px;
}

