.trainer-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

#trainerSearch {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
}

#trainerTable {
  width: 100%;
  border-collapse: collapse;
}

#trainerTable th,
#trainerTable td {
  padding: 10px;
  border: 1px solid #ddd;
  vertical-align: top;
}

#trainerTable th {
  background: #f5f5f5;
  text-align: left;
}

.table-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

#trainerRowsPerPage {
  padding: 6px;
}

#trainerPagination {
  margin-top: 15px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

#trainerPagination button {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

#trainerPagination button:disabled {
  opacity: 0.5;
  cursor: default;
}

#trainerPagination .page-info {
  font-weight: 600;
}

/* MODAL OVERLAY */
#trainerModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* MODAL BOX */
#trainerModal .modal-content {
  background: #fff;
  max-width: 700px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px;
  border-radius: 6px;
  position: relative;
}

/* CLOSE BUTTON */
#trainerModal .modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

/* MODAL HEADINGS */
#trainerModal .modal-section {
  margin-bottom: 20px;
}

#trainerModal .modal-section h3 {
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* CLICKABLE NAME */
.trainer-link {
  color: #0055aa;
  text-decoration: underline;
  cursor: pointer;
}
/* Table wrapper */
.curriculum-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-bottom: 20px;
}

/* Search input */
#curriculumSearch {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 16px;
  border: 1px solid #ccc;
}

/* Table */
#curriculumTable {
  width: 100%;
  border-collapse: collapse;
}

#curriculumTable th,
#curriculumTable td {
  padding: 10px;
  border: 1px solid #ddd;
  vertical-align: top;
}

#curriculumTable th {
  background: #f5f5f5;
  text-align: left;
}

/* Clickable name */
.curriculum-link {
  color: #0055aa;
  text-decoration: underline;
  cursor: pointer;
  font-weight: bold; /* Name in first column bold */
}

/* Table controls */
.table-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

#curriculumRowsPerPage {
  padding: 6px;
}

/* Pagination */
.pagination {
  margin-top: 15px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.pagination button {
  padding: 6px 12px;
  border: 1px solid #ccc;
  background: #fff;
  cursor: pointer;
}

.pagination button:disabled {
  opacity: 0.5;
  cursor: default;
}

.pagination .page-info {
  font-weight: 600;
}

/* Modal overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal box */
.modal-content {
  background: #fff;
  max-width: 700px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 25px;
  border-radius: 6px;
  position: relative;
}

/* Close button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

/* Modal sections */
.modal-section {
  margin-bottom: 20px;
}

.modal-section h3 {
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* Optional: smaller font for modal paragraphs */
.modal-section p {
  font-size: 14px;
  line-height: 1.4;
}
