html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #fafafa;
  overflow: hidden;
}

/* Default Layout: Two Columns */
/* .split-container {
    display: flex;
    height: 96vh;
    overflow: hidden;
}

.split {
    flex-grow: 1;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.divider {
    width: 12px;
    background: #6f42c1 !important;
    cursor: ew-resize;
    height: 100%;
}

.pdfViewer {
    transform-origin: top left;
    transition: transform 0.3s linear;
    width: 100%;
}


canvas {
    width: 100%;
    border-radius: 5px;
} */
.split-container {
  display: flex;
  height: 95%;
  overflow: hidden;
}

/* iPad Mini (768px width, Retina screens) */
/* Mobile (phones) */
@media (max-width: 575.98px) {
  .split-container {
    height: 96%;
  }
}

@media only screen and (min-device-width: 768px) and (max-device-width: 768px) and (-webkit-min-device-pixel-ratio: 1.5) {
  .split-container {
    height: 92%;
  }
}
/*
@media only screen and (min-device-width: 769px) and (max-device-width: 1366px) and (-webkit-min-device-pixel-ratio: 1.5) {
    .split-container {
        height: 65%;
    }
} 
 @media (min-width: 1367px),
(min-device-width: 1024px) and (-webkit-min-device-pixel-ratio: 1) {
    .split-container {
        height: 90%;
    }
} */

.h-90 {
  height: 90% !important;
}

.split {
  flex-grow: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  /* overflow-y: auto; */
}

/* .divider {
    width: 12px;
    background: #6f42c1 !important;
    cursor: ew-resize !important;
    height: 100% !important;
} */
.divider {
  width: 12px;
  background: #6f42c1 !important;
  cursor: col-resize !important;
  /* works on desktop */
  height: 100% !important;
  touch-action: pan-y;
  /* allow vertical scrolling while touching */
}

.handle {
  width: 100%;
  height: 24px;
  background: url("drag-icon.svg") center center no-repeat;
  background-size: contain;
  margin: auto;
}

#pdfViewer {
  width: 100% !important;
  height: auto !important;
  transform-origin: top left !important;
}

.pdfViewer .page {
  margin: 10px auto;
  border: 0px !important;
}

canvas {
  width: 100% !important;
  border-radius: 5px !important;
}

#viewerContainer {
  height: 100vh;
  width: 100%;
  overflow: auto;
  position: absolute;
}

/* #viewerContainer {
    height: 100%;
    overflow: auto;
}

.pdfViewer {
    transform-origin: top left;
    transition: transform 0.1s linear;
}

canvas {
    display: block;
    margin-bottom: 10px;
}

.chat-container {
    display: flex;
    flex-direction: column;
    height: 96%;
} */

.chat-container {
  position: relative;
  height: 100%;
  /* Adjust height as needed */
  /* overflow: hidden; */
  display: flex;
  flex-direction: column;
}

