.loading-spinner {
  position: relative;
  display: block;
}

@keyframes spinner {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  min-height: 24px;
}

.spinner:before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  margin-left: -10px;
  border-radius: 50%;
  border: 2px solid #ccc;
  border-top-color: #333;
  animation: spinner 1s linear infinite;
}

.select2 {
  width: 100% !important;
}

.ddlmaxwidth {
  max-width: 450px !important;
}

.table-row-highlight {
  background-color: #165491 !important;
  color: #fff;
}

.rowcorrect {
  background-color: #fff !important;
  color: #165491;
}

.rowwrong {
  background-color: #ffd1ce !important;
  color: #ca0303;
  font-weight: bold;
}

.txt-amount {
  text-align: right;
}

.content-wrapper-nl {
  background-color: #f4f6f9;
}

.content-wrapper-nl > .content {
  padding: 0 0.5rem;
}

.img-nl {
  max-width: 15%;
  height: auto;
  margin-bottom: 20px;
}

.cursor {
  color: #007bff;
  cursor: pointer;
}

.w-10 {
  width: 10% !important;
}

.w-20 {
  width: 20% !important;
}

.w-30 {
  width: 30% !important;
}

.w-40 {
  width: 40% !important;
}

.w-50 {
  width: 50% !important;
}

.w-60 {
  width: 60% !important;
}

.w-70 {
  width: 70% !important;
}

.w-80 {
  width: 80% !important;
}

.w-90 {
  width: 90% !important;
}

.w-100 {
  width: 100% !important;
}

.profile-upload-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
}

.profile-preview-wrapper {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px dashed #ccc;

  background-color: #f8f9fa;
  transition: border-color 0.3s;
}

.profile-preview-wrapper:hover {
  border-color: #007bff;
}

.profile-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-preview-wrapper .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 24px;
}

.profile-preview-wrapper:hover .overlay {
  opacity: 1;
}
/* 
#toastContainer {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1055;
}
.toast {
  opacity: 0;
  transform: translateX(100%);
  transition: all 0.5s ease-in-out;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
} */

.profile-avatar,
.profile-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: inline-block;
}
.profile-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  100% {
    background-position: -200% 0;
  }
}

/* Make profile column cells consistent */
#userTable td:first-child,
#userTable th:first-child {
  width: 70px;
  text-align: center;
  vertical-align: middle;
  padding: 0.25rem 0.5rem;
  min-height: 50px;
}
/* Other columns normal */
/* #userTable td:not(:first-child),
#userTable th:not(:first-child) {
  vertical-align: middle;
  padding: 0.5rem 0.75rem;

} */
.clickable-row {
  transition: background 0.2s ease, transform 0.1s ease;
}

.clickable-row:hover {
  cursor: pointer;
  background-color: #f8f9fa; /* very subtle hover */
  box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.02); /* soft highlight effect */
}

.clickable-row.active-row {
  outline: 2px solid #007bff; /* blue border */
  background-color: #e7f1ff; /* optional light blue background */
}
/* Flash green outline for 3 seconds */
.success-outline {
  outline: 2px solid #28a745; /* Bootstrap green */
  transition: outline 0.3s ease;
}

/* Hide DataTables sort arrows for the first column (Profile) */
#userTable thead th:first-child::after,
#userTable thead th:first-child::before {
  display: none !important;
}

.modal.fade .modal-dialog {
  transform: translateY(-50px);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.modal.show .modal-dialog {
  transform: translateY(0);
}

.table-hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.table-visible {
  opacity: 1;
  visibility: visible;
}

.skeleton-row {
  background: none;
}
.skeleton-line {
  height: 16px;
  width: 80%;
  background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
  background-size: 200% 100%;
  border-radius: 4px;
  animation: shimmer 1.2s infinite;
}
.skeleton-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(90deg, #eee 25%, #ddd 50%, #eee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.text-light {
  color: #0973de !important;
}

/* Make small-box inner text always white */
.small-box.bg-warning .inner h3,
.small-box.bg-warning .inner p {
  color: #ffffff !important;
}

/* Optional: make the footer link white as well */
.small-box.bg-warning .small-box-footer {
  color: #ffffff !important;
  background: rgba(0, 0, 0, 0.1);
}

.custom-photo-frame {
  width: 180px;
  height: 180px;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.custom-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swal2-container {
  z-index: 1099 !important; /* Higher than Bootstrap modal (z-index: 1050) */
}

.studemebg {
  color: #31353a !important;
  background-color: #e9ecef !important;
}

/* Message Styles */
.message-bubble {
  word-wrap: break-word;
}

.admin-message .message-bubble {
  border-bottom-right-radius: 0;
}

.user-message .message-bubble {
  border-bottom-left-radius: 0;
}

.messages-container {
  background-color: #f8f9fa;
  height: 400px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.messages-container::-webkit-scrollbar {
  width: 10px;
}

.messages-container::-webkit-scrollbar-thumb {
  background: #eee3e3;
  border-radius: 1px;
  min-height: 1px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
  background: #534848;
}

.messages-container::-webkit-scrollbar-track {
  background: transparent;
}

.file-card {
  transition: all 0.3s ease;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  padding: 0.75rem;
  background-color: white;
}

.file-card:hover {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.file-upload-indicator {
  font-size: 0.875rem;
}

.custom-photo-frame {
  width: 180px;
  height: 180px;
  border: 2px solid #dee2e6;
  border-radius: 0.375rem;
  overflow: hidden;
  margin: 0 auto;
}

.custom-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tab Styles */
.nav-tabs .nav-link.active {
  background-color: white;
  border-bottom-color: white;
}

.message-input textarea {
  resize: none;
}




.profile-img {
  width: 2.1rem!important;
  height: 2.1rem!important;
  border-radius: 50%;
  background-size: cover; 
  background-position: center;
  background-repeat: no-repeat;
}


@media (max-width: 576px) {
  .profile-img {
    width: 100px;
    height: 100px;
  }
}


.profile-photo-container {
  position: relative;
  display: inline-block;
}


.profile-photo {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 50%;
  cursor: pointer;
}

.spinner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.spinner-overlay.hidden {
  display: none;
}

.spinner-overlay i {
  font-size: 24px;
  color: #000;
}

/* Camera Label */
.camera-label {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 18px;
}

/* Upload Message */
.upload-message {
  display: none;
  margin-top: 0.5rem;
  text-align: center;
}
.queq-d-none {
  display: none !important;
}



 .camera-wrapper { position: relative; border: 4px solid #343a40; background: #000; border-radius: 8px; }
  .face-guide {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 150px; height: 200px;
    border: 3px dashed rgba(255,255,255,0.4);
    border-radius: 50% 50% 45% 45%;
    pointer-events: none; z-index: 10;
  }

  .crop-container { max-height: 400px; width: 100%; overflow: hidden; background: #f8f9fa; }
  #cropImage { max-width: 100%; display: block; }



