/* Region Selection Modal Styles */
.region-modal {
    max-width: 500px;
    width: 90%;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    text-align: right;
}

.region-modal .modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 15px 15px 0 0;
}

.region-modal .modal-header h3 {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.region-modal .close-modal-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.region-modal .close-modal-btn:hover {
    background-color: #f5f5f5;
    color: #333;
}

.region-modal .modal-body {
    padding: 25px;
}

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

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

.region-modal .form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

.region-modal .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Cairo', sans-serif;
    background-color: white;
}

.region-modal .form-control:focus {
    outline: none;
    border-color: #C39F2B;
}

.region-modal .form-control:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.region-modal .region-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: left 12px center;
    background-repeat: no-repeat;
    background-size: 16px 12px;
    padding-left: 40px;
    appearance: none;
}

.region-modal .region-select:disabled {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%9ca3af' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
}

.region-modal .modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    background: #f8f9fa;
    border-radius: 0 0 15px 15px;
}

.region-modal .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.region-modal .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.region-modal .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.region-modal .btn-secondary:hover:not(:disabled) {
    background-color: #5a6268;
}

.region-modal .btn-primary {
    background-color: #C39F2B;
    color: white;
}

.region-modal .btn-primary:hover:not(:disabled) {
    background-color: #b08f24;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles for region modal */
@media (max-width: 768px) {
    .region-modal {
        width: 95%;
        margin: 20px;
    }
    
    .region-modal .modal-header,
    .region-modal .modal-body,
    .region-modal .modal-footer {
        padding: 15px 20px;
    }
    
    .region-modal .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .region-modal .region-select {
        padding-left: 35px;
    }
}

@media (max-width: 576px) {
    .region-modal {
        width: 98%;
        margin: 10px;
    }
    
    .region-modal .modal-header h3 {
        font-size: 1.1rem;
    }
    
    .region-modal .btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}
