.custom-lang-dropdown {
    position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	cursor: pointer;
	user-select: none;
	width: 100px;
	height: 100px;
	border-left: 1px solid black;
}

/* Steagul limbii curente, mereu vizibil */
.custom-lang-dropdown .current-lang-flag {
    cursor: pointer; /* Arata ca se poate da click */
    padding: 5px;
    border: 1px solid transparent;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.custom-lang-dropdown.is-open {
    background-color: #f0f0f0; /* Evidentiaza cand meniul este deschis */
}

.custom-lang-dropdown .current-lang-flag img {
    display: block;
    width: 24px; /* Dimensiunea steagului */
    height: auto;
    border-radius: 2px;
}

/* Lista cu celelalte limbi, ascunsa initial */
.custom-lang-dropdown .other-langs-list {
    display: none; /* Ascunde lista */
    position: absolute;
    top: 100%;
    left: 50%; /* Pozitioneaza la jumatatea containerului */
    transform: translateX(-50%); /* Centreaza exact sub steag */
    min-width: 150px; /* Latime minima pentru lista */
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    list-style: none;
    margin-top: 8px; /* Spatiu intre steagul principal si lista */
    padding: 5px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Afiseaza lista cand containerul are clasa .is-open */
.custom-lang-dropdown.is-open .other-langs-list {
    display: block;
}

/* Stil pentru fiecare element (link) din lista */
.custom-lang-dropdown .other-langs-list .lang-item a {
    display: flex; /* Aliniaza steagul si textul */
    align-items: center;
    padding: 8px 10px;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
    transition: background-color 0.2s;
    white-space: nowrap; /* Impiedica textul sa treaca pe randul urmator */
}

/* Efect de hover pe fiecare element din lista */
.custom-lang-dropdown .other-langs-list .lang-item a:hover {
    background-color: #f5f5f5;
    color: #000;
}

/* Stil pentru numele limbii */
.custom-lang-dropdown .lang-name {
    margin-left: 10px; /* Spatiu intre steag si nume */
    font-size: 14px;
}

@media screen and (max-width: 1200px){

    .language_container{
        display: flex;
        justify-content: center;
    }

    .custom-lang-dropdown{
        width: 100%;
        max-width: 250px;
        height: auto;
        background-color: white;
        border-radius: 4px;
        padding: 4px;
    }

    .current-lang-flag{
        display: flex;
        width: 100%;
        color: black;
    }

    .other-langs-list{
        width: 100%;
    }
}