
.editable-text {
    outline: 1px dashed #e53935;
    cursor: text;
    border-radius: 4px;
}


.lang-tabs {
    margin: 0;
    width: fit-content;
    display: inline-block;
    position: relative;
    z-index: 9 !important;
}

.tab-list {
    font-size: 14px;
    font-weight: 500;
    display: flex;
    list-style: none;
    border-bottom: 1px solid #ddd;
    padding: 0;
    margin: 0;
    letter-spacing: 1.05px;
}

.tab-list .tab {
    color: #000;
    line-height: 12px;
    padding: 6px 12px;
    cursor: pointer;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-left: 4px;
}

.tab-list .tab.active {
    background: #fff;
    font-weight: bold;
    border-bottom: 1px solid #fff;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}


.saved-toast {
    margin-left: 8px;
    font-size: 0.85rem;
    color: #28a745;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.saved-toast.visible {
    opacity: 1;
}


.saved-toast {
    padding: 2px 6px;
    background: #e6f9ed;
    border-radius: 4px;
    font-weight: 500;
}


/* ----------------------------------
   LANG TABS – LAYOUT STABILITY FIXES
   ---------------------------------- */

/* Prevent tab width changes when active */
.lang-tabs .tab-list {
    display: flex;
    flex-wrap: nowrap;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.lang-tabs .tab {
    flex: 0 0 auto; /* stop shrinking */
    white-space: nowrap; /* consistent width */
}

/* Prevent layout jump when switching panes */
.lang-tabs .tab-pane {
    min-height: 1.5em; /* reserve minimal space */
}

/* Keep inactive panes out of layout but measured */
.lang-tabs .tab-pane {
    position: relative;
    display: inline;
}

.lang-tabs .tab-pane:not(.active) {
    visibility: hidden;
    position: absolute;
    inset: 0;
}

.lang-tabs .tab-pane.active {
    visibility: visible;
    position: relative;
}

/* Stabilize inline editable content */
.editable-text {
    display: inline-block;
    min-height: 1em;
    width: 100%;
    z-index: 9999 !important;
}

/* Prevent "Saved!" text from pushing layout */
.saved-toast {
    position: absolute;
    white-space: nowrap;
    pointer-events: none;
}
