.dashboard {
  padding-top: 90px; /* تعويض الهيدر الثابت */
}

.dashboard-header {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.page-title {
  margin: 0;
  font-weight: bold;
}

.breadcrumb {
  background: none;
  margin: 0;
  padding: 0;
}

.dashboard-description {
  background: #fff;
  margin-top: 10px;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.welcome-box, .time-box {
  margin-top: 0;
}

.dashboard-section {
  background: #fff;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #eee;
  border-radius: 4px;
}

.breadcome-list{
    padding: 10px !important;
    margin: 5px !important;
    }


    /*  لوحة الإحصائيات - Bootstrap 5 */
.student-stats {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background-color: #fff;
}

.student-stats .panel-header {
  background-color: #123E7C;
  color: #fff;
  padding: 12px 20px;
  font-weight: bold;
  font-size: 16px;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.student-stats .list-group-item {
  border: none;
  border-bottom: 1px solid #eee;
  padding: 12px 16px;
  background-color: #f9f9f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.student-stats .list-group-item:hover {
  background-color: #f1f1f1;
}

.student-stats .list-group-item:last-child {
  border-bottom: none;
}

.student-stats .badge {
  background-color: #F7931E !important;
  font-size: 0.875rem;
  padding: 6px 10px;
  border-radius: 10px;
}

.bg-primary {
  background-color: #123E7C !important;
}

.btn-secondary {
  background-color: #F7931E;
}

.table.timetable td {
  vertical-align: top;
  min-width: 180px;
  padding: 10px;
  font-size: 13px;
  background-color: #fcfcfc;
}

.session-box {
  background: #eef8ff;
  padding: 8px;
  border-radius: 5px;
  border: 1px solid #cde0f7;
}


.timetable td {
  vertical-align: top;
  min-width: 200px;
  padding: 10px;
  font-size: 13px;
  background-color: #fdfdfd;
}

.session-box {
  background: #eef8ff;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #cce5ff;
  text-align: right;
}


.tab-pane{
  padding: 20px;
}

.mainmenu{
  background: white;
  color:#123E7C;
  border-radius: 40px;
  margin: 5px;
  padding: 5px;
  font-size: 15px;
  font-weight: bold
}

.menu-section .mainmenu {
  color:#123E7C !important;
}


.menu-section i {
  color:#F7931E !important;
}


.menu-section .mainmenu:hover {
  color:#fff !important;
}


/*  تخصيص شريط التمرير داخل القائمة الجانبية */
#dashboard-sidebar {
  max-height: 100vh;
  overflow-y: auto;
  scrollbar-width: thin; /* للفايرفوكس */
  scrollbar-color: #F7931E #123E7C; /* للفايرفوكس */
}

/*  تخصيص شريط التمرير للكروم والسفاري */
#dashboard-sidebar::-webkit-scrollbar {
  width: 8px;
}

#dashboard-sidebar::-webkit-scrollbar-track {
  background: #123E7C;
}

#dashboard-sidebar::-webkit-scrollbar-thumb {
  background-color: #999;
  border-radius: 4px;
  border: 2px solid #123E7C;
}

#dashboard-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: #666;
}

.sidebar-header{
  background:white;
  margin-right: 20px;
  border-radius: 0 100px 100px 0;
  padding: 0px;
  border-bottom: solid #F7931E 4px;
  margin-bottom: 20px;
}

.text-muted i.fa {
  color: #F7931E;
}


#global-preloader {
  transition: opacity 0.3s ease;
}



.table-dark {
  background-color: #123E7C !important;
  color: #fff !important;
}

.table-dark tbody {
  background-color: #14529b !important;
  color: #fff !important;
}

.table-dark td,
.table-dark th {
  border-color: #0f2e5c !important;
}

.form-group label {
  font-weight: bold;
  margin-bottom: 5px;
  display: inline-block;
  color: #333;
}

.form-control {
  border-radius: 6px;
  border: 1px solid #ccc;
  transition: all 0.3s ease-in-out;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.1);
}

textarea.form-control {
  background: #f9f9f9;
  font-size: 15px;
  line-height: 1.8;
}

.checkbox label {
  font-weight: normal;
  font-size: 15px;
  line-height: 1.6;
  display: block;
  color: #444;
}







  .course-plan-wrapper {
    text-align: right;

  }
  .course-cstm-card {
    border: 1px solid #e9ecef;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
  }
  .course-cstm-card .card-header {
    background: #0b3b74;
    color: #fff;
    padding: 1rem 1.25rem;
  }
  .course-cstm-card .card-header .subtitle {
    opacity: .9;
    font-size: .95rem;
  }

  /* Accordion styling */
  #planAccordion .accordion-item {
    border: 0;
    margin: 10px 12px;
    border-radius: 14px;
    overflow: hidden;
    background: #f8f9fb;
    box-shadow: 0 6px 18px rgba(13,110,253,.06);
  }
  #planAccordion .accordion-button {
    background: linear-gradient(135deg, #f0f6ff, #e9f2ff);
    color: #0b3b74;
    font-weight: 700;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e6effc;
    transition: background .2s ease, box-shadow .2s ease;
  }
  #planAccordion .accordion-button.collapsed {
    background: #f8fbff;
    color: #0b3b74;
  }
  #planAccordion .accordion-button:not(.collapsed) {
    box-shadow: inset 0 -1px 0 #e6effc;
  }

  #planAccordion .accordion-body {
    background: #fff;
    padding: 1rem 1rem 1.25rem;
  }

  /* Tables */
  .course-plan table {
    border-collapse: collapse;
    width: 100%;
    direction: rtl; /* عرض الجدول من اليمين لليسار */
  }
  .course-plan .table thead th {
    background: #f1f5f9 !important;
    vertical-align: middle;
    white-space: nowrap;
    text-align: right; /* محاذاة النص لليمين */
  }
  .course-plan .table td, 
  .course-plan .table th {
    border: 1px solid #e5e7eb !important;
  }
  .course-plan .part-title {
    margin: .75rem 0 .5rem;
    font-weight: 800;
    color: #0d6efd;
  }
  .badge-soft {
    background: #eef4ff;
    color: #0d6efd;
    border: 1px solid #dce8ff;
    padding: .35rem .6rem;
    font-size: .8rem;
    border-radius: 999px;
    margin-right: 3px;
  }


  .info-card {
      border: 1px solid #e9ecef;
      border-radius: 14px;
      background: #fff;
      box-shadow: 0 2px 10px rgba(30, 41, 59, 0.06);
      height: 100%;
    }
    .info-card .card-header {
      background: linear-gradient(90deg,#f8fafc,#f1f5f9);
      border-bottom: 1px solid #eef2f7;
      padding: .9rem 1rem;
      border-top-right-radius: 14px;
      border-top-left-radius: 14px;
    }
    .info-card .card-title {
      font-size: 1rem;
      margin: 0;
      font-weight: 700;
      color: #0f172a;
    }
    .info-card .card-body {
      padding: 1rem 1.1rem;
      color: #0f172a;
      line-height: 1.9;
      font-size: .95rem;
    }
    .list-checked {
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .list-checked li {
      position: relative;
      padding-right: 1.6rem;
      margin-bottom: .5rem;
    }
    .list-checked li:before {
      content: "✓";
      position: absolute;
      right: 0;
      top: 0.15rem;
      font-weight: 700;
      display: inline-flex;
    }
    .sep { margin: 0.25rem 0 0.6rem; border-top: 1px dashed #e2e8f0; }
    /* Responsive spacing between cards */
