.fs-16 {
    font-size: 16px;
}
.main-wrapper .page-wrapper.full-page{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
 }
 .rounded-12 {
    border-radius: 12px;
}
.bg-dark-blue{ background-color: #0d6efd; }
.bg-dark-blue:hover,
.bg-dark-blue:focus,
.bg-dark-blue:focus-visible,
.bg-dark-blue:active {
    background-color: #0b5ed7; /* darker on hover */
}
/* .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
} */
.a-btn{
  color: #667eea !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}
.alert-error {
    background-color: rgba(255, 51, 102, 0.1);
    color: #ff1a53;
    border-color: rgba(255, 51, 102, 0.2);
}
.divider {
    width: 100%;
    height: 1px;
    background-color: #e5e7eb; /* light gray */
    margin: 20px 0 14px;
}

.badge-result {
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-result-passed {
  background-color: #dcfce7;
  color: #166534;
}
.badge-result-failed {
  background-color: #fee2e2;
  color: #b91c1c;
}
.badge-result-abandoned {
  background-color: #e5e7eb;
  color: #4b5563;
}

.badge-status {
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 500;
}
.badge-status-abandoned {
  background-color: #f3f4f6;
  color: #4b5563;
}  
.badge-status-completed {
  background-color: #e0f2fe;
  color: #075985;
}
.badge-status-failed {
  background-color: #fef2f2;
  color: #b91c1c;
}  
.badge-status-pending {
  background-color: #f3f4f6;
  color: #4b5563;
}
.badge-status-pending {
  background-color: #fffbeb;
  color: #92400e;
}  
.badge-status-success {
  background-color: #ecfdf3;
  color: #166534;
}
.badge-status-terminated {
  background-color: #ffedd5;
  color: #9a3412;
}
.badge-status-rescheduled-requested {
  background-color: #e0f2fe;
  color: #075985;
}
.badge-status-rescheduled-approved {
  background-color: #dcfce7;
  color: #166534;  
  /* background-color: #e0f2fe;
  color: #075985; */  
}
.badge-status-rescheduled-rejected {
  background-color: #fee2e2;
  color: #b91c1c;  
  /* background-color: #e0f2fe;
  color: #075985; */
}

.invalid-feedback-server {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #ff3366;
}

.dataTables_length {
  display: inline-block !important;
}

.dataTables_filter {
  display: inline-block !important;
  float: right;
}

.feather.feather-upload {
  width: 18px;
  height: 24px;
  vertical-align: sub;
  margin-right: 0 !important;
}
.feather.feather-filter {
  width: 18px;
  height: 24px;
  vertical-align: bottom;
  margin-right: 0 !important;
}
.feather.feather-plus {
  width: 20px;
  height: 24px;
  vertical-align: bottom;
  margin-right: 0 !important;
}
#adminCandidatesButtons {
  margin-bottom: 0;
}
#adminCandidatesButtons .dt-buttons {
  display: flex;
  gap: 0.5rem;
}
#adminCandidatesButtons .dt-button {
  padding: 0.575rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
}
#reviewerCandidatesButtons {
  margin-bottom: 0;
}
#reviewerCandidatesButtons .dt-buttons {
  display: flex;
  gap: 0.5rem;
}
#reviewerCandidatesButtons .dt-button {
  padding: 0.575rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
}
#reviewersButtons {
  margin-bottom: 0;
}
#reviewersButtons .dt-buttons {
  display: flex;
  gap: 0.5rem;
}
#reviewersButtons .dt-button {
  padding: 0.575rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
}

.dataTables_filter input {
  width: 250px;
  height: 38px;
  padding: 6px 12px;
  border: 1px solid #b1b8bf;
  border-radius: 6px;
  outline: none;
  }
  
  .dataTables_filter input:focus {
  border-color: #6571ff;
  box-shadow: 0 0 0 2px rgba(101,113,255,0.15);
  }
  
  .dataTables_filter {
  margin-bottom: 10px;
  }
