/* Simple Country Selector Styles */

.smart-country-selector {
    position: relative;
    display: inline-block;
}

.current-country-display {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
}

.current-info {
    display: flex;
    flex-direction: column;
}

.current-site {
    font-weight: 500;
    color: #495057;
}

.btn-change-country {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.btn-change-country:hover {
    background-color: #e3f2fd;
    text-decoration: none;
}

/* Country Dropdown */
.country-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.country-dropdown {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
}

.dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.dropdown-header h3 {
    margin: 0;
    font-size: 18px;
    color: #495057;
}

.close-dropdown {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-dropdown:hover {
    background-color: #e9ecef;
}

.dropdown-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.region-group {
    margin-bottom: 20px;
}

.region-group:last-child {
    margin-bottom: 0;
}

.region-group h4 {
    margin: 0 0 10px 0;
    padding: 8px 12px;
    background: #f8f9fa;
    border-left: 3px solid #007cba;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.country-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.country-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 2px;
}

.country-option:hover {
    background-color: #f8f9fa;
}

.country-option.selected {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
}

.country-flag {
    margin-right: 12px;
    width: 30px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.country-flag img {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.country-details {
    flex: 1;
}

.country-name {
    font-weight: 500;
    color: #495057;
    font-size: 14px;
}

.selected-indicator {
    color: #2196f3;
    font-weight: bold;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .country-dropdown {
        width: 95%;
        max-height: 70vh;
    }
    
    .dropdown-header {
        padding: 15px;
    }
    
    .dropdown-header h3 {
        font-size: 16px;
    }
}
