

.language-selector {
    position: relative;
    display: inline-block;
}

.language-select {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: transparent;
    border: none;
    color: #C3C3C3;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.language-select:hover {
    color: #ffffff;
}

.language-select svg {
    flex-shrink: 0;
}

/* Hidden form - completely invisible */
.hidden-form {
    display: none;
}

/* Language dropdown menu */
.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #2a2a2a;
    border: 1px solid #404040;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    min-width: 120px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    color: #C3C3C3;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 14px;
}

.language-option:hover {
    background-color: #3a3a3a;
}

.language-option:first-child {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.language-option:last-child {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.current-language {
    background-color: #404040;
}

/* Overlay to close dropdown when clicking outside */
.dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    display: none;
}

.dropdown-overlay.show {
    display: block;
}