.global-ajax-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  pointer-events: auto;
}
.global-ajax-overlay-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}
.global-ajax-overlay-spinner-wrapper {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
}
.global-ajax-overlay-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: globalAjaxSpin 0.8s linear infinite;
}
.global-ajax-overlay-text {
  font-size: 14px;
  font-weight: 500;
}
@keyframes globalAjaxSpin {
  to { transform: rotate(360deg); }
}

/* chat list */
.chat-container {
  display: flex;
  height: calc(100vh - 200px);
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  background: #ffffff;
  overflow: hidden;
}
.chat-sidebar {
  width: 350px;
  border-right: 1px solid #e5e7eb;
  display: flex;
  flex-direction: column;
  background: #f9fafb;
}
.chat-sidebar-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}
.chat-sidebar-search {
  position: relative;
}
.chat-sidebar-search input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}
.chat-sidebar-search i {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
}
.chat-list {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
}
.chat-item {
  padding: 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
  transition: background-color 0.2s;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}
.chat-item:hover {
  background: #f3f4f6;
}
.chat-item.active {
  background: #eff6ff;
  border-color: #3b82f6;
}
.chat-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}
.chat-item-user {
  font-weight: 600;
  font-size: 0.875rem;
  color: #111827;
}
.chat-item-time {
  font-size: 0.75rem;
  color: #6b7280;
}
.chat-item-message {
  font-size: 0.875rem;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chat-item-unread {
  background: #3b82f6;
  color: #ffffff;
  border-radius: 999px;
  padding: 0.125rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 1.25rem;
  text-align: center;
}
.chat-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}
.chat-main-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 0.875rem;
}
.chat-main-header {
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-main-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
}
.chat-main-header-info {
  flex: 1;
}
.chat-main-header-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #111827;
}
.chat-main-header-status {
  font-size: 0.75rem;
  color: #6b7280;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-message {
  display: flex;
  gap: 0.5rem;
  max-width: 70%;
  animation: fadeIn 0.3s ease-in;
}
.chat-message.sent {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.chat-message.received {
  align-self: flex-start;
}
.chat-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.75rem;
  flex-shrink: 0;
}
.chat-message.received .chat-message-avatar {
  background: #9ca3af;
}
.chat-message-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.chat-message-bubble {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  word-wrap: break-word;
}
.chat-message.sent .chat-message-bubble {
  background: #3b82f6;
  color: #ffffff;
  border-bottom-right-radius: 0.25rem;
}
.chat-message.received .chat-message-bubble {
  background: #f3f4f6;
  color: #111827;
  border-bottom-left-radius: 0.25rem;
}
.chat-message-time {
  font-size: 0.75rem;
  color: #9ca3af;
  padding: 0 0.5rem;
}
.chat-input {
  padding: 1rem;
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.chat-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}
.chat-input button {
  padding: 0.75rem 1.5rem;
  background: #3b82f6;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chat-input button:hover {
  background: #2563eb;
}
.chat-input button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}
.chat-input input:focus {
  outline: none;
  border-color: #3b82f6;
}
.loading-messages {
  text-align: center;
  padding: 1rem;
  color: #6b7280;
  font-size: 0.875rem;
}
.load-more-btn {
  text-align: center;
  padding: 0.5rem;
}
.load-more-btn button {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.load-more-btn button:hover {
  background: #f3f4f6;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* chat list */

/* exam details */
.exam-detail-page .card { border-radius: 0.5rem; overflow: hidden; }
.exam-detail-page .card-header {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.exam-detail-page .card-header.bg-primary { background: #2563eb; color: #fff; border: none; }
.exam-detail-page .card-header.bg-success { background: #16a34a; color: #fff; border: none; }
.exam-detail-page .card-header.bg-light { background: #f8fafc; color: #334155; }
.exam-detail-page .detail-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.5rem 0; border-bottom: 1px solid #f1f5f9; }
.exam-detail-page .detail-row:last-child { border-bottom: none; }
.exam-detail-page .detail-label { color: #64748b; font-size: 0.875rem; }
.exam-detail-page .detail-value { font-weight: 500; color: #0f172a; }
.exam-detail-page .score-value { font-size: 0.9rem; font-weight: 700; }
.exam-detail-page .score-value.text-success { color: #16a34a; }
.exam-detail-page .score-value.text-danger { color: #dc2626; }
.exam-detail-page .badge-passed { background: #dcfce7; color: #166534; }
.exam-detail-page .badge-failed { color: #991b1b; background: #fee2e2; }
.exam-detail-page .cert-issued { display: inline-flex; align-items: center; gap: 0.5rem; color: #16a34a; font-weight: 500; }
.exam-detail-page .btn-back { min-width: 160px; }
/* exam details */

/* schedule page */
/* Examination Guidelines: ~2/3 viewport, scrollable body, no close control in header */
#scheduleInstructionModal .modal-dialog.schedule-instruction-modal-dialog {
  width: 49.444vw;
  max-width: 49.444vw;
  height: 88.888vh;
  max-height: 88.888vh;
  /* margin: 1rem auto; */
}

#scheduleInstructionModal .modal-content {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
  height: 100%;
  max-height: 88.888vh;
  display: flex;
  flex-direction: column;
}

#scheduleInstructionModal .modal-header {
  flex-shrink: 0;
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.25rem;
}

#scheduleInstructionModal .modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

#scheduleInstructionModal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  overflow: hidden;
}

#scheduleInstructionScrollArea .schedule-exam-guidelines-body {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
}

#scheduleInstructionScrollArea .schedule-exam-guidelines-body ul,
#scheduleInstructionScrollArea .schedule-exam-guidelines-body ol {
  padding-left: 1.1rem;
}

#scheduleInstructionScrollArea .schedule-exam-guidelines-body li {
  margin-bottom: 0.35rem;
}

#scheduleInstructionScrollArea.schedule-instructions-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 0.75rem;
  padding-right: 0.35rem;
}

#scheduleInstructionModal .schedule-instruction-agree-wrap {
  flex-shrink: 0;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

#scheduleInstructionModal .modal-footer {
  flex-shrink: 0;
  border-top: 1px solid #e5e7eb;
  padding: 0.875rem 1.25rem;
  gap: 0.5rem;
}

.schedule-instructions-list {
  margin: 0;
  padding-left: 0;
}

.schedule-instructions-list li {
  margin-bottom: 0.5rem;
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.5;
  list-style-type: disc;
}

.schedule-instructions-list li:last-child {
  margin-bottom: 0;
}
/* schedule page */

/* Reattempt modal — card-style shell (matches schedule exam instruction modal) */
#reattemptRequestModal .modal-content {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12);
}

#reattemptRequestModal .modal-header {
  border-bottom: 1px solid #e5e7eb;
  padding: 1rem 1.25rem;
}

#reattemptRequestModal .modal-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
}

#reattemptRequestModal .modal-body {
  padding: 1.25rem;
}

#reattemptRequestModal .modal-footer {
  border-top: 1px solid #e5e7eb;
  padding: 0.875rem 1.25rem;
  gap: 0.5rem;
}
/* Reattempt modal — card-style shell (matches schedule exam instruction modal) */

@media (max-width: 767px) {
  .dataTables_wrapper.dt-bootstrap5 .dataTables_length {
    text-align: center;
    margin-bottom: 10px;
  }

  .dataTables_wrapper.dt-bootstrap5 .dataTables_filter {
    text-align: center;
    margin-bottom: 10px;
  }  
}


@media (max-width: 576px) {
  #scheduleInstructionModal .modal-dialog.schedule-instruction-modal-dialog {
    width: calc(100vw - 1.5rem);
    max-width: calc(100vw - 1.5rem);
    height: 88.888vh;
    max-height: 88.888vh;
  }
}