:root {
  --primary-color: #00bf63;
}

* {
  box-sizing: border-box !important;
}
/* .sidebar .sidebar-menu>ul>li>a span{
    color: var(--primary-color) !important;
}

.sidebar .sidebar-menu>ul>li {
    color: red;
} */

.sidebar .sidebar-menu > ul > li.active a {
  background: var(--primary-color);
}

.sidebar .sidebar-menu > ul > li > a span {
  font-weight: bold;
}

.btn-primary:hover {
  background-color: black !important;
  border: solid black 1px !important;
  transition: background-color ease-in-out 0.2s, border ease-in-out 0.2s;
}

.btn-dark {
  background-color: black !important;
  color: white !important; /* set default color for smooth transition */
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out,
    border 0.2s ease-in-out;
}

.btn-dark:hover {
  background-color: white !important;
  color: black !important;
}

.activity-boxes {
  border: 1px solid #ccc;
}

tr:nth-child(even) {
  background-color: #00bf6313;
}

.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content {
  flex: 1;
}

.with-icon::before {
  content: "";
  display: block;
  background-image: url("../img/checked-circle.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 60px;
  height: 60px;
  margin: 0 auto 8px; /* auto left & right = center horizontally, 8px bottom spacing */
}

.with-icon2::before {
  content: "";
  display: block;
  background-image: url("../img/question-icon.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 60px;
  height: 60px;
  margin: 0 auto 8px; /* auto left & right = center horizontally, 8px bottom spacing */
}

.backtopassedtests {
  background-color: #ccc;
}

.backtopassedtests:hover {
  background-color: black !important;
  color: white !important;
  transition: background-color ease-in-out 0.2s, color ease-in-out 0.2s;
}

.test-booked-list li {
  list-style-type: disc;
}

/* TOASE STYLES */

.toast {
  color: #fff;
  padding: 12px 16px;
  border-radius: 3px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-bottom: 10px;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative; /* Necessary for the line positioning */
}

.toast i {
  font-size: 16px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.show::after {
  content: "";
  position: absolute;
  bottom: 0; /* Position at the bottom of the toast */
  left: 0;
  width: 100%;
  height: 3px; /* Thickness of the line */
  background-color: rgba(255, 255, 255, 0.884);
  animation: lineAnimation 5s linear; /* Duration of line animation */
}

@keyframes lineAnimation {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.toast-success {
  background-color: #28a745;
  color: white;
}

.toast-danger {
  background-color: #dc3545;
  color: white;
}

.toast-info {
  background-color: #17a2b8;
  color: white;
}

.toast-warning {
  background-color: #ffc107;
  color: white;
}

.support-page:hover {
  color: black;
  transform: scale(1.1);
  font-weight: 600; /* Optional: if you want font-weight to animate */
}

/* .book-lab-btn.active {
  font-weight: bold;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.4);
} */

/* UPCOMING CONTAINER */

.upcoming-container {
  max-height: 200px;
  overflow-y: auto;
}

/* Custom Skeleton Styles */
.skeleton {
  background-color: #e2e2e2;
  border-radius: 4px;
  min-height: 20px;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150px;
  height: 100%;
  width: 150px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    left: -150px;
  }

  50% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

.hidden {
  display: none !important;
}

.fade {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.fade.show {
  opacity: 1;
}