.history-chat-container {
  height: 96%;
  padding: 10px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.history-chat-container {
  overflow-y: auto !important;
  max-width: 100%;
  background: #f8f9fa;
  padding: 10px;
  border-radius: 10px;
  max-height: 100%;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  /* Tablets and medium screens */
  .history-chat-container {
    height: 81%;
    padding: 8px;
  }
}

@media (max-width: 768px) {
  /* Small screens and mobile devices */
  .history-chat-container {
    height: 70%;
    padding: 6px;
  }
}

@media (max-width: 576px) {
  /* Extra small screens */
  .history-chat-container {
    height: 65%;
    padding: 5px;
  }
}

.chat-header {
  text-align: center;
  font-weight: bold;
  padding: 10px;
}

/* .chat-dropdown {
    padding: 10px;
    text-align: center;
} */

.chat-dropdown {
  position: sticky;
  top: -10;
  background-color: white;
  /* Ensure visibility */
  z-index: 1000;
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

.message {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto !important;
  min-height: 0;
}

/* 
.chat-text-container {
    border-radius: 20px;
    height: 55px !important;
    background: #fff;
    border: 1px solid #6f42c1 !important;
} */
.chat-text-container {
  border-radius: 20px;
  min-height: 55px;
  background: #fff;
  border: 1px solid #6f42c1 !important;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.custom-btn-snip {
  background-color: gray;
  box-shadow: 0cap;
  border-radius: 50px !important;
  border: none !important;
}

.custom-btn-root {
  background-color: gray;
  height: 30px !important;
  border-radius: 50px !important;
  border: none !important;
}

/* .pdf-viewer-container {
    width: 100%;
    padding: 5px;
    text-align: center;
    overflow-y: auto;
    flex-grow: 1;
    margin: 0 auto;
    height: calc(100vh - 135px);
    display: flex;
    flex-direction: column;
}

@media screen and (max-width: 768px) {
    .pdf-viewer-container {
        height: calc(100vh - 135px);
        padding: 8px;
    }
} */

.heading-select-dropdown {
  height: 40px !important;
  width: 250px !important;
  margin-bottom: 1px !important;
  border-radius: 8px !important;
  border: 1px solid #6f42c1 !important;
}

.heading-select-dropdown-history {
  height: 40px !important;
  margin-bottom: 1px !important;
  border-radius: 8px !important;
  border: none !important;
}

.project_all.filt_style_four .fliter_group .project_filter {
  border-bottom: 0px solid !important;
}

.service_box {
  border-top: 1px solid #83397b;
}

.bg-light {
  background: #f7f7f7 !important;
}

.text-orange {
  color: #ed6114;
}

.message {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@keyframes expandWidth {
  from {
    width: 25% !important;
  }

  to {
    width: 100% !important;
  }
}

.sent {
  animation: expandWidth 5s forwards !important;
  align-self: flex-end;
  background-color: #6f42c1 !important;
  color: white;
  padding: 10px;
  border-radius: 15px;
  max-width: 75%;
  word-wrap: break-word;
}

.received {
  animation: expandWidth 5s forwards !important;
  align-self: flex-start;
  background-color: #e5e5e5;
  color: black;
  padding: 10px;
  border-radius: 15px;
  max-width: 75%;
  word-wrap: break-word;
  margin-bottom: 10px !important;
}

.chatbot-select-dropdown {
  height: 40px !important;
  margin-bottom: 1px !important;
  border-radius: 8px !important;
  border: 1px solid #6f42c1 !important;
  width: 100% !important;
}

.custom-button {
  color: #fff;
  border-radius: 50px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  border: 0px solid #fff !important;
  transition: all 0.3s ease-in-out;
}

.custom-button:hover {
  background-color: #6f42c1 !important;
  color: #6f42c1 !important;
}

.custom-send-btn {
  border-radius: 20px !important;
  background-color: #6f42c1 !important;
  border: 0px solid;
  box-shadow: 1px 0px 9px rgba(0, 0, 0, 0.2);
}

.custom-header {
  background: rgba(100, 5, 195, 0.1);
  height: 60px;
}

.project_all.filt_style_four .fliter_group .project_filter li:after {
  background: #8d1bff !important;
}

.project_all.filt_style_four .fliter_group .project_filter li.current {
  color: #ed6114 !important;
}

.project_all.filt_style_four .fliter_group .project_filter li {
  padding: 0px 0px 0px !important;
}

.lesson-item {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

/* Ensure selected lesson also respects these rules */
.lesson-item.active {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background-color: #755198 !important;
  border: 0px solid purple !important;
  color: white !important;
}

.content_box_left {
  height: calc(100vh - 105px) !important;
  overflow-y: auto !important;
  box-shadow: 1px 0px 9px rgba(0, 0, 0, 0.1);
}

.service_box.type_one .content_box {
  padding: 18px 18px 18px !important;
}

.service_box.type_one {
  overflow: visible !important;
}

.date-header {
  position: sticky;
  top: -10px;
  z-index: 1;
  background: #f8f9fa;
  padding: 10px;
}

.message-history {
  display: flex;
  align-items: flex-end;
  margin-bottom: 15px;
}

.user-message,
.bot-message {
  max-width: 460px;
  padding: 10px 15px;
  border-radius: 15px;
}

.user-message {
  background: #e6d7f5;
  border-radius: 40px;
  text-align: right;
}

.bot-message {
  background: #755198 !important;
  color: white;
}

.timestamp {
  font-size: 12px;
  color: gray;
  margin-top: 5px;
}

.user-avatar,
.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.user .user-avatar {
  margin-left: 10px;
}

.bot .bot-avatar {
  margin-right: 10px;
}

.user {
  justify-content: flex-end;
}

.bot {
  justify-content: flex-start;
}

.autocomplete-active {
  background-color: DodgerBlue !important;
  color: #ffffff;
  background-color: DodgerBlue !important;
  color: #ffffff;
}

.autocomplete {
  position: relative;
  width: 100%;
}

.autocomplete-items {
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 100px;
  overflow-y: auto;
  z-index: 99;
}

.autocomplete-items div:last-child {
  border-bottom: none;
}

.autocomplete-items div {
  padding: 5px 10px;
  cursor: pointer;
  background-color: #fff;
}

.autocomplete-items div:hover {
  background-color: #e9e9e9;
}

.form-control {
  max-width: 100%;
}

.service_box_right {
  border-radius: 5px;
  box-shadow: 1px 0px 9px rgba(0, 0, 0, 0.1) !important;
  height: calc(100vh - 105px) !important;
}

#studyToolSelect {
  position: sticky;
  top: -10px;
  z-index: 1;
  background-color: white;
  padding: 10px;
  border-bottom: 2px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.scroll-container {
  max-height: 100vh !important;
  overflow-y: auto !important;
  padding-right: 5px;
}

.pdf-page {
  margin-bottom: 0px !important;
}

.custom-date {
  font-size: 11px !important;
}

.video-container {
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
}

#videoFrame {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
}

#videoModal .btn-close {
  z-index: 1055;
  padding: 8px;
  position: absolute;
  top: -39px;
  right: 0px;
  border: none;
  color: #fff;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  border: none;
  padding: 0px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease-in-out;
}

.play-button i {
  font-size: 50px;
  color: white;
  transition: color 0.3s ease-in-out;
}

.play-button:hover i {
  background: #6f42c1;
  border-radius: 50%;
}

.clear-chat-container {
  position: fixed;
  bottom: 160px;
  right: 16px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  z-index: 3000;
  pointer-events: auto;
}

.clear-chat-container.collapsed .clear-chat-btn {
  display: none;
}

.clear-chat-btn {
  background-color: #f0d4ff;
  border: none;
  padding: 10px 30px;
  font-size: 16px;
  color: rgb(0, 0, 0);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.toggle-clear-chat {
  background-color: #f0d4ff;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 5px;
  position: relative;
  z-index: 3001;
}

.custom-card {
  max-width: 650px !important;
  height: 650px !important;
}

.feedback-item {
  font-size: 13px !important;
}

/* Force black color on transparent PNGs */
.dropdown-icon-black {
  filter: brightness(0) saturate(100%);
}

/* Dark mode support (optional) */
.dark-mode .dropdown-icon-black {
  filter: brightness(0) saturate(100%) invert(100%);
}

#history_chat_container {
  overflow-y: auto;
  scroll-behavior: smooth;
}

.custom-purple-btn {
  background-color: #6f42c1 !important;
  border-radius: 10px !important;
  color: white !important;
  border: 1px solid transparent !important;
}

.custom-purple-btn:hover {
  background-color: white !important;
  color: #6f42c1 !important;
  border-color: #6f42c1 !important;
}

.loading-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  height: 30px;
}

.dotLoader {
  width: 10px;
  height: 10px;
  background-color: black;
  border-radius: 50%;
  animation: bounce 1.5s infinite ease-in-out;
}

.dotLoader:nth-child(1) {
  animation-delay: 0s;
}

.dotLoader:nth-child(2) {
  animation-delay: 0.2s;
}

.dotLoader:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.3;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

#viewerContainer.cropping-mode * {
  user-select: none;
  -webkit-user-select: none;
}

