#translation-button {
    position: fixed;
    top: 10px;
    right: 24px;
    padding: 10px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: #f8fafc;
    background: #1e40af;
    border-radius: 999px;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 14px rgba(30,64,175,0.5);
    user-select: none;
    transition: background 0.15s, box-shadow 0.15s;
}

#translation-button:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 18px rgba(30,64,175,0.6);
}

#translation-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    height: 360px;
    overflow-y: auto;
    min-width: 200px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    color: #334155;
    font-size: 0.85rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#translation-dropdown ul {
    margin: 0;
    padding: 0.4rem;
    list-style: none;
}

#translation-dropdown li {
    margin: 0;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s;
}

#translation-dropdown li:hover {
    background: #eff6ff;
    color: #1e40af;
}

.language_main_name_str_dropdown {
    font-size: 0.85rem;
    font-weight: 500;
    color: inherit;
}

.language_native_name_str_dropdown {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 1px;
}

#translation-dropdown li:hover .language_native_name_str_dropdown {
    color: #60a5fa;
}
