/* Language Selector Styles */
.lang-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: inline-block;
}

.lang-toggle {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 25px;
    cursor: pointer;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lang-icon {
    font-size: 18px;
    line-height: 1;
    display: inline-block;
    vertical-align: middle;
    margin-right: 2px;
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    min-width: 140px;
    overflow: hidden;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-btn {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-weight: 400;
}

.lang-btn:hover {
    background-color: #f8f9fa;
    color: #007bff;
    padding-left: 20px;
}

.lang-btn.active {
    background-color: #007bff;
    color: white;
    font-weight: 500;
}

.lang-btn.active:hover {
    background-color: #0056b3;
    color: white;
    padding-left: 16px;
}

/* Language indicator */
.lang-indicator {
    font-size: 12px;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 30px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lang-selector {
        top: 15px;
        right: 15px;
    }
    
    .lang-toggle {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .lang-toggle img {
        width: 18px;
        height: 18px;
    }
    
    .lang-dropdown {
        min-width: 130px;
    }
    
    .lang-btn {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .lang-selector {
        top: 15px;
        right: 15px;
    }
    
    .lang-toggle {
        padding: 8px 12px;
        font-size: 12px;
        gap: 6px;
    }
    
    .lang-toggle img {
        width: 16px;
        height: 16px;
    }
    
    .lang-indicator {
        font-size: 11px;
        padding: 1px 4px;
    }
    
    .lang-dropdown {
        min-width: 120px;
        margin-top: 5px;
    }
    
    .lang-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}
