.custom-progress-bar {
  width: 100%;
  background-color: #ffffff;
  height: 8px;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 5px;
}

.custom-progress-fill {
  height: 100%;
  background-color: #18a500;
  transition: width 0.3s ease;
}

.progress-meta {
  font-size: 13px;
  margin-top: 0;
}

.progress-meta strong {
  color: #18a500;
}

.progress-meta span {
  color: #ffffff;
  float:right;
}
/* Admin progress section styling */
.custom-admin-progress {
    margin: 20px 0;
    font-size: 14px;
    border: 1px solid #ddd;
    padding: 15px;
    background: #f9f9f9;
}

.custom-admin-progress h3 {
    font-size: 16px;
    margin-bottom: 10px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

.custom-admin-progress table.form-table {
    width: 100%;
    border-collapse: collapse;
}
.form-table td {
    margin-bottom: 0px !important;
    padding: 5px 10px !important;
    line-height: .25 !important;
    vertical-align: middle !important;
	font-size:13px !important;
}

.custom-admin-progress table.form-table td,
.custom-admin-progress table.form-table th {
    padding: 4px 6px;
    vertical-align: top;
}

.custom-admin-progress table.form-table tr td label {
    display: block;
    padding-left: 20px;
    position: relative;
    font-weight: normal;
}

.custom-admin-progress table.form-table tr td input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 2px;
}

.custom-admin-progress .course-title {
    font-weight: bold;
    margin-top: 10px;
    color: #1a1a1a;
}
.topic-row {
  padding: 2px 0 2px 40px;
  font-size: 13px;
  line-height: 1.2;
}

.accordion-toggle {
  background: #f1f1f1;
  border: none;
  padding: 10px 15px;
  margin-top: 10px;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-size: 15px;
  border-radius: 5px;
}

.accordion-toggle:hover {
  background: #e9e9e9;
}

.accordion-content {
  margin-top: 10px;
  padding-left: 20px;
}

/* ✅ Status color styles */
.course-meta strong.status-in-progress,
.course-meta strong.status-completed {
    color: #18a500 !important; /* same green as progress bar */
}

/* Dashboard Styles */

.custom-dashboard-courses {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.course-card {
  background: #111;
  border: 1px solid #d00000;
  border-radius: 6px;
  padding: 15px;
  position: relative;
}

.course-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-title-link {
  font-size: 17px;
  color: white;
  font-weight: normal;
  text-decoration: none;
}
.course-title-link:hover {
  font-size: 17px;
  color: white;
  font-weight: bold;
  text-decoration: none;
}
.custom-progress-fill {
  height: 100%;
  background-color: #18a500;
  transition: width 0.3s ease;
}
.custom-dashboard h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.dashboard-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.dashboard-stats div {
  text-align: center;
  font-size: 16px;
  color: #ccc;
}

.dashboard-stats div strong {
  display: block;
  font-size: 28px;
  color: white;
}

.dashboard-courses {
  border-top: 1px solid #444;
}

.course-accordion {
  border: 1px solid red;
  border-radius: 5px;
  margin-bottom: 10px;
  background: #222;
}

.accordion-header {
  padding: 12px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  cursor: pointer;
}

.accordion-header .course-icon {
  margin-right: 10px;
  font-size: 18px;
}

.accordion-header .course-title {
  flex-grow: 1;
  text-decoration: none;
  color: white;
}

.accordion-toggle {
  margin-left: 10px;
  font-size: 18px;
}

.accordion-body {
  padding: 10px 15px;
  border-top: 1px solid #444;
}

.course-progress-bar {
  width: 100%;
  height: 8px;
  background-color: #444;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 5px;
}

.course-progress-fill {
  height: 100%;
  background-color: #18a500;
  width: 0;
  transition: width 0.3s ease;
}

.course-progress-meta {
  font-size: 12px;
  color: #ccc;
}

.badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 20px;
  margin-left: 10px;
}

.badge.in-progress {
  background: #111;
  border: 1px solid #18a500;
  color: #18a500;
}

.badge.complete {
  background: #18a500;
  color: white;
}

.expand-collapse {
  background: red;
  color: white;
  padding: 6px 12px;
  border: none;
  font-size: 13px;
  cursor: pointer;
  border-radius: 3px;
}

.pagination {
  margin-top: 20px;
  text-align: center;
}

.pagination a {
  color: white;
  padding: 4px 10px;
  margin: 0 2px;
  background: #333;
  border: 1px solid red;
  border-radius: 3px;
  text-decoration: none;
}

