:root{
    --main-color:#871a55;
    --main-color-light:#aa5181;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-dark: #1e293b;
    --text-light: #f8fafc;

}

body{
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    
}
 /* تخصيص الألوان */
 .cat_select + .select2-container , .loc_select + .select2-container{
    margin-right: 10px; /* تعديل التباعد بين الـ Select2 */
}
 .cat_select + .select2-container--default .select2-selection--single , .loc_select + .select2-container--default .select2-selection--single {
    border-radius: 30px;
    height: 46px;
    padding: 10px;
    background-color: #f8f9fa;
    box-shadow: none;
}

.cat_select + .select2-container--default .select2-selection--single .select2-selection__rendered , .loc_select + .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333;
    line-height: 26px;
}
.cat_select + .select2-search--dropdown{
    border-top-left-radius: 50% !important;
    border-top-right-radius: 50% !important;
}
.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #871a55;
    color: white;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
    display: none;
}
.cat_select + .select2-dropdown , .loc_select + .select2-dropdown{
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--main-color-light);
}
/* تخصيص dropdown */
.dropdown-menu {
    border: 2px solid var(--main-color-light); /* حدود القائمة المنسدلة */
    border-radius: 8px; /* حواف مستديرة */
    background-color: #fff; /* خلفية القائمة */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* إضافة ظل */
}

.dropdown-item {
    color: var(--text-dark); /* لون النص */
    padding: 10px 15px; /* تباعد داخلي */
    transition: background-color 0.3s ease; /* تأثير عند التمرير */
}

.dropdown-item:hover {
    background-color: var(--main-color); /* لون الخلفية عند التمرير */
    color: #fff; /* لون النص عند التمرير */
}
/*start scroll bar */



::-webkit-scrollbar {
    width: 12px; 
}

::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px; 
}

::-webkit-scrollbar-thumb {
    background: var(--main-color-light); 
    border-radius: 10px; 
    border: 3px solid #f1f1f1;
}

::-webkit-scrollbar-thumb:hover {
    background:var(--main-color); 
}
/* end scrollbar*/

/*start top navbar*/

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* إضافة ظل خفيف */
}

.navbar-brand img {
    max-height: 40px; /* تحديد ارتفاع اللوجو */
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    color: #333;
}

.nav-link:hover {
    color: var(--main-color); /* تغيير اللون عند التمرير */
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* إضافة ظل للقوائم */
}

.dropdown-item {
    font-size: 0.9rem;
    color: #333;
}
.all_noti:hover{
    color:#ffffff !important;
}
.user_img, .Notification img{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #fff;
    background-color: #fff;
    overflow: hidden;
    margin-right: 2px;
}
.navbar .btn-primary{
    font-size: 0.9rem;
    padding: 8px 20px;
}

.add_link , .add_link:visited, .add_link:active ,.add_link .btn-primary:hover{
    color: #fff;
    background-color: var(--main-color);
    text-decoration: none;
}
/*end top navbar*/
/* hero section */
/* تخصيص القسم */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    border-radius: 0 0 50% 50% / 0 0 20% 20%; /* حواف شبه دائرية */
    overflow: hidden; /* لإخفاء الأجزاء الزائدة */
}

/* طبقة تظليل */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* لون التظليل */
    z-index: 1;
}

/* العنوان */
.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

