/* Language Switcher Styles */
.lang-switcher-wrapper {
    position: relative;
    display: inline-block;
}
.lang-switcher-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    font-family: 'Tajawal', 'Roboto', sans-serif;
}
.lang-switcher-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
.lang-switcher-btn .material-icons {
    font-size: 1.1rem;
}
.lang-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 10000;
    min-width: 160px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 8px 0;
    margin-top: 6px;
    animation: langFadeIn 0.2s ease;
}
[dir="ltr"] .lang-dropdown-menu {
    right: auto;
    left: 0;
}
.lang-dropdown-menu.show {
    display: block;
}
@keyframes langFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}
.lang-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Tajawal', 'Roboto', sans-serif;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
}
[dir="ltr"] .lang-dropdown-item {
    text-align: left;
}
.lang-dropdown-item:hover {
    background: #f0f0ff;
}
.lang-dropdown-item.active {
    background: linear-gradient(135deg, #667eea22, #764ba222);
    color: #667eea;
    font-weight: 700;
}
.lang-dropdown-item .lang-flag {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}
.lang-dropdown-item .lang-name {
    flex: 1;
}
.lang-dropdown-item .lang-check {
    color: #667eea;
    font-size: 1rem;
}
/* Sidebar language switcher */
.sidebar-lang-switcher {
    padding: 10px 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 10px;
}
.sidebar-lang-switcher .lang-switcher-btn {
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 8px;
}
