/* assets/css/style.css */
:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --success: #4cc9f0;
  --info: #4895ef;
  --warning: #f72585;
  --danger: #e63946;
  --light: #f8f9fa;
  --dark: #212529;
  --border-radius: 12px;
  --box-shadow: 0 8px 30px rgba(0,0,0,0.05);
}

body {
  font-family: 'Tajawal', sans-serif;
  background-color: #f5f7fa;
  color: #2b2d42;
}

/* تحسين الخط للعربية */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* تخصيص البطاقات */
.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.card-header {
  background-color: white;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-weight: 700;
  border-radius: var(--border-radius) var(--border-radius) 0 0 !important;
}

/* أزرار مخصصة */
.btn {
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  transform: scale(1.02);
}

/* تحسين القوائم */
.list-group-item {
  border: none;
  margin-bottom: 5px;
  border-radius: 10px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

/* شارات الحالة */
.badge {
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
}

/* تحسين الجداول */
.table {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.table thead th {
  background-color: #f8f9fa;
  border-bottom: 2px solid #e9ecef;
  font-weight: 600;
}

/* تذييل الصفحة (اختياري) */
.footer {
  background: white;
  padding: 1.5rem 0;
  margin-top: 3rem;
  box-shadow: 0 -4px 12px rgba(0,0,0,0.02);
}

/* تحسين مظهر روابط التنقل */
.navbar {
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  padding: 1rem 2rem;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary) !important;
}

.nav-link {
  font-weight: 500;
  color: #4a4e69 !important;
  margin: 0 0.2rem;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(67, 97, 238, 0.1);
  color: var(--primary) !important;
}

/* تصميم خاص للإشعارات */
.notification-badge {
  background-color: var(--warning);
  color: white;
  border-radius: 50%;
  padding: 0.2rem 0.5rem;
  font-size: 0.7rem;
  position: relative;
  top: -10px;
  right: -5px;
}

/* تحسين الحقول */
.form-control {
  border-radius: 10px;
  border: 1px solid #e9ecef;
  padding: 0.75rem 1rem;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.25);
}

/* تنسيقات إضافية */
.alert {
  border-radius: 12px;
  border: none;
}

.display-6 {
  font-size: 2rem;
  font-weight: 700;
}