/* الوصف */
.hero-description {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

/* فورم البحث */
.search-form {
    position: relative;
    z-index: 2;
    background: white; /* خلفية بيضاء */
    padding: 15px !important; /* إضافة padding */
    border-bottom-left-radius: 25px !important; /* حواف مستديرة */
    border-bottom-right-radius: 25px !important; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    flex-wrap: nowrap; 
}

/* تخصيص الحقول */
.form-control.rounded-pill {
    border-radius: 50px !important;
    padding: 10px 20px;
    flex:1;
}

.btn-primary {
    background-color:var(--main-color);
    border: none;
    font-size: 0.9rem;
    padding: 8px 16px;
    transition: background-color 0.3s ease;
    width: 100%;
    margin: 0 auto;
}

.btn-primary:hover {
    background-color:var(--main-color-light);
}

/* زر البحث */
.btn-primary.rounded-pill {
    border-radius: 50px !important;
    padding: 10px 20px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 20%;
}

/* أيقونة البحث */
.fa-search {
    font-size: 1.2rem;
}
/* category*/

/* تخصيص الكارد */
.cat .card {
    transition: transform 0.3s ease;
}

.cat .card:hover {
    transform: translateY(-10px); /* تحريك الكارد للأعلى عند التمرير */
}

.cat .card-img-top {
    border-radius: 50%;
    object-fit: cover; 
}

.cat .card-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.cat .card-text {
    font-size: 0.9rem;
    color: var(--main-color);
}
.cat a{
    color: inherit;
    text-decoration: none;
}
/* start ads card */



/* تخصيص السيكشن الجديد */
.posts {
    background-color: #eee;
    padding: 80px 0;
}

/* عنوان السيكشن */
.section-title {
    font-size: 2rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

/* وصف السيكشن */
.posts {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* تخصيص الكارت */
.posts .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
}

.posts .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* صورة المنتج */
.posts .card-img-top {
    height: 200px;
    object-fit: cover;
}

/* اسم المنتج والسعر */
.posts .card-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}
.posts .card-link{
    text-decoration: none;
}
.text-primary {
    font-size: 1.2rem;
    color:var(--main-color) !important;
}

/* وصف المنتج */
.posts .card-text {
    font-size: 0.9rem;
    color: #666;
}
.posts .add_title , .posts .add_content{
    white-space:nowrap;
    overflow:hidden;
}
.posts .add_title:after{
    content:'...';
}
.posts .text-title{
color: #666;
}  
.posts .text-price{
color:var(--main-color) !important;
}
.posts .bg-color{
    background-color:var(--main-color) !important;
    color: #fff;
}
.posts .text-title {
    height: 3rem; 
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

/* تغليف الصورة */
.posts .card-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

/* تخصيص الأيقونات */
.icon-wrapper {
    display: flex;
    align-items: center;
}

.icon-text {
    font-size: 0.9rem; /* حجم النص بجانب الأيقونة */
    color: #666; /* لون النص */
    text-decoration: none;
}

.icon-border {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.icon-custom {
    font-size: 1rem; /* حجم الأيقونة */
    color: #666; /* لون الأيقونة */
    transition: color 0.3s ease;
}

.icon-border:hover {
    background-color: #f8f9fa; /* لون الخلفية عند التمرير */
    border-color: var(--main-color); /* لون الإطار عند التمرير */
}

.icon-border:hover .icon-custom {
    color: #666; 
}


/* تخصيص السيكشنات */
.add-listing-section {
    padding: 80px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.svg-section {
    width: 100%;
    background-color: #fff; /* لون خلفية القسم */
    padding: 0;
    margin: 0;
}

.svg-image {
    width: 100%;
    height: 150px;
    display: block;
    background-size: cover;
    opacity: .5 ;
}

/* تخصيص الفوتر */
.footer-section {
    background-color: #343a40;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.social-icons a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--main-color) !important;
}



/* تخصيص Bottom Bar */
.bottom-bar {
    z-index: 1000; /* للتأكد من ظهورها فوق العناصر الأخرى */
}

.bottom-bar a {
    text-decoration: none; /* إزالة الخط التحتي من الروابط */
    transition: color 0.3s ease;
}

.bottom-bar a:not(.bar_link):hover {
    color: var(--main-color) !important; 
}

.bottom-bar .bg-primary {
    box-shadow: 0 4px 10px rgba(38, 0, 43, 0.801); /* إضافة ظل للأيقونة الوسطى */
    color: #fff !important;
    background-color: var(--main-color) !important; 
}

.bottom-bar .rounded-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bar_link:hover {
    background-color: var(--main-color-light) !important;
    color: #fff !important; 
}
/****************************************************************
*****************************************************************
************************************************************/

.carousel {
    border-radius: 15px;
    overflow: hidden;
}
.carousel-item img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    cursor: pointer;
}
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1); /* لجعل الأسهم بيضاء */
}

.lg-outer {
    direction: ltr;
}
.carousel-item {
    .lg-item > img {
        height: 600px;
    }
}

.adsdetail .card {
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.contact-form .form-control {
    border-radius: 10px;
}
.details-table {
    width: 100%;
    border-collapse: collapse;
}
.details-table td {
    padding: 10px;
    border: 1px solid #ddd;
}
.details-table td:first-child {
    font-weight: bold;
    background-color: #f8f9fa;
}
.rating-stars {
    color: #ffc107;
}
.comment-section {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.card_block {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    background-color: #f9f9f9;
}
.slider img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
}
.map-container #map {
    width: 100%;
    height: 300px;
    border: none;
    border-radius: 10px;
}
.comments-section {
    max-height: 300px;
    overflow-y: auto;
}
.comment img{
    width: 40px;
    height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: box-shadow 0.3s ease;
}
.sim_ads a{
text-decoration: none;
color: #343a40;
}


.video-frame {
    position: relative;
    width: 100%;
    margin-top: 1rem;
}
.border-ejar{
    border-color: var(--main-color)!important;
}
/*----------------------------------------------------------------*/
.ad_details .card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

.alert-danger {
    font-weight: bold;
}
.ad_details .icon-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.ad_details .icon-container:hover {
    transform: scale(1.1);
    background-color: #f9f9f9;
}

.ad_details .icon-large {
    font-size: 36px;
    color: #666;
    transition: color 0.3s ease;
}

.ad_details .icon-container:hover .icon-large {
    color: #222;
}
.text-primary1 { color: #007bff; }
.text-success { color: #28a745; }
.text-warning { color: #ffc107; }
.text-info { color: #17a2b8; }
.text-danger { color: #dc3545; }
.text-secondary { color: #6c757d; }
.text-purple { color: #6f42c1; }
.text-orange { color: #fd7e14; }
.text-ejar { color: var(--main-color); }

.ad_details .icon-value {
    margin-top: 10px;
    font-size: 14px;
    color: #333;
    font-weight: bold;
}

.text-muted {
    color: #666;
}
/* =================================================================

/* تصميم الفيديو */
video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* تصميم زر التشغيل */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #000;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.play-button:hover {
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.phone-link {
    text-decoration: none;
    color: white;
    font-weight: bold;
}
.phone-link:hover {
    text-decoration: none;
    color: white;
    font-weight: bold;
}
/******/

/* تصميم زر الواتساب */
.whatsapp-btn {
    background: linear-gradient(135deg, #25D366, #128C7E); /* تدرج ألوان الواتساب */
    color: white;
    border: none;
    border-radius: 30px; /* حواف مستديرة */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* ظل ناعم */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* تأثير عند التمرير */
}
.whatsapp-btn:hover {
    transform: translateY(-5px); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25); 
    color: #fff;
}

/* تصميم زر إظهار الرقم */
.phone-btn, .add_link, .submit-btn,.search-btn , .foot-add-btn, .all_item-btn , .register-btn {
    background: linear-gradient(135deg, var(--main-color-light), var(--main-color)); 
    color: white;
    border: none;
    border-radius: 30px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.button-container {
    display: flex; /* يجعل العناصر داخل الحاوية تظهر بجانب بعضها */
    justify-content: center; /* يضع الأزرار في منتصف الحاوية */
    gap: 10px; /* إضافة مسافة بين الأزرار */
}
.edit_btn{ 
    color: white;
    border: none;
    border-radius: 30px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.delete-btn{
    color: white;
    border: none;
    border-radius: 30px; 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}
.phone-btn:hover, .add_link:hover, .submit-btn:hover, .search-btn:hover , .foot-add-btn:hover, .all_item-btn:hover , .register-btn:hover ,.edit_btn:hover ,.delete_btn:hover {
    transform: translateY(-5px); 
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25); 
    color: #fff;
}

.whatsapp{
    color: #fff;
    background-color: #25d366;
    border-color: #25d366;
}
.facebook{
    color: #fff;
    background-color: #3b5998;
    border-color: #3b5998;
}
.twiter{
    color: #fff;
    background-color: #00060a;
    border-color: #00060a;
}
.linkedin{
    color: #fff;
    background-color: #0077b5;
    border-color: #0077b5;
}
.btn_share:hover{
    color: white;
    opacity:0.7;
}
.price-tag{
    color:var(--main-color);
}
/***/
.form-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-top: 20px;
}
.form-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    color: #495057;
}
.dropzone {
    border: 2px dashed #6c757d;
    border-radius: 8px;
}
.tips-section {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 20px;
}
.tips-section h6 {
    color: #333;
    font-weight: bold;
    margin-bottom: 15px;
}
.tips-section ul {
    list-style: none;
    padding: 0;
}
.tips-section ul li {
    margin-bottom: 10px;
    color: #555;
}
.tips-section ul li i {
    color: var(--main-color);
    margin-left: 10px;
}
.userimgads{
    width: 80px !important;
    height: 80px !important;
    border-radius: 20% !important;
}
.dashboard-card {
    background: white;
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-link {
    color: var(--text-dark);
    border-radius: 8px;
    margin: 4px 0;
    transition: all 0.2s;
    padding: 12px 20px !important;
}

.nav-link.active {
    background: var(--primary-gradient) !important;
    color: white !important;
}

.nav-link:hover:not(.active) {
    background: #f1f5f9;
    transform: translateX(5px);
}

.hero-section .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    transition: all 0.3s;
}

.hero-section .form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

  


.list-group-item {
    border: none;
    margin-bottom: 8px;
    border-radius: 8px !important;
    transition: all 0.2s;
}

.list-group-item:hover {
    transform: translateX(5px);
    background: #f8fafc;
}

/*--------------------------------------------------------------
------------------------start genral profile -------------------
--------------------------------------------------------------*/

.profile-header {
    background: linear-gradient(45deg, var(--main-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-top: 30px;
}

.avatar-container {
    position: relative;
    margin: -80px auto 20px;
    width: 150px;
    height: 150px;
}

.profile-stats {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
}

.skill-badge {
    background: var(--secondary-color);
    color: white;
    margin: 5px;
    padding: 8px 15px;
    border-radius: 20px;
}

.contact-card {
    border: 2px solid var(--main-color);
    border-radius: 10px;
    transition: transform 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.avatar-upload {
    border: 2px solid #ddd;
    border-radius: 50%;
    padding: 5px;
    transition: 0.3s ease;
}

.avatar-upload:hover {
    border-color: var(--main-color);
}

#profileImage {
    transition: opacity 0.3s ease;
}

#profileImage:hover {
    opacity: 0.8;
}



/*--------------------------------------------------------------
-------------------------- start search ------------------------
--------------------------------------------------------------*/

.search-sidebar {
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 25px;
    position: sticky;
    top: 20px;
}

.property-card {
    background: white;
    border-radius: 15px;
    transition: transform 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.featured-badge {
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}
/***********/

/* إخفاء الفلاتر افتراضيًا على شاشات الموبايل */
@media (max-width: 991.98px) {
    #mobileFilters {
        display: none;
    }
}
.btn-outline-primary{
    color: var(--main-color);
    border-color: var(--main-color-light);

}
.btn-outline-primary:hover{
    color: #fff;
    background-color: var(--main-color);
    border-color: var(--main-color-light);

}
.btn-outline-primary::selection{
    color: var(--main-color);
    border-color: var(--main-color-light);

}
/* تصميم الزر الخاص بفتح وإغلاق الفلاتر */
#toggleFiltersBtn {
    font-size: 20px;
}

.search-sidebar {
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 1rem;
    background-color: #fff;
    transition: all 0.3s ease;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #333;
}

.form-select:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 5px rgba(135, 26, 85, 0.5);
}

/**********/

.posts-container .card-link{
    text-decoration: none;
}
.posts-container .fw-bold{
    color: #666;
}
.posts-container .badge{
    background-color:var(--main-color) !important;
    color: white;
}
.posts-container .text-cust{
    color: var(--main-color);
}
.pagination .page-item .page-link {
    color: #fff; 
    background-color: var(--main-color); 
}

.pagination .page-item.active .page-link {
    color: white; 
    background-color: var(--main-color);
    border-color: #fff;
}

.pagination .page-item .page-link:hover {
    background-color: var(--main-color-light);
    border-color: #fff;
}
.property-card:hover {
    transform: translateY(-5px);
}
#price_value{
    color: var(--main-color);
    font-size: 1.2rem;
    font-weight: bold;
}
.property-img {
    height: 200px;
    border-radius: 15px 15px 0 0;
    object-fit: cover;
}

.filter-section {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.price-range {
    accent-color: var(--primary-color);
}


/*--------------------------------------------------------------
-------------------------- start login ------------------------
--------------------------------------------------------------*/


.login-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 0 auto;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
}


.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}
.input-icon-en {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.login-btn {
    background: var(--main-color);
    border: none;
    padding: 15px;
    font-weight: bold;
    transition: all 0.3s;
}

.login-btn:hover {
    background: var(--main-color-light);
}



/*--------------------------------------------------------------
------------------------ start register ------------------------
--------------------------------------------------------------*/

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    max-width: 500px;
    margin: 2rem auto;
    padding: 40px;
    position: relative;
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
}



/*******/
.select2-container--default .select2-selection--single  {
    border-radius: 5px;
    height: 37px;
    padding: 4px;
    background-color: #f8f9fa;
    box-shadow: none;
}
.select2-container--default{
    width: 100% !important;
}
/*-----------------------------------------------------------------
 ------------------------- start messages page -------------------
-----------------------------------------------------------------*/
.msg{
    margin-top: 50px !important;
    margin-bottom: 50px;   
}
.messages-container {
    display: flex;
    height: 90vh;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 1px 2px 10px var(--main-color-light);
}
.messages-list {
    width: 30%;
    background: white;
    overflow-y: auto;
    border-left: 2px solid var(--main-color-light);
    padding: 15px;
}
.message-item {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.message-item.unread {
    background: var(--main-color-light);
    color: white;
}
.chat-box {
    width: 70%;
    display: flex;
    flex-direction: column;
    background: white;
}
.chat-header {
    background: var(--main-color);
    color: white;
    padding: 15px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}
.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f1f1f1;
}
.chat-footer {
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
    align-items: center;
}
.chat-footer input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.chat-footer button {
    background: var(--main-color);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}
.chat-footer .fa-icons {
    cursor: pointer;
    font-size: 20px;
    margin: 0 5px;
    color: var(--main-color);
}

.chat-footer {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #ddd;
    position: relative;
}

.fa-icons {
    cursor: pointer;
    font-size: 1.5rem;
    margin: 0 10px;
    color: var(--main-color);
}

#messageInput {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
}

.emoji-container {
    position: relative;
}

.emoji-picker-container {
    position: absolute;
    bottom: 50px;
    left: 0;
    z-index: 1000;
    display: none;
}
.sent-message {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border-radius: 8px;
    align-self: flex-end;
    text-align: right;
    margin: 5px;
    max-width: 70%;
    position: relative;
}

.received-message {
    background-color: #f1f1f1;
    color: black;
    padding: 10px;
    border-radius: 8px;
    align-self: flex-start;
    text-align: left;
    margin: 5px;
    max-width: 70%;
    position: relative;
}

.read-status {
    font-size: 12px;
    color: #ccc;
    position: absolute;
    bottom: 5px;
    right: 10px;
}

.message-time {
    font-size: 10px;
    color: #888;
    display: block;
    margin-top: 5px;
    text-align: left;
}

.chat-body .message.sender {
    background-color: #d1e7dd; /* خلفية الرسائل المرسلة */
    align-self: flex-start; /* توجيه الرسائل إلى اليسار */
    text-align: left; /* تنسيق النص إلى اليسار */
    position: relative; /* لضبط موقع الأيقونة */
    padding-left: 30px; /* مساحة للأيقونة */
}

.chat-body .message.receiver {
    background-color: #f1f1f1; 
    align-self: flex-end; 
    text-align: left; 
    position: relative; 
    padding-right: 30px; 
}

.chat-body .message.receiver::before {
    content: "\f086"; /* أيقونة Font Awesome (رسالة) */
    font-family: "Font Awesome 5 Free"; /* تحديد خط Font Awesome */
    font-weight: 900; /* لجعل الأيقونة سميكة */
    position: absolute;
    right: 5px; /* موقع الأيقونة بالنسبة للنص */
    top: 50%; /* توسيط الأيقونة عموديًا */
    transform: translateY(-50%);
    color: #007bff; /* لون الأيقونة */
    font-size: 16px; /* حجم الأيقونة */
}

/* =================================================================
 ------------------------- start contact us page -------------------
-----------------------------------------------------------------*/
.bg-main{
    background-color: var(--main-color);
}
.contact-section {
    padding: 60px 0;
}
.contact-info {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 1px 2px 10px var(--main-color-light);
    margin-bottom: 30px;
}
.contact-info i {
    font-size: 24px;
    color: var(--main-color);
    margin-bottom: 10px;
}
.contactform {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 1px 2px 10px var(--main-color-light);
}
.contact-form h2 {
    margin-bottom: 20px;
    font-weight: bold;
    color:var(--main-color);
}
.contact-form .form-control {
    border-radius: 5px;
    border: 1px solid #ddd;
}
.contact-form .btn-primary {
    background-color: var(--main-color);
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
}
.contact-form .btn-primary:hover {
    background-color: var(--main-color);
}
.map {
    height: 400px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 30px;
    
}

/* =================================================================
 ------------------------- start error page ------------------------
-----------------------------------------------------------------*/

.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 10px;
}
.error-code {
    font-size: 120px;
    font-weight: bold;
    color: #871a55; 
    margin-bottom: 10px;
}
.error-message {
    font-size: 24px;
}
.error-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #871a55; 
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s ease;
}
.error-link:hover {
    background-color: #6c1544; 
    color: #fff;
}


.error-image {
    max-width: 600px; 
    height: auto; 
    margin: 0 auto 10px; 
}


p, li {
    line-height: 1.6;
}
.privacy-section {
    margin-bottom: 40px;
}
.terms-section {
    margin-bottom: 40px;
}




/* =================================================================
 ------------------------- start user page ------------------------
-----------------------------------------------------------------*/



.profile-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    display: block;
}

.profile-name {
    text-align: center;
    margin-bottom: 15px;
}

.profile-stats {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.profile-stats div {
    text-align: center;
}

.profile-stats h6 {
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: bold;
}

.profile-stats p {
    margin-bottom: 0;
    font-size: 14px;
    color: #555;
}

.contact-icons {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.contact-icons a {
    text-decoration: none;
    color: #fff;
    padding: 10px;
    border-radius: 10%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 85px;
    height: 40px;
}

.map-container {
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.post-card {
    transition: transform 0.3s ease;
    background: #fff;
}

.post-card:hover {
    transform: translateY(-10px);
}

 .user_posts a{
            text-decoration: none;
            color: #333;
            transition: background-color 0.3s ease;
        }
.icon-custom {
    color: #871a55;
}

.btn-primary-custom {
    background-color: #871a55;
    border-color: #871a55;
}

.btn-primary-custom:hover {
    background-color: #6c1445;
    border-color: #6c1445;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 5px;
        }