/**
 * Language Switcher Styles
 */

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 15px;
    border:1px solid black;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.lang-select {
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

.lang-select:hover {
    border-color: #e4f1fe;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.2);
}

.lang-select:focus {
    outline: none;
    border-color: #e4f1fe;
    box-shadow: 0 0 0 3px rgba(255, 105, 180, 0.1);
}

.lang-select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.translate-loading {
    font-size: 16px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .language-switcher {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
    }
    
    .lang-select {
        font-size: 13px;
        padding: 5px 10px;
        padding-right: 28px;
    }
}

/* Animation khi đổi ngôn ngữ */
[data-translatable="yes"] {
    transition: opacity 0.3s ease;
}

body.translating [data-translatable="yes"] {
    opacity: 0.7;
}