#lang-switcher {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 2000;
    display: flex;
    gap: 4px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 4px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

#lang-switcher button {
    border: 1px solid #3D6CEE;
    background: #fff;
    color: #3D6CEE;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 3px;
    cursor: pointer;
    min-width: 42px;
}

#lang-switcher button.active {
    background: #3D6CEE;
    color: #fff;
}

#lang-switcher button:hover {
    background: #00F;
    color: #fff;
    border-color: #00F;
}

html[lang="fa"] .appheadline h1,
html[lang="fa"] #welcome_test h2,
html[lang="fa"] #selecttest,
html[lang="fa"] #manual-container,
html[lang="fa"] .infoadjust,
html[lang="fa"] #infoalert > div,
html[lang="fa"] .but_welcome,
html[lang="fa"] #select_all,
html[lang="fa"] #select_none {
    direction: rtl;
    text-align: right;
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

html[lang="fa"] #welcome_test h2,
html[lang="fa"] .adjhead h2,
html[lang="fa"] #manual-container h2 {
    line-height: 1.4;
}

html[lang="fa"] #selecttest > div > div {
    direction: rtl;
}

html[lang="fa"] .checkbutton {
    float: left !important;
}

html[lang="fa"] .playbutton {
    margin-right: 0;
    margin-left: 50px;
}

html[lang="fa"] .button_manual {
    margin: 30px 0 0 4.5%;
}

html[lang="fa"] .button_starttest {
    float: left;
}

html[lang="fa"] #menutop,
html[lang="fa"] #menubot {
    direction: rtl;
    text-align: right;
}