/* الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* الأساسيات */
:root {
  --primary-color: #2563eb; /* blue-600 */
  --primary-dark: #1d4ed8; /* blue-700 */
  --secondary-color: #059669; /* emerald-600 */
  --secondary-dark: #047857; /* emerald-700 */
  --danger-color: #dc2626; /* red-600 */
  --danger-dark: #b91c1c; /* red-700 */
  --warning-color: #d97706; /* amber-600 */
  --success-color: #16a34a; /* green-600 */
  --text-color: #1f2937; /* gray-800 */
  --text-light: #6b7280; /* gray-500 */
  --bg-light: #f9fafb; /* gray-50 */
  --bg-white: #ffffff;
}

/* تطبيق الخط العام */
body {
  font-family: 'Tajawal', sans-serif;
  direction: rtl;
  text-align: right;
  background-color: var(--bg-light);
  color: var(--text-color);
}

/* التخصيصات العامة */
.rtl {
  direction: rtl;
}

.ltr {
  direction: ltr;
}

.text-primary {
  color: var(--primary-color);
}

.bg-primary {
  background-color: var(--primary-color);
}

.hover\:bg-primary-dark:hover {
  background-color: var(--primary-dark);
}

/* شريط التنقل */
.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.nav-link {
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #bfdbfe; /* blue-200 */
}

/* قسم الهيرو */
.hero {
  background-color: var(--primary-color);
  background-image: linear-gradient(to bottom, var(--primary-color), var(--primary-dark));
  padding: 5rem 0;
}

.hero-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* الأزرار */
.btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.5rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-primary {
  color: white;
  background-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-size: 1.125rem;
}

/* البطاقات */
.card {
  background-color: var(--bg-white);
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.card-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
}

/* الجداول */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  background-color: #f3f4f6; /* gray-100 */
  padding: 0.75rem 1rem;
  text-align: right;
  font-weight: 600;
}

.table td {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e5e7eb; /* gray-200 */
}

.table tr:hover {
  background-color: #f9fafb; /* gray-50 */
}

/* النماذج */
.form-control {
  display: block;
  width: 100%;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--bg-white);
  background-clip: padding-box;
  border: 1px solid #d1d5db; /* gray-300 */
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* المودال */
.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1050;
  display: none;
  overflow: hidden;
  outline: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-dialog {
  max-width: 500px;
  width: 100%;
  margin: 1.75rem auto;
}

.modal-content {
  position: relative;
  background-color: var(--bg-white);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.5rem;
  outline: 0;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
 .clip-bottom {
    clip-path: ellipse(90% 90% at 50% 0%);
  }
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-body {
  position: relative;
  padding: 1rem;
}

/* الحالة */
.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-success {
  color: #166534; /* green-800 */
  background-color: #dcfce7; /* green-100 */
}

.badge-warning {
  color: #854d0e; /* amber-800 */
  background-color: #fef3c7; /* amber-100 */
}

.badge-danger {
  color: #991b1b; /* red-800 */
  background-color: #fee2e2; /* red-100 */
}

/* التجاوب */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
}

/* تخصيصات لوحة التحكم */
.dashboard-card {
  cursor: pointer;
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

.dashboard-card-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1rem;
}

/* تخصيصات إضافية للواجهة العربية */
.arabic-input {
  text-align: right;
  direction: rtl;
}

.arabic-list {
  padding-right: 0;
  list-style-position: inside;
}

/* الرسوم المتحركة البسيطة */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp 0.3s ease-in-out;
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
/* تأثيرات الحركة */
.service-card, 

section, 
footer {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.service-card {
    transform: translateY(20px);
}


section {
    transform: translateX(20px);
}

footer {
    transform: translateY(20px);
}

.visible {
    opacity: 1;
    transform: translate(0, 0) !important;
}
html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* تأثيرات hover للبطاقات */
.service-card {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 14px 28px rgba(0,0,0,0.1), 0 10px 10px rgba(0,0,0,0.08);
}

/* تأثيرات الأزرار */
button, [type='submit'] {
    transition: all 0.3s ease;
    transform: translateY(0);
}

button:hover, [type='submit']:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0,0,0,0.1);
}
footer {
  font-family: 'Tajawal', sans-serif;
  background-color: #111827; /* لون أغمق قليلاً من bg-gray-900 */
  transition: all 0.3s ease;
}

footer p {
  color: #e5e7eb; /* لون أبيض ناعم */
  letter-spacing: 0.5px;
}

footer span {
  color: #3b82f6; /* لون أزرق مشابه لزر الحجز */
  transition: color 0.3s ease;
}

footer:hover {
  background-color: #1f2937; /* تغيير لون الخلفية عند hover */
}

footer:hover span {
  color: #60a5fa; /* تغيير لون النص عند hover */
}

/* تأثيرات للروابط إذا أضفتها لاحقاً */
footer a {
  color: #9ca3af;
  transition: color 0.3s ease;
  text-decoration: none;
}

footer a:hover {
  color: #3b82f6;
  text-decoration: underline;
}

/* للشاشات الصغيرة */
@media (max-width: 768px) {
  footer {
    text-align: center;
    padding: 1.5rem 1rem;
  }
}
/* تنسيق القائمة على الهواتف */
@media (max-width: 768px) {
    .hidden.md\\:flex {
        display: none;
    }
    
    .hidden.md\\:flex.flex {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: #2563eb;
        width: 100%;
        padding: 1rem;
        z-index: 50;
    }
    
    .hidden.md\\:flex.flex a {
        padding: 0.75rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* تحسين التباين للنصوص */
    .text-gray-600 {
        color: #4b5563;
    }
    
    /* تحسين حجم الخطوط */
    .text-xl {
        font-size: 1.1rem;
    }
    
    /* تحسين تباعد العناصر */
    .service-card {
        margin-bottom: 1rem;
    }
}

 .image-wrapper {
    position: relative;
  }

  .image-wrapper::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(37, 99, 235, 0.6), transparent); /* أزرق متدرج */
    z-index: 1;
    pointer-events: none;
  }

  .image-wrapper img {
    position: relative;
    z-index: 0;
  }

  .image-caption {
    position: absolute;
    bottom: 8px;
    right: 12px;
    color: white;
    font-size: 0.875rem; /* text-sm */
    z-index: 2;
    font-weight: 500;
  }

  