/* Popup message styling */
#ulm-popup-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 1px solid #000;
    padding: 10px;
    z-index: 10000;
    display: none;
    width: 300px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#ulm-popup-content {
    font-size: 16px;
    color: #333;
}

.popup-close {
    cursor: pointer;
    float: right;
    margin-left: 10px;
    font-weight: bold;
}

/* Form styling improvements */
#ulm-address-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* سه ستون با عرض مساوی */
    gap: 10px;
    padding: 20px;
    background-color: #f8f9fa;
    /* پس زمینه روشن برای فرم */
    border: 1px solid #ced4da;
    border-radius: 5px;
}

#ulm-address-details {
    display: contents;
}

#ulm-address-details label {
    grid-column: span 1;
    /* هر لیبل یک ستون را اشغال می‌کند */
    text-align: left;
    margin-bottom: 5px;
    color: #333;
}

#ulm-address-form label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

#ulm-address-form input {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    border: 1px solid #ced4da;
    border-radius: 3px;
}

/* Classes for editable and disabled fields */
.editable-field {
    background-color: #fff;
}

.disable-edit-field {
    background-color: #e9ecef;
}

/* Table styling for saved addresses */
.user-addresses-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.user-addresses-table th,
.user-addresses-table td {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
    font-size: 14px;
}

.user-addresses-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

.user-addresses-table td {
    background-color: #fff;
}

/* Additional styling for buttons if needed */
button {
    padding: 5px 10px;
    margin: 3px;
    font-size: 13px;
    cursor: pointer;
}




#ulm-popup-content {
    color: red !important;
    font-weight: bold;
}

.field-help-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 9998;
}





.field-help-popup {
    display: none;
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    width: 380px;
    box-shadow: 0 0 35px rgba(0,0,0,0.35);
    z-index: 9999;
    transition: all 0.25s ease;
}

.field-help-popup.show {
    display: block;
    transform: translate(-50%, -50%) scale(1);
}

#field-help-close {
    margin-top: 20px;
    background: #ff4444;
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
}


/* دکمه‌های فرم */
#ulm-address-form button {
    background: linear-gradient(135deg, #0073e6, #005bb5);
    color: #fff;
    border: none;
    padding: 12px 20px;
    margin: 8px 5px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* تغییر شکل نشانگر موس */
#ulm-address-form button:hover {
    background: linear-gradient(135deg, #005bb5, #003f7f);
    transform: translateY(-2px);
    cursor: pointer;
}

/* حالت غیر فعال */
#ulm-address-form button:disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}



.ulm-profile-warning {
    background: #ffecec;
    border: 2px solid #d8000c;
    color: #d8000c;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    margin: 20px auto;
    max-width: 650px;
    box-shadow: 0 0 15px rgba(216,0,12,0.3);
    position: relative;
    z-index: 2000; /* بالاتر از overlay */
}


#ulm-map-wrapper {
    position: relative;
}

#ulm-map-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.25); /* محو کم */
    backdrop-filter: blur(2px); /* محو ملایم */
    z-index: 2000 !important; /* بالاتر از همه لایه‌های Leaflet */
    pointer-events: none; /* اجازه نده کلیک‌ها گیر کنند */
    border-radius: 8px;
}

