/* ====== توحيد لون الأزرار ====== */
.btn-primary,
.btn-custom-search,
.btn-danger,
.btn-secondary,
.btn-details {
    background-color: #d32f2f !important;
    color: white !important;
    border: none !important;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover,
.btn-custom-search:hover,
.btn-danger:hover,
.btn-secondary:hover,
.btn-details:hover {
    background-color: #b71c1c !important;
    color: white !important;
}
.loading-text {
  color: red;
}


/* ====== ستايل عام للصفحة ====== */
body {
    font-family: 'Almarai', sans-serif;
    background-color: #FFFFFF;
    color: #f50707;
    direction: rtl;
}

/* ====== ستايل مخصص للـ Navbar ====== */
.navbar {
  background-color: #dbf20a !important; /* لون خلفية النافبار */
  color: #d32f2f !important;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* شادو خفيف */
  border: 2px solid #d32f2f; /* حدود حمراء واضحة */
  padding: 10px 0;
}

/* الخط داخل اللينكات */
.navbar .nav-link {
  color: #d32f2f !important;
  font-weight: 600;
  font-size: 1.05rem;
  transition: color 0.3s ease;
}

/* عند المرور على اللينك */
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #6e0512 !important; /* لون ذهبي عند التفاعل */
  text-decoration: underline;
}



/* ====== تحسين الهيدر ====== */
header.bg-secondary {
    background-color: #380791 !important;
    color: #d32f2f !important; /* عشان النص يكون واضح */
    border-radius: 10px;
    border: 1px solid #a3d3a1; /* حدود أخضر فاتح */
    box-shadow: 0 0 10px rgba(163, 211, 161, 0.3);
}

header h1 {
    font-family: 'Cairo', sans-serif; /* تغيير الخط لاسم الموقع */
    font-size: 2.5rem; /* جعل الخط أكبر وأوضح */
    font-weight: 700; /* تعريض الخط لزيادة الوضوح */
    color: #f7f5f5; /* تحديد لون النص */

}

/* ====== شعار الموقع ====== */
.logo {
    border-radius: 8px;
}

/* ====== بطاقات عرض الصيدليات ====== */
#pharmacyList .card {
    background-color: #f7f7ad; /* أزرق أغمق */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* شادو ناعم */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;

    border-color: #380791;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#pharmacyList .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

#pharmacyList .card-img-top {
    width: 100%;
    height: 200px; /* ثابت */
    object-fit: cover;
}

#pharmacyList .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-weight: 600; /* يخلي الخط أغلظ */
    font-size: 1rem;   /* حجم الخط، تقدر تزوده أو تنقصه حسب رغبتك */
}

.btn-details {
    padding: 8px 16px;
    font-weight: 600;
    margin-top: auto; /* يخلي الزر في آخر الكارد */
}

/* ====== عناوين الكروت ====== */
.card-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a237e; /* لون أزرق غامق */
}

/* ====== نصوص الموقع ====== */
.location,
.price {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 6px;
}

.location i,
.price i {
    color: #d32f2f;
    margin-left: 4px;
}

/* ====== الفوتر ====== */
footer {
    font-size: 0.9rem;
}

/* ====== الفورمات والفلاتر ====== */
.filters-section form label {
    font-weight: 600;
    color:#333;
}

.filters-section .btn-primary,
.filters-section .btn-secondary {
    font-weight: 700;
}
.filters-section {
    background-color: #dbf20a !important; /* نفس لون الهيدر */
    color: #ed0707 !important; /* لون النص عشان يكون واضح */
    padding: 1.5rem 0;
    border-radius: 8px;
    border: 2px solid #d32f2f; /* حدود حمراء واضحة */
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3); /* ظل خفيف للتميز */
}
/* تعديل زر الفلتر ليكون خلفيته بيضاء */
.btn-outline-secondary.dropdown-toggle {
  background-color: white !important; /* جعل الخلفية بيضاء */
  color: #333; /* جعل النص بلون داكن */
  border-color: #ced4da; /* تحديد اللون الرمادي الفاتح للحدود */
}

.btn-outline-secondary.dropdown-toggle:hover,
.btn-outline-secondary.dropdown-toggle:focus {
  background-color: #e9ecef !important; /* جعل الخلفية فاتحة عند التمرير */
  color: #333;
  border-color: #adb5bd;
}
/* ====== بطاقات عرض الوظائف ====== */
#jobList .card {
    background-color: #f7f7ad; /* نفس اللون المستخدم في كروت الصيدليات */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* شادو ناعم */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 20px;
   border-color: #380791;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#jobList .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* شادو أقوى عند التحويم */
}

#jobList .card-img-top {
    width: 100%;
    height: 200px; /* ثابت */
    object-fit: cover;
}

#jobList .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-weight: 600;
    font-size: 1rem;
}
/* توحيد الخط في صفحة تواصل معنا */
body {
    font-family: 'Almarai', sans-serif;
}

/* تحسين عرض البريد الإلكتروني */
a[href^="mailto:support@pharm-gate.com"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #d32f2f;
    color: #d32f2f;
    border-radius: 8px;
    transition: all 0.3s ease;
}

