.region-lang-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.region-lang-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.region-lang-modal {
    background-color: var(--background-color, #1a1a1a);
    color: var(--text-color, #fff);
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    position: relative;
    border: 1px solid var(--primary-color, #ff00ff);
}

.region-lang-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: var(--text-color, #fff);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
}

.region-lang-modal-close:hover {
    color: var(--primary-color, #ff00ff);
}

.region-lang-modal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.region-lang-modal-column {
    flex: 1;
}

.region-lang-modal-column h3 {
    font-size: 1.4em;
    color: var(--primary-color, #ff00ff);
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid var(--accent-color, #00ffff);
    padding-bottom: 10px;
}

.region-lang-modal-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
}

.region-lang-modal-list li {
    padding: 12px 10px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s ease, color 0.2s ease;
    text-align: center;
    font-size: 1.1em;
}

.region-lang-modal-list li:hover {
    background-color: var(--primary-color-dimmed, rgba(255, 0, 255, 0.2));
}

.region-lang-modal-list li.active {
    background-color: var(--primary-color, #ff00ff);
    color: var(--background-color, #1a1a1a);
    font-weight: bold;
}

/* Responsive adjustments */
@media (min-width: 500px) {
    .region-lang-modal-content {
        flex-direction: row;
    }
    .region-lang-modal-column {
        border-right: 1px solid var(--accent-color-dimmed, rgba(0, 255, 255, 0.3));
    }
    .region-lang-modal-column:last-child {
        border-right: none;
    }
}

@media (max-width: 400px) {
    .region-lang-modal {
        padding: 20px;
    }
    .region-lang-modal-column h3 {
        font-size: 1.2em;
    }
    .region-lang-modal-list li {
        font-size: 1em;
        padding: 10px 8px;
    }
}
