.language-selector {
    position: relative;
    width: 120px;
    margin-top: 14px;
}

.custom-select {
    position: relative;
    width: 120px;
}

.select-button {
    font-family: Arial, sans-serif;
    padding: 5px 31px 6px 6px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 10px;
    font-family: 
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color 0.3s ease;
}

.select-button:hover {
    border-color: #007bff;
}

.select-button.active {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #666;
    transition: transform 0.3s ease;
}

.select-button.active .arrow {
    transform: translateY(-50%) rotate(180deg);
}

.options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-top: 0px !important;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 0;
    overflow: hidden;
    z-index: 1000;
    transition: max-height 0.3s ease;
    font-family: Arial, sans-serif;
}

.options.active {
    max-height: 200px;
    border-top: 1px solid #eee;
    font-family: Arial, sans-serif;
}

.option {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    transition: background-color 0.2s ease;
    font-family: Arial, sans-serif;
    color: #000 !important;
    text-decoration: none;
}

.option:hover {
    background-color: #f8f9fa;
}

.option:last-child {
    border-radius: 0 0 6px 6px;
}

.flag {
    /*
    width: 24px;
    height: 18px;
    */
    width: 19px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
    background-size: cover;
    background-position: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
}

.flag.es {
    background-image: linear-gradient(to bottom, #c60b1e 0%, #c60b1e 33%, #ffc400 33%, #ffc400 66%, #c60b1e 66%);
}

.flag.en {
    background-image: 
        repeating-linear-gradient(
            to bottom,
            #b22234 0px,
            #b22234 2px,
            white 2px,
            white 4px
        ),
        linear-gradient(to right, #3c3b6e 0%, #3c3b6e 40%, transparent 40%);
    background-size: 100% 100%, 100% 100%;
    position: relative;
}

.flag.en::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 50%;
    background: #3c3b6e;
    z-index: 1;
}

.flag.fr {
    background-image: linear-gradient(to right, #002395 0%, #002395 33%, white 33%, white 66%, #ed2939 66%);
}

.result {
    margin-top: 20px;
    padding: 15px;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    font-size: 16px;
    text-align: center;
}

.selected-text{
    padding: 2px 0px 7px 3px;
}