﻿/* ===== Modal Container ===== */
.modal-dialog {
    max-width: 750px;
}

.modal-content {
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    border: none;
    padding: 20px 30px;
}

/* ===== Background Overlay (Premium Feel) ===== */
.modal-backdrop.show {
    opacity: 0.6;
}

/* ===== Title ===== */
.language-title {
    font-size: 2rem;
    font-weight: 700;
    color: #2f2f5f;
    margin-bottom: 10px;
}

/* ===== Grid Layout ===== */
.language-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
    padding-bottom: 10px;
}

/* Tablet */
@media (max-width: 992px) {
    .language-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 576px) {
    .language-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        padding: 20px;
    }

    .language-title {
        font-size: 1.6rem;
    }
}

/* ===== Language Items ===== */
.language-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Flag */
/*.language-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}*/

/* Text */
.language-item span {
    flex-grow: 1;
    font-weight: 500;
}

/* Arrow */
.language-item i {
    color: #bbb;
    font-style: normal;
}

/* ===== Hover State ===== */
.language-item:hover {
    background: #f5f5f5;
    transform: translateX(4px);
}

/* Language selector styling*/

/* Main container that holds the icon and dropdown side-by-side */
.language-selector {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 6px 12px;
    font-family: sans-serif;
}

/* Subtle shadow increase on hover as requested */
.language-selector:hover {
    border-color: #9ca3af;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

/* Blue border outline when user clicks into the selector */
.language-selector:focus-within {
    border-color: #3b82f6;
}

/* Globe Icon size and spacing */
.language-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
}

/* Dropdown styling - keeping the standard browser arrow for maximum simplicity */
.language-dropdown {
    font-size: 14px;
    color: #1f2937;
    border: none;
    background: transparent;
    cursor: pointer;
    outline: none;
    padding: 2px 0;
}