/* Language Switcher Styles */
.language-switcher {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 0.5rem;
    padding: 0.3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
}

.lang-toggle {
    display: flex;
    gap: 0.3rem;
    justify-content: flex-start;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 45px;
    justify-content: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: #ef7b00;
    color: #fff;
    border-color: #ef7b00;
    box-shadow: 0 2px 8px rgba(239, 123, 0, 0.3);
}

.lang-btn.active:hover {
    background: #d6650f;
    border-color: #d6650f;
    transform: translateY(-1px);
}

.flag-icon {
    font-size: 0.85rem;
    line-height: 1;
}

.lang-text {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .language-switcher {
        bottom: 0.5rem;
        right: 0.5rem;
        padding: 0.25rem;
    }

    .lang-btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.7rem;
        min-width: 40px;
    }

    .flag-icon {
        font-size: 0.75rem;
    }

    .lang-text {
        font-size: 0.65rem;
    }
}

/* Alternative sidebar position for specific layouts */
.language-switcher.sidebar {
    position: static;
    top: auto;
    right: auto;
    z-index: auto;
    background: transparent;
    border-radius: 0;
    padding: 0.75rem 0;
    backdrop-filter: none;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.language-switcher.sidebar .lang-toggle {
    justify-content: center;
}

/* Integration with existing sidebar styles */
.sidebar .language-switcher {
    border-color: rgba(255, 255, 255, 0.05);
}

.sidebar .lang-btn {
    font-family: inherit;
}

/* Dark theme adjustments */
.layout.dark .language-switcher {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.1);
}

.layout.dark .lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
    color: rgba(0, 0, 0, 0.8);
}

.layout.dark .lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #000;
}

/* Animation for switching */
@keyframes languageSwitch {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.lang-btn.switching {
    animation: languageSwitch 0.3s ease;
}