/* توحيد التصميم بين الصفحات */
body {
  background: #f8f9fa;
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  direction: rtl;
}

.navbar {
  background: linear-gradient(90deg, #007bff 60%, #28a745 100%);
  color: #fff;
  border-radius: 0 0 16px 16px;
  margin-bottom: 2rem;
}
.navbar .nav-link, .navbar-brand {
  color: #fff !important;
  font-size: 1.1rem;
  margin-right: 1rem;
}
.navbar .nav-link.active {
  font-weight: bold;
  text-decoration: underline;
}

.main-header, .main-footer {
  background: #007bff;
  color: #fff;
  border-radius: 12px;
}

.btn-main, .btn-primary {
  background: #28a745 !important;
  border: none;
  color: #fff;
}
.btn-main:hover, .btn-primary:hover {
  background: #218838 !important;
}

.table {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}
.table th, .table td {
  vertical-align: middle;
}

footer.main-footer {
  background: #222;
  color: #fff;
  border-radius: 12px;
  margin-top: 2rem;
}

/* معاينة الشعار */
#logo-preview {
  border: 2px solid #007bff;
  border-radius: 8px;
  background: #fff;
}

/* تخصيص المودال */
.modal-content {
  border-radius: 16px;
}

/* تخصيص الأزرار الثانوية */
.btn-secondary {
  background: #6c757d !important;
  color: #fff;
}

/* ريسبونسف للشاشات الصغيرة */
@media (max-width: 767.98px) {
  .navbar {
    font-size: 0.95rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0 0 8px 8px;
  }
  .navbar .nav-link, .navbar-brand {
    font-size: 1rem;
    margin-right: 0.5rem;
  }
  .main-header, .main-footer {
    font-size: 1rem;
    padding: 0.7rem 0.5rem;
    border-radius: 8px;
  }
  .container, main.container {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  .card, .table {
    border-radius: 8px;
    font-size: 0.97rem;
  }
  .btn, .btn-main, .btn-primary, .btn-secondary {
    font-size: 0.97rem;
    padding: 0.4rem 0.7rem;
  }
  .modal-content {
    border-radius: 10px;
    padding: 0.7rem;
  }
  #logo-preview {
    max-width: 60px !important;
    max-height: 60px !important;
  }
  h1, h2, h3, h4, h5 {
    font-size: 1.1rem !important;
  }
  .row.g-4 > [class^="col-"] {
    margin-bottom: 1rem;
  }
}

@media (max-width: 575.98px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-header, .main-footer {
    text-align: center;
    font-size: 0.98rem;
  }
  .card, .table {
    font-size: 0.95rem;
  }
  .btn, .btn-main, .btn-primary, .btn-secondary {
    font-size: 0.95rem;
    padding: 0.35rem 0.5rem;
  }
  .modal-content {
    padding: 0.5rem;
  }
  h1, h2, h3, h4, h5 {
    font-size: 1rem !important;
  }
} 
