#text-scale-control {
    display: none;
    position: fixed;
    z-index: 2500;
    background: white;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-radius: 18px;
    width: 94%;
    max-width: 500px;
    padding: 15px;
    border: 1px solid var(--border-color);
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    max-height: 80%;
    flex-direction: column;
}

#language-section-container {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Removed #scaleDimmer from here, moved to base.css */

.scale-input-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

#scaleRange {
    flex-grow: 1;
    cursor: pointer;
}

.scale-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.settings-section-divider {
    height: 1px;
    background: var(--border-color);
    margin: 5px 0;
}

.language-selector-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max height: 40%;
}

#added-languages-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.language-item-row {
    display: flex;
    flex-direction: column;
}

.current-lang-display {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #eee;
}

.current-lang-display:hover {
    background: #8787871f;
}

.voice-list-container {
    display: none;
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 5px;
}

.voice-list-container.show {
    display: block;
}

.voice-option {
    padding: 10px;
    font-size: 13px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.voice-option:last-child {
    border-bottom: none;
}

.voice-option:hover {
    background: #f0f7ff;
}

.voice-option.active {
    color: var(--primary-color);
    font-weight: bold;
    background: #f0f7ff;
}

.add-lang-btn {
    margin-top: 8px;
    padding: 8px;
    background: none;
    border: 1px dashed var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.add-lang-btn:hover {
    background: #f0f7ff;
}

.full-lang-list {
    display: none;
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: white;
    z-index: 2501;
    border-radius: 18px;
    padding: 15px;
    flex-direction: column;
}

.full-lang-list.show {
    display: flex;
}

.lang-list-content {
    overflow-y: auto;
    flex-grow: 1;
}

.lang-item {
    padding: 12px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    font-size: 14px;
}

.lang-item:hover {
    background: #8787871f;
}
