/* 
  77A719
  95cc29
  E7F2D2
*/
* {
  text-transform: capitalize;
}

input,
textarea {
  text-transform: none;
}

th,
tr {
  text-align: left !important;
}

html,
body {
  min-height: 100vh;
}

.badge-sm {
  padding: 0.25rem 0.75rem;
  font-weight: 500;
  font-size: 0.8rem;
  border-radius: 1rem;
}

.z-99 {
  z-index: 99;
}

.circle-9 {
  width: 2.25rem;
  height: 2.25rem;
}

.rounded-circle {
  border-radius: 50%;
}

.items-end {
  align-items: flex-end;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mr-3 {
  margin-right: 0.75rem;
}

.mr-64 {
  margin-right: 16rem;
}

.ml-64 {
  margin-left: 16rem;
}

.overflow-hidden {
  overflow: hidden;
}

.whitespace-nowrap {
  white-space: nowrap;
}

.text-ellipsis {
  text-overflow: ellipsis;
}


li .active {
  font-weight: bold;
}

.text-bold {
  font-weight: bold;
}

.text-capitalize {
  text-transform: capitalize;
}

.menu.dropdown-content {
  position: relative;
}

.absolute {
  position: absolute !important;
}

.table th {
  font-size: 0.9rem;
}

.table td {
  font-size: 0.8rem;
}

.badge {
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 0.8rem;
  color: #fff;
}

/*  */

.banner {
  width: 100%;
  height: 250px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 50px 50px;
  position: relative;
  overflow: hidden;
}

.banner .avatar-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  filter: brightness(0.5);
}

.banner>.name {
  color: white;
  font-size: 3rem;
  font-weight: bold;
  text-transform: capitalize;
  z-index: 9;
}

.banner>.username {
  color: white;
  font-size: 1rem;
}

.account-info {
  text-transform: capitalize;
  border: 1px solid;
  padding: 25px 25px;
  border-radius: 10px;
}

.account-info>h3 {
  font-weight: 700;
  margin-bottom: 1rem;
}

.account-info>.info {
  flex-direction: column;
}

.account-info .title {
  font-size: 0.8em;
}

.account-info .info-value {
  font-size: 1.01em;
  font-weight: 500;
}

.image-hidden img {
  display: none;
}

/* تخصيص طريقة عرض الصور داخل المحرر */
.fr-view img {
  display: inline-block !important;
  /* التأكد من عرض الصور بجانب بعضها */
  margin: 5px;
  max-width: 150px;
  /* تحديد أقصى عرض للصورة */
  vertical-align: middle;
  /* ضبط محاذاة الصورة */
}

/* إزالة تأثير الفقرات التي تحط الصور تحت بعضها */
.fr-view p>img:only-child {
  display: inline-block !important;
  /* التأكد من عرض الصورة بجانب بعضها في حالة وجود صورة واحدة */
}

/* التأكد من أن الصور التي في الفقرات الأخرى تظهر بجانب بعضها */
.fr-view p {
  text-align: left;
  /* التأكد من محاذاة الفقرات بشكل صحيح */
  margin: 0;
}

.comment-content {
  padding: 0.5rem 3rem;
}

@media print {
  .drawer {
    display: none;
  }

  .navbar {
    display: none;
  }

  body {
    overflow: hidden;
  }
}

.badge-circle {
  width: 1rem;
  height: 1rem;
  padding: 1rem;
}

span.badge.badge-success.badge-circle.badge-sm {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0.5rem;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.text-lg {
  font-size: 1.4rem;
}

.text-lowercase {
  text-transform: lowercase;
}

.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 0.5rem;
  align-items: center;
}

.pagination li {
  margin: 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  text-decoration: none;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  border: 1px solid #d1d5db;
}

.pagination a {
  color: #374151;
  background-color: #ffffff;
}

.pagination a:hover {
  background-color: #f3f4f6;
  border-color: #3b82f6;
  color: #3b82f6;
}

