.auth-overlay,
body.dark .auth-overlay {
  background-image: linear-gradient(
    -225deg,
    #231557 0%,
    #102c7a 29%,
    rgb(19 135 255 / 75%) 100%
  );
}

.text-bold {
  font-weight: bold !important;
}

.m-top-12 {
  margin-top: 12px !important;
}

body.dark
  #sidebar
  ul.menu-categories
  ul.submenu
  > li
  ul.sub-submenu
  > li
  a.active {
  color: #009688 !important;
}

body #sidebar ul.menu-categories ul.submenu > li ul.sub-submenu > li a.active {
  color: #4361ee !important;
}

body.dark td.contenteditable,
td.contenteditable {
  background: #fff5c4 !important;
}

.remove-search {
  background: none;
  background-color: #f9f9f9 !important;
  border: none;
  box-shadow: none;
}

.text-grade {
  font-size: 20px;
  font-weight: bold !important;
  color: #007c89 !important;
}

.table.table-grade {
  border: 2px groove;
}

body.layout-boxed table.table.table-grade {
  background: #a198982e !important;
}

body.layout-boxed.dark table.table.table-grade {
  background: #0000002e !important;
}

.pointer {
  cursor: pointer;
}

body.dark .header-container {
  background-color: #060818 !important;
}

.text-grade.passed {
  font-size: 26px;
  color: #06a127 !important;
}

.text-grade.failed {
  font-size: 26px;
  color: #a10606 !important;
}

.text-grade.na {
  font-size: 26px;
  color: #a7a4a4 !important;
}

body.layout-boxed.dark .text-grade.passed {
  font-size: 26px;
}

body.layout-boxed.dark .text-grade.failed {
  font-size: 26px;
}

body.layout-boxed.dark .text-grade.na {
  font-size: 26px;
}

.text-grade.small-failed {
  color: #e7515a !important;
}

.widget.widget-card-five .account-box .info-box .balance-info p {
  font-size: 18px;
}

body.dark .widget.widget-card-five .account-box .info-box .balance-info p {
  font-size: 18px;
}

.mysubject-icon-badge {
  position: absolute;
  top: -12px;
  left: -20px;
  background-color: #ff5252; /* Red color for the badge */
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 0 0 5px 0; /* Rounded bottom-right corner */
  z-index: 10;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.ask-ai {
  background-color: #4361ee;
  color: #ffff !important;
  border-radius: 50% !important;
  box-shadow: 0 0 0 6px #e0e6ed;
}

.ask-ai-font {
  font-size: 16px !important;
  padding: 9px 18px !important;
  font-weight: bold;
}

.ask-ai-font-14 {
  font-size: 14px !important;
  padding: 5px 12px !important;
  font-weight: bold;
  max-width: 230px !important;
}

.bubble {
  font-size: 16px;
  position: relative;
  display: inline-block;
  clear: both;
  margin-bottom: 8px;
  vertical-align: top;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  word-break: break-word;
  max-width: 500px;
}

.bubble.me {
  float: right;
  color: #fff;
  background-color: #4361ee;
  -webkit-align-self: flex-end;
  align-self: flex-end;
  -moz-animation-name: slideFromRight;
  -webkit-animation-name: slideFromRight;
  animation-name: slideFromRight;
  -webkit-box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14),
    0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14),
    0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.2);
  box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12),
    0 3px 5px -1px rgba(0, 0, 0, 0.2);
}

.bubble.you {
  float: left;
  color: #ffd04c !important;
  background-color: #767575;
  -webkit-align-self: flex-start;
  align-self: flex-start;
  -moz-animation-name: slideFromLeft;
  -webkit-animation-name: slideFromLeft;
  animation-name: slideFromLeft;
  -webkit-box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14),
    0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14),
    0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 3px 5px -1px rgba(0, 0, 0, 0.2);
  box-shadow: 0 6px 10px 0 rgba(0, 0, 0, 0.14), 0 1px 18px 0 rgba(0, 0, 0, 0.12),
    0 3px 5px -1px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1599px) and (min-width: 1400px) {
  .ms-lg-auto {
    margin-left: 91% !important;
  }
}

.chatbox {
  transform: translateY(100%); /* Initially off-screen */
  opacity: 0;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

.chatbox.open {
  transform: translateY(0); /* Slide into view */
  opacity: 1; /* Fully visible */
  display: block;
}

/* Toggle button fade-out */
#toggle-button {
  transition: opacity 0.3s ease-in-out;
}

#toggle-button.hidden {
  opacity: 0; /* Fully transparent */
  pointer-events: none; /* Disable interaction when hidden */
}

.chatbox-wrapper {
  width: 380px;
  max-width: 100%;
  opacity: 0;
}

.chatbox-wrapper[style*="display: block"] {
  opacity: 1;
}

/* Typing dots animation */
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: start;
  clear: both;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  background-color: #ccc;
  border-radius: 50%;
  animation: blink 1.5s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
}

.spinner-border {
  width: 20px;
  height: 20px;
}