a[href^="mailto:support@pharm-gate.com"]:hover {
    background-color: #d32f2f;
    color: white;
}

a[href^="mailto:support@pharm-gate.com"] i {
    margin-right: 8px;
}
/* استخدام Flexbox لتوزيع الصفحة بشكل جيد */
body, html {
    height: 100%;  /* تأكد من أن الصفحة تأخذ كامل ارتفاع الشاشة */
    margin: 0;     /* إزالة الهامش الافتراضي */
    display: flex;
    flex-direction: column;  /* ترتيب المحتوى عموديًا */
}

.container {
    flex: 1;  /* سيشغل المساحة المتاحة للمحتوى */
}

/* تنسيق الفوتر ليبقى أسفل الصفحة */
footer {
    margin-top: auto;  /* يدفع الفوتر ليبقى في أسفل الصفحة */
}
/* تخصيص الأيقونة في الـ Navbar */
.navbar-nav .nav-item .dropdown-toggle {
    font-size: 1.5rem;
    color: white;
}

/* تخصيص الأزرار داخل الـ Dropdown */
.navbar-nav .nav-item .dropdown-menu {
    width: 200px;
}

/* تخصيص الأزرار داخل الـ Dropdown */
.navbar-nav .nav-item .dropdown-item {
    font-size: 1rem;
    padding: 10px;
    color: #333;
}

.navbar-nav .nav-item .dropdown-item:hover {
    background-color: #d32f2f;
    color: #FFFFFF;
}


/* Custom CSS */
.google-dropdown {
  width: 100%; /* يجعل القائمة المنسدلة أوسع */
  padding: 0.5rem; /* إضافة مساحة داخلية للقائمة */
}
.star-rating i {
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  transition: color 0.2s;
}

.star-rating i.hovered,
.star-rating i.selected {
  color: #ffc107;
}

.google-signin-btn {
  background: linear-gradient(90deg, #ea4335, #fbbc05, #34a853, #4285f4); /* ألوان جوجل */
  background-size: 300%;
  color: white !important;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  width: 100%; /* يجعل الزر يغطي القائمة بالكامل */
  padding: 0.75rem;
  transition: background-position 0.5s ease;
}

.google-signin-btn:hover {
  background-position: 100%; /* تأثير تحريك الألوان عند التحويم */
}


/* تحسين العرض العام للقائمة المنسدلة */
.dropdown-menu {
  min-width: 300px; /* ضبط الحد الأدنى للعرض */
   padding: 0.5rem; /* إضافة مساحة داخلية
}





#post-list-view, #single-post-view {
  margin-top: 20px;
}

#new-post-form div {
  margin-bottom: 10px;
}

#new-post-form label,
.new-comment-form label {
  display: block;
  margin-bottom: 5px;
}

#new-post-form input,
#new-post-form textarea,
.new-comment-form input,
.new-comment-form textarea {
  width: 100%;
  padding: 8px;
  box-sizing: border-box;
}

.post-title-link {
  cursor: pointer;
  color: blue;
  text-decoration: underline;
  margin-bottom: 5px;
  display: block;
}

.post-meta,
.comment-meta {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}

#single-post-content {
  margin-bottom: 20px;
}

.comments-section {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
}

.comment {
  margin-bottom: 15px; /* Increased margin for card appearance */
  padding: 15px; /* Increased padding for card appearance */
  background-color: #e0ffe0; /* Light green background */
  border: 1px solid #c0d8c0; /* Subtle border */
  border-radius: 8px; /* Rounded corners */
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 10px; /* Space between buttons */
}

.comment .comment-actions button {
  cursor: pointer;
  background-color: #ff0000; /* Red background */
  color: white; /* White text */
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-flex; /* Align icon and text */
  align-items: center;
}

.comment .comment-actions button svg {
    margin-right: 5px; /* Space between icon and text */
}

.report-button {
  background-color: #f0f0f0; /* Light grey background */
  color: #333; /* Dark text */
  border: 1px solid #ccc; /* Grey border */
  padding: 3px 8px; /* Smaller padding */
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em; /* Smaller font size */
}

.reply-form {
  margin-top: 10px;
  margin-left: 20px;
  padding-left: 10px;
  border-left: 2px solid #eee;
}

.new-comment-form {
  margin-top: 15px;
  padding: 15px;
  background-color: skyblue; /* Light blue background */
  border: 1px solid #87ceeb; /* Subtle border */
  border-radius: 8px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Styling for the new comment form submit button */
.new-comment-form button[type="submit"] {
  cursor: pointer;
  background-color: #ff0000; /* Red background */
  color: white; /* White text */
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  margin-top: 10px; /* Add some space above the button */
}

/* Styling for the file input label to make it look like a button */
.new-comment-form input[type="file"] + label {
  cursor: pointer;
  background-color: #ff0000; /* Red background */
  color: white; /* White text */
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px; /* Add some space below the label */
}

/* Hide the actual file input */
.new-comment-form input[type="file"] {
  display: none;
}


/* ✅ تثبيت الفوتر دائمًا أسفل الصفحة */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex-grow: 1;
}
