/* Language selector fixes for purple background templates */

.language-selector {
    position: relative;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: none;
    color: #333 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.language-toggle:hover {
    background: #4285f4 !important;
    color: white !important;
    transform: translateY(-2px);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: #fff !important;
    border-radius: 15px;
    padding: 0;
    min-width: 200px;
    max-height: 300px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.language-dropdown-content {
    max-height: 300px;
    overflow-y: auto;
    background: #fff !important;
}

.language-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.language-dropdown-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.language-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: white !important;
    color: #333 !important;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
}

.language-option:hover {
    background: #f8f9fa !important;
    color: #333 !important;
}

.language-option.active {
    background: #e3f2fd !important;
    color: #1976d2 !important;
}

.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    background-size: cover;
    background-position: center;
}