.pagination .active span {
  background-color: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

.pagination .disabled span {
  color: #9ca3af;
  background-color: #f9fafb;
  border-color: #e5e7eb;
  cursor: not-allowed;
}

.dark .pagination a {
  color: #d1d5db;
  background-color: #374151;
  border-color: #4b5563;
}

.dark .pagination a:hover {
  background-color: #4b5563;
  border-color: #3b82f6;
  color: #3b82f6;
}

.dark .pagination .active span {
  background-color: #3b82f6;
  color: #ffffff;
  border-color: #3b82f6;
}

.dark .pagination .disabled span {
  color: #6b7280;
  background-color: #1f2937;
  border-color: #374151;
}

/* تصميم خاص للأسهم */
.pagination .page-link[rel="prev"],
.pagination .page-link[rel="next"] {
  font-weight: bold;
  min-width: 3rem;
}

.pagination .page-link[rel="prev"]::before {
  content: "←";
  margin-left: 0.25rem;
}

.pagination .page-link[rel="next"]::after {
  content: "→";
  margin-right: 0.25rem;
}

.rtl .pagination .page-link[rel="prev"]::before {
  content: "→";
}

.rtl .pagination .page-link[rel="next"]::after {
  content: "←";
}

.flex.items-center.gap-4 {
  transition: all 0.3s ease-in-out;
}

.news-card {
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* تحسين dropdown */
.dropdown-menu {
  animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* تحسين السلايدر */
.slider-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slider-item {
  flex-shrink: 0;
  padding: 0 12px;
  min-width: 0;
  box-sizing: border-box;
}

/* تحسين المؤشرات */
.slider-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.slider-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #d1d5db;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  flex-shrink: 0;
}

.slider-indicator:hover {
  background-color: #84cc16;
  transform: scale(1.2);
}

.slider-indicator.active {
  background-color: #84cc16;
  transform: scale(1.1);
}

/* تحسين أزرار التنقل */
.slider-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slider-nav-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: translateY(-50%) scale(1);
}

.slider-nav-btn.prev {
  left: 10px;
}

.slider-nav-btn.next {
  right: 10px;
}

/* تحسين البطاقات */
.news-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.news-card .card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
}

/* تحسين الإحصائيات */
.stats-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* تحسين التجاوب */
@media (min-width: 1536px) {
  .slider-item {
    width: 10% !important;
  }
}

