/* 1. FORCE HIDE GOOGLE BAR & POPUPS */
.goog-te-banner-frame, .goog-te-banner, #goog-gt-tt, .goog-te-balloon-frame, .skiptranslate {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0 !important;
    position: static !important;
}

/* 2. TRANSLATOR UI */
.translator-wrapper {
    width: 200px; /* Adjusted for navbar */
    position: relative;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.translator-input {
    border: 1px solid #82ae46;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    background: #82ae46;
    color: #fff !important;
    align-items: center;
    transition: all 0.3s ease;
    font-weight: 500;
}

.translator-input:hover {
    background: #82ae46;
    border-color: #82ae46;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(130, 174, 70, 0.3);
}

.translator-dropdown {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    width: 250px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 9999;
}

.search-box {
    padding: 10px;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    background: white;
}

.search-box input {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    outline: none;
    color: #333;
}

.language-list div {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
    transition: background 0.2s;
    color: #333;
}

.language-list div:hover {
    background: #f8f9fa;
    color: #1a73e8;
}

#selectedLang {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 8px;
}

/* Hide text-based arrow spans (fixes encoding issues like â–¼) */
.translator-input > span:last-child:not(#selectedLang) {
    display: none !important;
}

/* CSS-based dropdown arrow using Font Awesome (encoding-safe) */
.translator-input::after {
    content: "\f0d7"; /* Font Awesome fa-caret-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 12px;
    color: #fff;
    margin-left: 4px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
