.language-switch {
    position: relative;
    display: inline-block;
    margin: 0 15px;
}

.language-switch__toggle {
    display: flex;
    align-items: center;
    background: #f0f0f0;
    border-radius: 20px;
    padding: 4px;
    position: relative;
    width: 80px;
    height: 25px;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.language-switch__option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    position: relative;
    width: 50%;
}

.language-switch__option span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.language-switch__slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--primary-color);
    border-radius: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.language-switch__toggle .active span {
    color: white;
}

/* RTL Support */
html[dir="rtl"] .language-switch__slider {
    left: auto;
    right: 75px;
    transform: translateX(0);
}

html[dir="rtl"] .language-switch__option.active ~ .language-switch__slider {
    transform: translateX(-100%);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .language-switch__toggle {
        width: 70px;
    }
    
    .language-switch__option span {
        font-size: 0.8rem;
    }
} 