.pagination a.active {
  background: red;
}
/* === Welcome and Stats === */
.user-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-family: 'Montserrat', sans-serif;
}
.user-stats div {
  text-align: center;
  font-size: 14px;
  position: relative;
}
.user-stats div::after {
  content: "";
  width: 1px;
    height: 80px;
    background: #555;
    position: absolute;
    right: -20px;
    top: 8px;
}
.user-stats div:last-child::after {
  display: none;
}
.user-stats .stat-value {
    font-size: 3em;
    font-weight: bold;
    font-family: 'Open Sans';
}
.user-stats .stat-label {
  color: #ccc;
  font-size: 13px;
}
.welcome-message {
  font-size: 1.5em;
  color: #fff;
}
.welcome-username {
  font-size: 2em;
  font-weight: bold;
  margin-top: 1em;
}

/* === Accordion === */
.dashboard-course {
  background: #222;
  border: 2px solid #b80101;
  border-radius: 6px;
  margin-bottom: 3px;
  overflow: hidden;
  font-family: 'Open Sans', sans-serif;
}
.course-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px;
  cursor: pointer;
  background: #222;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.course-header.active {
  border-bottom: 2px solid #b80101;
}
.course-content {
  background: #121212;
  padding: 10px 20px;
}

/* === Toggle Button (arrow circle) === */
.course-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #b80101;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.3s ease;
  float: right;
    margin-left: 1em;
}
.course-toggle-btn.rotate {
  transform: rotate(180deg);
}

/* === Progress bar === */
.course-progress-container {
  margin-top: 10px;
}
.custom-progress-bar {
  width: 100%;
  background-color: #ffffff;
  height: 8px;
  border-radius: 5px;
  overflow: hidden;
}
.custom-progress-fill {
  height: 100%;
  background-color: #b80101;
  transition: width 0.3s ease;
}
.course-progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-top: 4px;
  color: #fff;
}
.course-progress-meta .progress-right {
  color: #fff;
  font-weight: bold;
}

/* === Completion Status === */
.course-status {
  padding: 3px 10px;
  font-size: 12px;
  font-weight: bold;
  color: #fff;
  background-color: #b80101;
  border-radius: 20px;
  text-transform: uppercase;
  margin-left: 10px;
  font-family: 'Open Sans', sans-serif;
}

/* Base checkmark: always a 30x30 circle with a white interior */
.course-checkmark {
  position: relative;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  background: #fff;          /* White center */
  border-radius: 50%;        /* Circular shape */
  box-sizing: border-box;
}

/* The icon in the middle (if any): keep it centered above pseudo-elements */
.course-checkmark-icon {
  font-size: 18px;
  position: relative;
  z-index: 2; /* ensures icon sits on top */
}

/* Completed: entire circle is solid red, with white icon if you prefer. */
.course-checkmark.completed {
  background: #b80101;   /* fill the circle red */
  border: 4px solid #b80101;  /* optional, a red ring outside the red fill */
  color: #fff;
}
/* In-progress: half red, half grey ring */
.course-checkmark.in-progress {
  /* remove any base border so we can build the half ring via pseudo-elements */
  border: none; 
  background: #fff;
}

/* Pseudo-elements form the ring, layered top (::after) over bottom (::before). */
.course-checkmark.in-progress::before,
.course-checkmark.in-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-sizing: border-box;
}
/* 1) ::before = full grey ring */
.course-checkmark.in-progress::before {
  border: 4px solid #ddd; 
}

/* 2) ::after = left half red */
.course-checkmark.in-progress::after {
  border: 4px solid #b80101;
  /* Hide the right half of the red ring (clip out the right 50%) */
  clip-path: inset(0 50% 0 0);
}

.course-checkmark-icon {
  font-size: 18px;
}

/* === Expand All Button === */
.expand-all-btn {
  font-weight: bold;
  background: #b80101;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  display: inline;
  align-items: center;
  gap: 6px;
}
.expand-all-btn .arrow {
  transform: rotate(0deg);
  transition: transform 0.3s ease;
}
.expand-all-btn.expanded .arrow {
  transform: rotate(180deg);
}
.your-courses {
	float: left;
    font-size: 22px;
    font-weight: bold;
}

/* 1) Container for the whole pagination bar, right-aligned */
.course-pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
}

/* 2) Single pill-shaped background containing left arrow, text, right arrow */
.ld-pagination-single {
    display: inline-flex;
    align-items: center;
    background: #d3d6db;
    border-radius: 20px;
    padding: 0px 10px;
    gap: 55px;

/* 3) Page text in the center */
.ld-page-text {
  font-size: 14px;
  color: #121212;
  font-weight: bold;
  text-align: center;
}

/* 4) Arrows on left/right */
.ld-arrow {
  font-size: 18px;
  color: #121212;
  cursor: pointer;
  transition: color 0.2s ease;
}

/* Hover effect if not disabled */
.ld-arrow:hover:not(.disabled) {
  color: #333;
}

/* Greyed out and unclickable when disabled */
.ld-arrow.disabled {
  color: #aaa;
  cursor: default;
}


/* Add extra spacing between each course block */
.dashboard-course {
    margin-bottom: 5px; /* Default was around 20px; now +5px */
}


