/* Language switcher in cabinet header — same visual language as main navbar */
.nk-header-tools .navbar-language-switcher {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.nk-header-tools .navbar-icon-btn {
    background: none;
    border: none;
    color: #9e9e9e;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.nk-header-tools .navbar-icon-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nk-header-tools .language-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.nk-header-tools .language-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}

.nk-header-tools .language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #312121;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 10001;
    overflow: hidden;
}

.nk-header-tools .navbar-language-switcher:hover .language-dropdown,
.nk-header-tools .navbar-language-switcher.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nk-header-tools .language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nk-header-tools .language-option:last-child {
    border-bottom: none;
}

.nk-header-tools .language-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nk-header-tools .language-option .language-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.nk-header-tools .language-option span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .nk-header-tools .language-icon {
        width: 20px;
        height: 20px;
    }

    .nk-header-tools .language-dropdown {
        min-width: 120px;
    }

    .nk-header-tools .language-option {
        padding: 10px 12px;
        font-size: 13px;
    }
}
