/* Language Switcher Styles */
.language-switcher {
    position: relative;
    display: inline-block;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lang-current:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.lang-current .arrow {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.lang-current:hover .arrow {
    transform: translateY(2px);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.lang-dropdown a:hover {
    background-color: #f9fafb;
}

.lang-dropdown a.active {
    background-color: #eff6ff;
    color: #2563eb;
}

.lang-dropdown a:first-child {
    border-radius: 8px 8px 0 0;
}

.lang-dropdown a:last-child {
    border-radius: 0 0 8px 8px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .lang-current {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .lang-dropdown {
        min-width: 150px;
    }
    
    .lang-dropdown a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Backend specific styles */
.backend-layout .language-switcher {
    margin-right: 16px;
}

.backend-layout .lang-current {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.backend-layout .lang-current:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .lang-current {
        background: #1f2937;
        border-color: #374151;
        color: #f9fafb;
    }
    
    .lang-current:hover {
        background: #374151;
        border-color: #4b5563;
    }
    
    .lang-dropdown {
        background: #1f2937;
        border-color: #374151;
    }
    
    .lang-dropdown a {
        color: #f9fafb;
    }
    
    .lang-dropdown a:hover {
        background-color: #374151;
    }
    
    .lang-dropdown a.active {
        background-color: #1e3a8a;
        color: #93c5fd;
    }
}
