.language-switcher {
    position: relative;
    z-index: 1000;
    display: inline-block;
}

.language-switcher .language-btn {
    border: 1px solid #6c757d;
    background: #fff;
    color: #495057;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 100px;
    justify-content: center;
}

.language-switcher .language-btn:hover {
    background: #f8f9fa;
    border-color: #495057;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-switcher .language-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.25);
    color: #495057;
    background: #fff;
    border-color: #6c757d;
}

.language-switcher .language-btn:active {
    background: #e9ecef !important;
    border-color: #495057 !important;
    color: #495057 !important;
}

.language-switcher .flag {
    font-size: 16px;
    line-height: 1;
}

.language-switcher .lang-text {
    font-size: 13px;
    font-weight: 500;
}

.language-switcher .dropdown-menu {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 4px 0;
    min-width: 140px;
    margin-top: 4px;
}

.language-switcher .dropdown-item {
    padding: 8px 16px;
    color: #495057;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    text-decoration: none;
}

.language-switcher .dropdown-item:hover {
    background: #f8f9fa;
    color: #495057;
    transform: translateX(2px);
}

.language-switcher .dropdown-item:focus {
    background: #f8f9fa;
    color: #495057;
    outline: none;
}

.language-switcher .dropdown-item:active {
    background: #e9ecef;
    color: #495057;
}

.language-switcher .dropdown-item .flag {
    font-size: 16px;
}

.language-switcher .dropdown-item .lang-text {
    font-size: 13px;
}

/* Header integration */
.header .language-switcher {
    margin-left: 15px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-switcher .language-btn {
        padding: 4px 8px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .language-switcher .flag {
        font-size: 14px;
    }
    
    .language-switcher .lang-text {
        font-size: 11px;
    }
    
    .header .language-switcher {
        margin-left: 10px;
    }
}
