.language-selector {
    display: flex;
    align-items: center;
    position: absolute;
    top: 15px;
    right: 100px;
    z-index: 100;
    background-color: rgba(30, 40, 55, 0.8);
    padding: 5px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-option {
    background-color: var(--card-bg);
    color: var(--light-text);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 12px;
    margin-right: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.lang-option:last-child {
    margin-right: 0;
}

.lang-option:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.lang-option.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(var(--primary-color-rgb), 0.5);
}

.lang-option:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-option.active:before {
    opacity: 1;
}

/* Add flag indicators */
.lang-option[data-lang="en"]:after {
    content: "🇬🇧";
    margin-left: 5px;
}

.lang-option[data-lang="pt"]:after {
    content: "🇧🇷";
    margin-left: 5px;
}

.lang-option[data-lang="el"]:after {
    content: "🇬🇷";
    margin-left: 5px;
}

/* Responsive styles for language selector */
@media (max-width: 1200px) {
    .language-selector {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .language-selector {
        position: static;
        margin: 10px 0;
        width: 100%;
        justify-content: center;
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding: 0;
    }
    
    .header {
        flex-direction: column;
        align-items: center;
    }
    
    .user-info {
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .lang-option {
        flex: 1;
        text-align: center;
    }
}
