/* ===== CUSTOM LANGUAGE DROPDOWN CSS ===== */

/* Wrapper container */
.language-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

/* Dropdown menu container */
.language-dropdown-menu {
    position: absolute;
    top: 55px; /* Aligns with user-menu positioning */
    right: 0;
    width: 230px;
    background: #1e293b; /* Dark theme background matching user profile dropdown */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 10000;
}

/* Active open state */
.language-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scroll area container */
.language-list-scroll {
    max-height: 280px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar Styles (WebKit) */
.language-list-scroll::-webkit-scrollbar {
    width: 6px;
}

.language-list-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

.language-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 247, 255, 0.25);
    border-radius: 10px;
    transition: background 0.2s;
}

.language-list-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 247, 255, 0.55);
}

/* Custom Scrollbar (Firefox) */
.language-list-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 247, 255, 0.25) rgba(255, 255, 255, 0.03);
}

/* Individual language option items */
.language-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: #cbd5e1; /* Slate-300 */
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 2px;
}

.language-item:last-child {
    margin-bottom: 0;
}

/* Hover effect with custom main-theme color */
.language-item:hover {
    background: rgba(0, 247, 255, 0.1);
    color: #00f7ff; /* Theme cyan color */
}

/* Selected language active state */
.language-item.active {
    background: rgba(0, 247, 255, 0.15);
    color: #00f7ff;
    font-weight: 600;
}

/* Check icon styles */
.language-item .check-icon {
    display: none;
    font-size: 12px;
    color: #00f7ff;
}

.language-item.active .check-icon {
    display: block;
}

/* ===== GOOGLE TRANSLATE HIDING REGION ===== */

/* Completely hide the Google Translate default elements */
#google_translate_element {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.skiptranslate,
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
}

/* Force body styling to prevent the page from shifting down */
body {
    top: 0 !important;
    position: static !important;
}