.le-tutor-float-bot {
  position: absolute;
  right: 18px;
  bottom: calc(100% - 10px);
  width: min(430px, calc(100% - 36px));
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 24px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(246, 240, 255, 0.98) 100%
  );
  border: 1px solid rgba(111, 66, 193, 0.18);
  box-shadow: 0 18px 40px rgba(111, 66, 193, 0.16);
  z-index: 5;
}

.le-tutor-float-bot::after {
  content: "";
  position: absolute;
  right: 36px;
  bottom: -10px;
  width: 18px;
  height: 18px;
  background: inherit;
  border-right: 1px solid rgba(111, 66, 193, 0.18);
  border-bottom: 1px solid rgba(111, 66, 193, 0.18);
  transform: rotate(45deg);
  border-radius: 2px;
}

.le-tutor-float-bot__avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #b794f4 0%, #6f42c1 100%);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 18px rgba(111, 66, 193, 0.25);
}

.le-tutor-float-bot__content {
  flex: 1;
  min-width: 0;
}

.le-tutor-float-bot__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}

.le-tutor-float-bot__sub {
  font-size: 12px;
  line-height: 1.4;
  color: #667085;
  max-width: 300px;
}

.le-tutor-float-bot__pill {
  border: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(111, 66, 193, 0.1);
  color: #6f42c1;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  cursor: default;
}

.le-tutor-mode-select-shell {
  position: relative;
  padding: 0;
  border-radius: 18px;
  /* background: linear-gradient(
    180deg,
    rgba(111, 66, 193, 0.16),
    rgba(111, 66, 193, 0.06)
  ); */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.le-tutor-mode-select-shell::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6f42c1;
  pointer-events: none;
  font-size: 13px;
  line-height: 1;
}

.le-tutor-mode-select {
  width: 100%;
  min-height: 54px;
  padding: 0 42px 0 16px !important;
  border-radius: 16px !important;
  border: 1px solid #ece6fb !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbf9ff 100%);
  background-image: none !important;
  color: #202638;
  font-size: 14px !important;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  line-height: 1.2;
}

.le-tutor-mode-select::-ms-expand {
  display: none;
}

.le-tutor-mode-select:focus {
  border-color: #6f42c1 !important;
  box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.14) !important;
}

.le-tutor-mode-select option {
  font-weight: 600;
}

@media (max-width: 575.98px) {
  .le-tutor-float-bot {
    position: static;
    width: 100%;
    margin-bottom: 12px;
    border-radius: 20px;
  }

  .le-tutor-float-bot::after {
    display: none;
  }

  .le-tutor-float-bot__top {
    flex-direction: column;
  }

  .le-tutor-float-bot__pill {
    align-self: flex-start;
  }

  .le-tutor-mode-select {
    min-height: 50px;
    font-size: 13px !important;
  }
}