@media (min-width: 1280px) and (max-width: 1535px) {
  .slider-item {
    width: 12.5% !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .slider-item {
    width: 16.666667% !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .slider-item {
    width: 25% !important;
  }
}

@media (min-width: 640px) {
  .slider-item {
    width: 25% !important;
    /* 4 أخبار في الصفحة الكبيرة */
  }
}

@media (max-width: 639px) {
  .slider-item {
    width: 50% !important;
    /* 2 خبر في الصفحة الصغيرة */
    padding: 0 6px;
  }

  .slider-container {
    max-width: 100%;
    overflow: hidden;
  }

  .slider-track {
    width: 100%;
  }

  .slider-indicators {
    gap: 6px;
    margin: 12px 0;
  }

  .slider-indicator {
    width: 10px;
    height: 10px;
  }
}

@media (max-width: 480px) {
  .slider-item {
    width: 100% !important;
  }
}

/* تحسين البطاقات الصغيرة */
@media (max-width: 1023px) {
  .news-card .card-content {
    padding: 12px;
  }

  .news-card h3 {
    font-size: 13px;
    line-height: 1.3;
  }

  .news-card .text-xs {
    font-size: 11px;
  }

  .news-card img,
  .news-card .w-full.h-32,
  .news-card .w-full.h-32.bg-gradient-to-br {
    height: 100px !important;
    min-height: 100px !important;
    max-height: 120px !important;
  }
}

@media (max-width: 767px) {
  .slider-nav-btn {
    width: 28px;
    height: 28px;
  }

  .slider-indicator {
    width: 6px;
    height: 6px;
  }

  .news-card .card-content {
    padding: 10px;
  }

  .news-card h3 {
    font-size: 12px;
  }

  .news-card .text-xs {
    font-size: 10px;
  }

  /* ضمان عدم تجاوز عرض الشاشة */
  .news-card {
    max-width: 100%;
    overflow: hidden;
  }

  .news-card img,
  .news-card .w-full.h-32,
  .news-card .w-full.h-32.bg-gradient-to-br {
    height: 80px !important;
    min-height: 80px !important;
    max-height: 100px !important;
  }
}

/* تقليل ارتفاع الصورة */
.news-card img,
.news-card .w-full.h-32,
.news-card .w-full.h-32.bg-gradient-to-br {
  height: 120px !important;
  min-height: 120px !important;
  max-height: 140px !important;
}

/* طريقة العرض القائمة */
.slider-container.list-view .slider-track {
  flex-direction: column;
  gap: 16px;
}

.slider-container.list-view .slider-item {
  width: 100% !important;
  padding: 0;
}

.slider-container.list-view .news-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.slider-container.list-view .news-card .relative {
  width: 200px;
  flex-shrink: 0;
}

.slider-container.list-view .news-card .card-content {
  flex: 1;
  padding: 16px;
}

.slider-container.list-view .news-card img,
.slider-container.list-view .news-card .w-full.h-32,
.slider-container.list-view .news-card .w-full.h-32.bg-gradient-to-br {
  height: 120px !important;
  width: 200px !important;
  object-fit: cover;
}

@media (max-width: 767px) {
  .slider-container.list-view .news-card {
    flex-direction: column;
    align-items: stretch;
  }

  .slider-container.list-view .news-card .relative {
    width: 100%;
  }

  .slider-container.list-view .news-card img,
  .slider-container.list-view .news-card .w-full.h-32,
  .slider-container.list-view .news-card .w-full.h-32.bg-gradient-to-br {
    width: 100% !important;
    height: 150px !important;
  }
}

/* طريقة العرض القائمة لقسم "كل الأخبار" */
.news-grid-container .list-view .slider-track {
  flex-direction: column;
  gap: 16px;
}

.news-grid-container .list-view .slider-item {
  width: 100% !important;
  padding: 0;
}

.news-grid-container .list-view .news-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
}

.news-grid-container .list-view .news-card .relative {
  width: 200px;
  flex-shrink: 0;
}

.news-grid-container .list-view .news-card .card-content {
  flex: 1;
  padding: 16px;
}

.news-grid-container .list-view .news-card img,
.news-grid-container .list-view .news-card .w-full.h-32,
.news-grid-container .list-view .news-card .w-full.h-32.bg-gradient-to-br {
  height: 120px !important;
  width: 200px !important;
  object-fit: cover;
}

@media (max-width: 767px) {
  .news-grid-container .list-view .news-card {
    flex-direction: column;
    align-items: stretch;
  }

  .news-grid-container .list-view .news-card .relative {
    width: 100%;
  }

  .news-grid-container .list-view .news-card img,
  .news-grid-container .list-view .news-card .w-full.h-32,
  .news-grid-container .list-view .news-card .w-full.h-32.bg-gradient-to-br {
    width: 100% !important;
    height: 150px !important;
  }
}



.badge-info {
  background-color: #dbeafe;
  /* blue-100 */
  color: #2563eb;
  /* blue-600 */
}

.dark .badge-info {
  background-color: #1e40af;
  /* blue-900 */
  color: #93c5fd;
  /* blue-300 */
}

.badge-success {
  background-color: #bbf7d0;
  /* primary-100 */
  color: #15803d;
  /* primary-700 */
}

.dark .badge-success {
  background-color: #166534;
  /* primary-900 */
  color: #6ee7b7;
  /* primary-300 */
}

.badge-warning {
  background-color: #fef9c3;
  /* yellow-100 */
  color: #b45309;
  /* yellow-700 */
}

.dark .badge-warning {
  background-color: #a16207;
  /* yellow-900 */
  color: #fde68a;
  /* yellow-300 */
}

.badge-error,
.badge-fail {
  background-color: #fecaca;
  /* red-100 */
  color: #b91c1c;
  /* red-700 */
}

.dark .badge-error,
.dark .badge-fail {
  background-color: #7f1d1d;
  /* red-900 */
  color: #fca5a5;
  /* red-300 */
}

.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.25rem;
  vertical-align: middle;
  margin: 0;
}

.organization-info {
  display: none;
}

@media print {

  nav,
  #logo-sidebar {
    display: none;
  }

  main {
    margin-left: 0;
  }

  .btn-back,
  .print-hide {
    display: none;
  }

  .organization-info {
    display: block;
  }

  main#content-area {
    margin: 0 !important;
  }
}

.print-only-header,
.print-only-footer {
  display: none;
}

.notification-dropdown {
  overflow-y: scroll!important;
  position: absolute!important;
  inset: 0px auto auto 0px!important;
  margin: 0px!important;
  transform: translate(-237px, 40px)!important;
  max-height: 66vh!important;
  width: 330px!important;
}

.print-only {
  display: none;
  /* إخفاء المحتوى الافتراضي على الشاشة */
}

@media print {
  .print-hide {
    display: none !important;
    /* إخفاء محتوى الشاشة عند الطباعة */
  }

  .print-only {
    display: block !important;
    /* إظهار محتوى الطباعة عند الطباعة */
  }
}