body {
  box-sizing: border-box;
  font-weight: 400;
  background: #f7fafc;
}

/* Responsive Logo Styles */
.logo {
  width: 254px;
  height: 54px;
}

@media (max-width: 600px) {
  .logo {
    width: 150px;
    height: 40px;
  }
}

.fs-16 {
  font-size: 16px;
}
.fs-32 {
  font-size: 32px;
}
.fs-40 {
  font-size: 40px;
}
.mb-25 {
  margin-bottom: 25px;
}
.mb-50 {
  margin-bottom: 50px;
}
.r-h-100 {
  height: 100vh;
}
.min-h-100 {
  min-height: 100dvh;
}
.p-30 {
  padding: 30px;
}
.txt-user {
  color: #4a739c;
  font-size: 13px;
  font-weight: 400;
  margin-bottom: 5px;
}
.txt-dark {
  color: #0d141c;
}
.bg-chat-3 {
  background: #f1f5ff;
}
.bg-chat-2 {
  background: #eaf0ff;
}
.bg-chat {
  background: #f7fafc;
}
.img-user {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 20px;
}
.ai-chat {
  padding: 0;
}
.ai-chat-bg,
.user-chat-bg {
  padding: 0;
  background: #e8edf5;
  padding: 8px 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 400;
  color: #000000;
}
.user-chat-bg {
  color: #ffffff;
  background: #4363f4;
}

/* .main-body {
  height: 100dvh;
} */
.chat-outer {
  overflow-y: scroll;
  height: auto;
}
.send-btn {
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 400;
  border-radius: 16px;
  background: linear-gradient(90deg, #8a7aff 0%, #5996ff 100%);
  padding: 8px 35px;
  transition: all 0.5s ease;
}

.send-btn:hover {
  background: linear-gradient(90deg, #8a7aff 0%, #397ef7 100%);
  color: #ffffff;
}

/* Enhanced dropdown styles */
.btn-3 {
  background: #e9eef2;
  padding: 12px 15px;
  outline: none;
  font-weight: 500;
  border: none;
  border-radius: 12px;
}

.btn-3:focus {
  outline: none;
  border: none;
}

.dropdown-menu {
  border-radius: 12px;
  border: none;
  padding: 0;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-width: 150px;
}

.dropdown-item {
  color: #000000 !important;
  background-color: #ffffff;
  font-weight: 500;
  padding: 15px;
  border: none;
  text-decoration: none;
}

.dropdown-item:focus,
.dropdown-item:hover {
  color: #000000 !important;
  background-color: #f0f4ff !important;
}

.dropdown-item:active {
  color: #000000 !important;
  background-color: #e0edff !important;
}

.dropdown-toggle::after {
  display: none;
}

.dropdown.show .chevron {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.chevron {
  transition: transform 0.3s ease;
}

/* **********************************  */
.active-pill,
.non-active-pill {
  border: 1px solid transparent;
  color: #ffffff !important;
  font-weight: 400;
  border-radius: 16px;
  background: rgba(139, 108, 173, 0.5);
  padding: 12px 24px;
  transition: 0.5s;
  font-weight: 500;
  font-size: 16px;
}
.non-active-pill {
  color: #819cb7 !important;
  background: transparent;
  padding: 12px 16px;
  transition: 0.5s;
}
.non-active-pill:hover {
  border: 1px solid rgba(139, 108, 173, 0.5);
  transition: 0.5s;
}
.active-pill img {
  filter: brightness(0) invert(1);
}
/* ***************************************** */

.chat-area-bottom {
  background: #ffffff;
  width: 100%;
  border-radius: 16px;
  border: 1px solid #8a7aff;
  display: flex;
  padding: 9px;
  align-items: center;
  box-shadow: 0 6px 20px rgba(138, 122, 255, 0.2);
}

.r-textarea {
  outline: none;
  border: none;
  width: 100%;
  height: 40px;
  min-height: 40px;
  max-height: 200px;
  resize: vertical;
  padding: 9px;
  font-size: 16px;
  overflow-y: auto;
  line-height: 17px;
  padding-bottom: 0px;
  background: #ffffff;
}

.r-textarea ::placeholder {
  line-height: 15px;
}
.chat-area-bottom-outer {
  bottom: 20px;
}
@media (min-device-width: 200px) and (max-device-width: 767px) {
  .send-btn {
    padding: 8px 12px;
  }
}

/* **********************************  */
.sidebar {
  background-color: #ffffff;
  height: 100vh;
}

.sidebar .nav-link {
  color: #333;
  margin-bottom: 10px;
  font-size: 15px;
}

.sidebar .nav-link.active {
  font-weight: bold;
}

.upload-btn {
  background-color: #e9f0ff;
  color: #3366ff;
  font-weight: 500;
  border: none;
}

.chat-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.chat-header {
  padding: 20px;
  background-color: #f7fafc;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 30px 10px;
  background-color: #f7fafc;
}

.top-bar {
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.menu-btn {
  font-size: 24px;
  background: none;
  border: none;
  display: none;
}

/* ***********onboarding************** */

#custom_filename::placeholder {
  color: rgb(146, 146, 146) !important;
}

.form-label,
.form-select {
  font-size: 16px;
}
.form-control,
.form-select {
  /* background: #ffffff; */
  border-radius: 16px;
  padding: 16px;
  font-size: 16px;
  border: 1px solid #ebedf2;
}

.form-control::placeholder {
  color: #4a739c !important;
}
.upload-audio-input::placeholder {
  color: #000000 !important;
}

.continue-btn {
  border-color: transparent;
  width: 100%;
  padding: 8px 16px;
  border-radius: 16px;
  background: #e8edf5;
  font-weight: 700;
  color: #000000;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  justify-content: center;
  transition: 0.5s;
}
.continue-btn:hover {
  border-color: transparent;
  outline: transparent;
  box-shadow: none;
  border: 1px solid #8a7aff;
}
.continue-btn:focus {
  border-color: transparent;
  outline: transparent;
  box-shadow: none;
  border: 1px solid #8a7aff;
}
.continue-btn:focus-within {
  border-color: transparent;
  outline: transparent;
  box-shadow: none;
  border: 1px solid #8a7aff;
}
.btn-signin {
  padding: 16px;
  border-radius: 16px;
}
.carusal-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 16px;
  box-shadow: 0px 24px 24px 0px rgba(0, 0, 0, 0.06);
}
.progress-simple {
  position: relative;
  color: #fff;
  font-weight: 500;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: linear-gradient(0deg, #5996ff, #5996ff) padding-box,
    /* inside */ linear-gradient(90deg, #8a7aff 0%, #5996ff 100%) border-box; /* border */
  background-origin: border-box;
  background-clip: padding-box, border-box;
  transition: all 0.5s ease;
}
.preferance-card {
  background: #ffffff;
  position: relative;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0px 24px 24px 0px rgba(0, 0, 0, 0.06);
}
.ai-badge {
  position: absolute;
  top: -16px;
  right: -8px;
}
.border {
  border: 1px solid #d9d9d9;
}
.border-2 {
  border: 1px solid #e5e8eb !important;
}
.owl-carousel .owl-item img {
  display: inline;
  width: auto;
}
/* Style the dots */
.owl-dots {
  position: relative;
  top: 0px;
  text-align: center;
}

/* Default dot style */
.owl-dot span {
  width: 12px;
  height: 12px;
  background: #ccc;
  display: block;
  margin: 5px 7px;
  border-radius: 50%;
  transition: background 0.3s ease;
}

/* Active dot style */
.owl-dot.active span {
  background: #007bff;
}
.no-js .owl-carousel,
.owl-carousel.owl-loaded {
  display: flex;
}
/* ****************************home**************************** */
.upload-btn {
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 400;
  border-radius: 46px;
  background: linear-gradient(90deg, #8a7aff 0%, #5996ff 100%);
  padding: 12px 16px;
  box-shadow: 0px 4px 20px 0px rgba(163, 153, 242, 0.6);
  transition: all 0.5s ease;
  font-weight: 700;
  font-size: 16px;
}

.upload-btn:hover {
  background: linear-gradient(90deg, #8a7aff 0%, #397ef7 100%);
  color: #ffffff;
}

/* Move and Delete button styles for bulk actions */
.move-btn {
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(90deg, #8a7aff 0%, #5996ff 100%);
  padding: 12px 16px;
  box-shadow: 0px 4px 20px 0px rgba(163, 153, 242, 0.6);
  transition: all 0.5s ease;
  font-size: 16px;
}

.move-btn:hover {
  background: linear-gradient(90deg, #8a7aff 0%, #397ef7 100%);
  color: #ffffff;
}

.delete-btn {
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(90deg, #ff9999 0%, #ff7777 100%);
  padding: 12px 16px;
  box-shadow: 0px 4px 20px 0px rgba(255, 153, 153, 0.4);
  transition: all 0.5s ease;
  font-size: 16px;
}

.delete-btn:hover {
  background: linear-gradient(90deg, #ff7777 0%, #ff5555 100%);
  color: #ffffff;
}
/* *******************nav************ */
.user-nav {
  height: 40px;
  width: 40px;
  object-fit: cover;
  border-radius: 50%;
}

.user-avatar-default {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: 600;
}
/* *******************table************************ */
.file-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* File and folder icon wrappers */
.file-icon-wrapper,
.folder-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex-shrink: 0;
}

.file-icon-wrapper {
  background-color: #e8edf5;
}

.folder-icon-wrapper {
  background-color: #e8edf5;
}

/* All file types use the same background color as per Figma design */
.file-icon-wrapper.word,
.file-icon-wrapper.txt,
.file-icon-wrapper.pdf,
.file-icon-wrapper.mp3,
.file-icon-wrapper.mp4,
.file-icon-wrapper.md {
  background-color: #e8edf5;
}

.file-icon {
  width: 23px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.action-btns i {
  font-size: 16px;
  color: #6c757d;
  cursor: pointer;
  margin-right: 10px;
}
.action-btns i:hover {
  color: #0d6efd;
}

/* Action buttons for documents */
.action-btns img,
.action-btns svg {
  width: 24px;
  height: 24px;
  cursor: pointer;
  margin-right: 10px;
}

.action-btns button {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

@media (max-width: 767px) {
  .action-btns button {
    margin-right: 0px !important;
    margin-bottom: 10px;
  }
}

.action-btns button:hover {
  opacity: 0.7;
}

.action-btns button:last-child {
  margin-right: 0;
}

.table-file-reading {
  color: #61758a !important;
}
.table-file-name {
  color: #121417;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.table tbody tr {
  transition: background-color 0.2s ease;
}

.table tbody td {
  vertical-align: middle;
}

.table .d-flex {
  align-items: center;
}

/* upload audio  */
.drop-zone {
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.drop-zone.dragover {
  background-color: #e9f2ff;
}

.drop-zone input {
  display: none;
}

.drop-zone .preview {
  width: auto;
  margin-top: 20px;
  font-weight: 500;
  display: inline-block;
}

/* progress */
.progress-bar,
.progress {
  height: 8px;
}
.process-comp-btn {
  outline: none;
  border: 1px solid transparent;
  background: linear-gradient(90deg, #8a7aff 0%, #5996ff 100%);
  font-size: 16px;
  color: #f7fafc;
  font-weight: 700;
  border-radius: 16px;
  cursor: pointer !important;
  padding: 16px 20px;
}
.process-comp-btn-disabled {
  outline: none;
  border: 1px solid transparent;
  background: #e8edf5;
  font-size: 16px;
  color: #f7fafc;
  font-weight: 700;
  border-radius: 16px;
  cursor: pointer !important;
  padding: 16px 20px;
}
.process-uncomp-btn {
  outline: none;
  border: 1px solid transparent;
  background: #e8edf5;
  font-size: 16px;
  color: #819cb7;
  font-weight: 700;
  border-radius: 16px;
  cursor: not-allowed !important;
  padding: 16px 20px;
}
.r-modal-content {
  background-color: white !important;
  border: none !important;
  width: auto !important;
  max-width: 90% !important;
  border-radius: 16px !important;
  margin: 0 auto !important;
  overflow: visible !important;
}
/* .r-modal-content img {
  height: 96px;
  width: 96px;
} */

.bg-search-bar {
  background: #f0f2f5;
  border-radius: 8px;
}
.Search-bar {
  border: none;
  outline: none;
  box-shadow: none;
  font-size: 16px;
  padding: 10px;
  width: 100%;
  background: #f0f2f5;
  border-radius: 8px;
}
.create-folder-abs-w {
  min-width: 280px !important;
  max-width: 280px !important;
  width: 280px !important;
}
.create-folder-abs {
  background: #ffffff;
  z-index: 20;
  position: absolute;
  top: 0;
  right: 0;
  display: none;
}
.create-folder-abs.show {
  display: block !important;
}
.folder-name-input {
  padding: 8px 12px !important;
  font-size: 14px !important;
  height: auto !important;
  max-width: 227px !important;
  width: 227px !important;
  margin: 0 auto !important;
  display: block !important;
}
.create-folder-abs .mb-3 {
  text-align: center !important;
  margin-bottom: 1rem !important;
}
.add-folder-trigger {
  cursor: pointer;
}
/* Remove hover behavior - now it's click-based */
/* *******************pagination***************************** */
.pagination {
  justify-content: center;
  margin-top: 30px;
}

.pagination .page-link {
  border: none;
  background: transparent;
  color: #212529;
  font-weight: 500;
  padding: 6px 12px;
  margin: 0 3px;
}

.pagination .page-item.active .page-link {
  background-color: #f1f3f5;
  border-radius: 50%;
  font-weight: 600;
}

.pagination .page-link:hover {
  background-color: #f8f9fa;
  border-radius: 50%;
}

.page-link:focus {
  box-shadow: none;
}

.pagination .ellipsis {
  padding: 6px 12px;
  margin: 0 3px;
  color: #6c757d;
}
/* *******************************switch**************************** */
/* Custom switch style to mimic the image */
.form-check.form-switch .form-check-input {
  width: 40px;
  height: 22px;
  background-color: #e9ecef;
  border-radius: 40px;
  position: relative;
  transition: background-color 0.3s ease;
  cursor: pointer;
  box-shadow: none;
}
.form-check.form-switch .form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.form-check.form-switch .form-check-input:checked {
  background-color: #b4c1ee;
}
.form-check.form-switch .form-check-input::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgb(149 157 165 / 20%);
}
.form-check.form-switch .form-check-input:checked::before {
  transform: translateX(18px);
  box-shadow: 0 3px 8px rgba(149, 157, 165, 0.45);
}

/* ************************sideNav********************************** */
.sideNavLink {
  text-decoration: none;
  color: #819cb7;
}

/* ********************accounts*********************** */
.account-user-thumb {
  height: 128px;
  width: 128px;
  border-radius: 50%;
  object-fit: cover;
}

/* Logout hover effect */
.side-nav-fix-bottom .sideNavLink:hover {
  color: #dc3545 !important;
  background: rgba(220, 53, 69, 0.1) !important;
  border-radius: 16px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}
.cursor-pointer {
  cursor: pointer !important;
}
.cursor-default {
  cursor: default !important;
}
.position-fixed-side {
  position: fixed;
  left: 0;
}

.side-nav-fix {
  left: 0;
}

/* Fixed sidebar positioning */
@media (min-width: 992px) {
  .position-lg-fixed.side-nav-fix {
    top: 80px !important;
    height: calc(100vh - 80px) !important;
    overflow-y: auto;
    z-index: 10;
  }
}

.side-nav-fix-bottom {
  position: fixed;
  left: 19px;
  bottom: 15px;
  width: auto;
}
/* imgs svgs  */
.preferance-card-img {
  max-width: 48px;
}
.pref-lines {
  height: auto;
  width: 125px !important;
}

/* Additional mobile navigation styles */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
  margin-right: auto;
}

.nav-link {
  color: #819cb7 !important;
}

.nav-link:hover {
  color: #4a739c !important;
}

@media (max-width: 768px) {
  .create-folder-abs-w {
    min-width: 250px;
  }
  .p-30 {
    padding: 15px;
  }
  .menu-btn {
    display: inline;
  }
  .sidebar {
    display: none !important;
  }
  .action-btns {
    display: grid;
  }
  .action-btns:last-child img {
    margin-right: 1rem;
  }
}

/* Progress bar styles */
.progress {
  height: 8px;
  background-color: #cfdbe8;
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar {
  background: linear-gradient(90deg, #8a7aff 0%, #5996ff 100%);
  transition: width 0.5s ease;
  width: 0%; /* Add initial width */
}
.progress-bar.bg-danger {
  background: linear-gradient(90deg, #ff7a7a 0%, #ff5959 100%);
}

.process-comp-btn:hover {
  opacity: 0.9;
}

/* Modal Content Styles */
.r-modal-content {
  background-color: white !important;
  border: none !important;
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 16px !important;
  margin: 0 auto !important;
  overflow: visible !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1) !important;
}

/* Dark mode modal styling */
.dark-mode .r-modal-content {
  background-color: #272727 !important;
  color: #fff !important;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
  width: auto !important;
  max-width: 90% !important;
}

/* File Box Styles */
.file-box {
  width: 101.25px;
  height: 101.25px;
  background-color: #e8edf5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.file-box img {
  width: 37px;
  height: 40px;
  object-fit: contain;
}

/* Button Styles */
.send-btn {
  border: 1px solid transparent;
  color: #ffffff;
  font-weight: 400;
  border-radius: 16px;
  background: linear-gradient(90deg, #8a7aff 0%, #5996ff 100%);
  padding: 8px 35px;
  transition: all 0.5s ease;
}

.send-btn:hover {
  background: linear-gradient(90deg, #8a7aff 0%, #397ef7 100%);
  color: #ffffff;
}

.continue-btn {
  outline: none;
  border: 1px solid transparent;
  background: #e8edf5;
  font-size: 16px;
  color: #819cb7;
  font-weight: 700;
  border-radius: 16px;
  padding: 16px 20px;
}

/* For smaller continue buttons in language section */
.continue-btn.px-3 {
  padding: 8px 12px !important;
}
.continue-btn.px-5 {
  padding: 8px 20px !important;
}

/* Media Queries */
@media (min-width: 1300px) {
  .processing-img-ico img {
    height: 100px;
    width: 100px;
  }
  .modal-body .carusal-card-modal {
    width: 100%;
    margin: 0 auto;
  }
  .continue-btn-modal {
    padding: 8px 16px;
  }
}

@media (max-width: 576px) {
  .file-box {
    width: 80px;
    height: 80px;
  }
}

.progress-centered {
  min-height: 80vh;
}

.no-shadow {
  box-shadow: none !important;
}

/* Delete Confirmation Modal */
.confirm-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-modal-content {
  background: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0px 24px 24px 0px rgba(0, 0, 0, 0.1);
}

.confirm-modal-content p {
  margin-bottom: 25px;
  font-size: 16px;
  color: #121417;
  line-height: 1.5;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.confirm-btn {
  background: linear-gradient(90deg, #ff6b6b 0%, #ee5a52 100%);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.confirm-btn:hover {
  background: linear-gradient(90deg, #ff5252 0%, #d32f2f 100%);
}

.cancel-btn {
  background: #f8f9fa;
  color: #121417;
  border: 1px solid #e9ecef;
  padding: 10px 25px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cancel-btn:hover {
  background: #e9ecef;
}

/* Responsive Position Utilities */
@media (min-width: 992px) {
  .position-lg-fixed {
    position: fixed !important;
  }
}

/* ========================= DARK MODE STYLES ========================= */
/* Dark mode implementation - Applied when .dark-mode class is on body */

.dark-mode {
  background: #0f0f0f !important;
  color: #e5e5e5 !important;
}

/* Background overrides */
.dark-mode .bg-chat {
  background: #0f0f0f !important;
}

.dark-mode .bg-chat-2 {
  background: #1a1a1a !important;
}

.dark-mode .bg-chat-3 {
  background: #252525 !important;
}

/* Sidebar dark mode */
.dark-mode .sidebar {
  background-color: #1a1a1a !important;
  border-right: 1px solid #333 !important;
}

/* Sidebar container elements */
.dark-mode .d-none.d-md-block .sidebar,
.dark-mode .position-lg-fixed.sidebar,
.dark-mode .side-nav-fix.sidebar {
  background-color: #1a1a1a !important;
}

/* Sidebar columns - targeting exact classes from index.html */
.dark-mode
  .col-md-4.col-lg-3.col-xxl-2.bg-white.min-h-100.position-lg-fixed.side-nav-fix {
  background-color: #1a1a1a !important;
}

.dark-mode
  .col-12.col-md-5.col-lg-3.col-xxl-2.bg-white.min-h-100.d-none.d-lg-block {
  background-color: #1a1a1a !important;
}

/* Also target the general sidebar columns with bg-white */
.dark-mode .col-md-4.col-lg-3.col-xxl-2.bg-white,
.dark-mode .col-12.col-md-5.col-lg-3.col-xxl-2.bg-white {
  background-color: #1a1a1a !important;
}

.dark-mode .sidebar .nav-link {
  color: #b0b0b0 !important;
}

.dark-mode .sidebar .nav-link:hover {
  color: #ffffff !important;
  background-color: #2d2d2d !important;
}

.dark-mode .sidebar .nav-link.active {
  color: #ffffff !important;
  background-color: #333 !important;
}

/* Sidebar navigation items */
.dark-mode .sideNavLink {
  color: #b0b0b0 !important;
}

.dark-mode .sideNavLink:hover {
  color: #ffffff !important;
}

/* Active/inactive pills in sidebar - using same styling for both modes */
.dark-mode .non-active-pill {
  background: transparent !important;
  color: #b0b0b0 !important;
  border-color: transparent !important;
}

.dark-mode .non-active-pill:hover {
  border-color: #8a7aff !important;
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

/* Sidebar icons */
.dark-mode .sidebar img {
  filter: brightness(0.8) !important;
}

.dark-mode .active-pill img {
  filter: brightness(0) invert(1) !important;
}

/* Sidebar logout button */
.dark-mode .side-nav-fix-bottom {
  color: #b0b0b0 !important;
}

.dark-mode .side-nav-fix-bottom .sideNavLink:hover {
  color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.15) !important;
  border-radius: 16px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

/* Logout SVG icon - make it white in dark mode */
.dark-mode .side-nav-fix-bottom img,
.dark-mode .side-nav-fix-bottom svg {
  filter: brightness(0) invert(1) !important;
}

.dark-mode .side-nav-fix-bottom:hover img,
.dark-mode .side-nav-fix-bottom:hover svg {
  filter: brightness(0) invert(1) !important;
}

/* Override text color classes */
.dark-mode .text-black {
  color: #b0b0b0 !important;
}

.dark-mode .text-dark {
  color: #e5e5e5 !important;
}

.dark-mode .text-muted {
  color: #9ca3af !important;
}

/* Upload button in sidebar */
.dark-mode .upload-btn {
  /* Keep the gradient - it looks good in dark mode */
  background: linear-gradient(90deg, #8a7aff 0%, #5996ff 100%) !important;
}

/* Move and Delete buttons dark mode */
.dark-mode .move-btn {
  /* Keep the same gradient - looks good in dark mode */
  background: linear-gradient(90deg, #8a7aff 0%, #5996ff 100%) !important;
}

.dark-mode .move-btn:hover {
  background: linear-gradient(90deg, #8a7aff 0%, #397ef7 100%) !important;
}

.dark-mode .delete-btn {
  /* Keep the same light red gradient - looks good in dark mode */
  background: linear-gradient(90deg, #ff9999 0%, #ff7777 100%) !important;
}

.dark-mode .delete-btn:hover {
  background: linear-gradient(90deg, #ff7777 0%, #ff5555 100%) !important;
}

/* Sidebar specific container fixes - only the main sidebar */
.dark-mode .sidebar {
  background: #1a1a1a !important;
}

/* Apply dark background to all elements within sidebar columns */
.dark-mode .position-lg-fixed.side-nav-fix .container-fluid,
.dark-mode .position-lg-fixed.side-nav-fix .row,
.dark-mode .position-lg-fixed.side-nav-fix .col-12 {
  background-color: #1a1a1a !important;
}

/* Sidebar border elements */
.dark-mode .sidebar .border {
  border-color: #404040 !important;
  background: transparent !important;
}

/* Logout area at bottom */
.dark-mode .side-nav-fix-bottom a {
  color: #b0b0b0 !important;
}

.dark-mode .side-nav-fix-bottom a:hover {
  color: #ff6b6b !important;
  background: rgba(255, 107, 107, 0.15) !important;
  border-radius: 16px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

/* Force specific Bootstrap white backgrounds to dark - be more targeted */
.dark-mode .navbar.bg-white,
.dark-mode .sidebar.bg-white,
.dark-mode .container-fluid.bg-white.sticky-top {
  background-color: #1a1a1a !important;
}

/* Target the sidebar container divs that have bg-white class */
.dark-mode div.bg-white.min-h-100[class*="col-"] {
  background-color: #1a1a1a !important;
}

/* Only target sidebar columns specifically */
.dark-mode .sidebar.col-md-4.col-lg-3.col-xxl-2 {
  background: #1a1a1a !important;
}

/* Specific sidebar container fixes - be more targeted */
.dark-mode .sidebar.position-lg-fixed {
  background: #1a1a1a !important;
}

.dark-mode .sidebar.side-nav-fix {
  background: #1a1a1a !important;
}

/* Override specific Bootstrap utility classes only when needed */
.dark-mode .bg-light {
  background-color: #1a1a1a !important;
}

.dark-mode .bg-secondary {
  background-color: #2d2d2d !important;
}

/* Ensure borders are consistent only for specific elements */
.dark-mode .navbar .border-bottom,
.dark-mode .sidebar .border-bottom {
  border-bottom-color: #333 !important;
}

/* Text color overrides */
.dark-mode .txt-dark {
  color: #e5e5e5 !important;
}

.dark-mode .txt-user {
  color: #9ca3af !important;
}

.dark-mode .table-file-reading {
  color: #9ca3af !important;
}

.dark-mode .table-file-name {
  color: #e5e5e5 !important;
}

/* Form elements */
.dark-mode .form-control,
.dark-mode .form-select {
  background: #2d2d2d !important;
  border-color: #404040 !important;
  color: #e5e5e5 !important;
}

.dark-mode .form-control:focus,
.dark-mode .form-select:focus {
  background: #2d2d2d !important;
  border-color: #8a7aff !important;
  box-shadow: 0 0 0 0.2rem rgba(138, 122, 255, 0.25) !important;
  color: #e5e5e5 !important;
}

.dark-mode .form-control::placeholder {
  color: #9ca3af !important;
}

.dark-mode .form-label {
  color: #e5e5e5 !important;
}

/* Cards and containers */
.dark-mode .carusal-card,
.dark-mode .preferance-card {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
}

.dark-mode .social-accounts-section {
  background: #1a1a1a !important;
  border-color: #333 !important;
}

.dark-mode .social-provider-item {
  background: #2d2d2d !important;
  border-color: #404040 !important;
}

.dark-mode .provider-icon {
  background: #2d2d2d !important;
  border-color: #404040 !important;
}

.dark-mode .provider-details h4 {
  color: #e5e5e5 !important;
}

.dark-mode .provider-status {
  color: #9ca3af !important;
}

.dark-mode .section-description {
  color: #9ca3af !important;
}

/* Support content boxes */
.dark-mode .support-content-box {
  background: #2d2d2d !important;
  border-color: #404040 !important;
}

.dark-mode .support-content-box p {
  color: #b0b0b0 !important;
}

.dark-mode .support-content-box strong {
  color: #e5e5e5 !important;
}

.dark-mode .support-content-box ul {
  color: #b0b0b0 !important;
}

/* Tables */
.dark-mode .table {
  background: #1a1a1a !important;
  color: #e5e5e5 !important;
}

.dark-mode .table thead {
  background-color: #2d2d2d !important;
  color: #e5e5e5 !important;
}

.dark-mode .table-responsive {
  background: #1a1a1a !important;
  border-color: #333 !important;
}

/* Documents page specific table styling */
.dark-mode .table thead th {
  background-color: #2d2d2d !important;
  color: #e5e5e5 !important;
  border-color: #333 !important;
}

.dark-mode .table tbody td {
  background-color: #1a1a1a !important;
  color: #e5e5e5 !important;
  border-color: #333 !important;
}

.dark-mode .table th,
.dark-mode .table td {
  border-color: #333 !important;
}

/* Table wrapper and container */
.dark-mode .table-responsive.border-2 {
  background: #1a1a1a !important;
  border-color: #333 !important;
}

.dark-mode .table-responsive.shadow-sm {
  box-shadow: 0 0.125rem 0.25rem rgba(255, 255, 255, 0.075) !important;
}

/* File icon wrappers */
/* Buttons - keeping brand colors but adjusting for dark theme */
.dark-mode .continue-btn {
  background: #2d2d2d !important;
  color: #b0b0b0 !important;
  border-color: #404040 !important;
}

.dark-mode .continue-btn:hover {
  background: #333 !important;
  border-color: #8a7aff !important;
}

.dark-mode .continue-btn:focus {
  background: #333 !important;
  border-color: #8a7aff !important;
}

/* Dropdown menus */
.dark-mode .dropdown-menu {
  background-color: #1a1a1a !important;
  border-color: #333 !important;
}

.dark-mode .dropdown-item {
  color: #e5e5e5 !important;
  background-color: #1a1a1a !important;
}

.dark-mode .dropdown-item:hover,
.dark-mode .dropdown-item:focus {
  color: #ffffff !important;
  background-color: #2d2d2d !important;
}

.dark-mode .btn-3 {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
  border-color: #404040 !important;
}

/* Chat area */
.dark-mode .chat-area-bottom {
  background: #1a1a1a !important;
  border-color: #8a7aff !important;
}

.dark-mode .r-textarea {
  background: #1a1a1a !important;
  color: #e5e5e5 !important;
}

.dark-mode .r-textarea::placeholder {
  color: #9ca3af !important;
}

.dark-mode .ai-chat-bg {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
}

/* Search bar */
.dark-mode .bg-search-bar {
  background: #2d2d2d !important;
}

.dark-mode .Search-bar {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
  border-radius: 8px !important;
}

.dark-mode .Search-bar::placeholder {
  color: #9ca3af !important;
}

/* Create folder */
.dark-mode .create-folder-abs {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
}

/* Progress bars - keep gradient but adjust background */
.dark-mode .progress {
  background-color: #2d2d2d !important;
}

/* Modals */
.dark-mode .confirm-modal-content {
  background: #1a1a1a !important;
  color: #e5e5e5 !important;
}

.dark-mode .confirm-modal-content p {
  color: #e5e5e5 !important;
}

.dark-mode .cancel-btn {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
  border-color: #404040 !important;
}

.dark-mode .cancel-btn:hover {
  background: #333 !important;
}

/* Flash messages */
.dark-mode .flash-success {
  background-color: #064e3b !important;
  color: #a7f3d0 !important;
  border-color: #065f46 !important;
}

.dark-mode .flash-error {
  background-color: #7f1d1d !important;
  color: #fca5a5 !important;
  border-color: #991b1b !important;
}

/* Pagination */
.dark-mode .pagination .page-link {
  background: transparent !important;
  color: #e5e5e5 !important;
}

.dark-mode .pagination .page-item.active .page-link {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

.dark-mode .pagination .page-link:hover {
  background-color: #2d2d2d !important;
  color: #ffffff !important;
}

.dark-mode .pagination .ellipsis {
  color: #9ca3af !important;
}

/* File upload drop zone */
.dark-mode .drop-zone {
  background: #1a1a1a !important;
  border-color: #404040 !important;
  color: #e5e5e5 !important;
}

.dark-mode .drop-zone.dragover {
  background-color: #2d2d2d !important;
}

.dark-mode .drop-zone .preview {
  color: #e5e5e5 !important;
}

/* Upload and Convert page containers */
.dark-mode .col-12 .bg-white.rounded-4 {
  background-color: #1a1a1a !important;
  border: 1px solid #333 !important;
}

.dark-mode .col-12.bg-white {
  background-color: #1a1a1a !important;
}

/* Upload/Convert page specific elements */
.dark-mode .drop-zone h6,
.dark-mode .drop-zone p {
  color: #e5e5e5 !important;
}

.dark-mode .drop-zone .continue-btn {
  background: #2d2d2d !important;
  color: #b0b0b0 !important;
  border: 1px solid #404040 !important;
}

.dark-mode .drop-zone .continue-btn:hover {
  background: #333 !important;
  color: #ffffff !important;
  border-color: #8a7aff !important;
}

/* Additional upload/convert page styling */
.dark-mode .upload-audio-input {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
  border-color: #404040 !important;
}

.dark-mode .upload-audio-input::placeholder {
  color: #9ca3af !important;
}

/* Rounded containers and cards */
.dark-mode .rounded-4 {
  background-color: #1a1a1a !important;
  border-color: #333 !important;
}

/* Upload preview elements */
.dark-mode #uploadFilePreview {
  background: #2d2d2d !important;
  color: #b0b0b0 !important;
  border: 1px solid #404040 !important;
}

.dark-mode #uploadFilePreview:hover {
  background: #333 !important;
  color: #ffffff !important;
  border-color: #8a7aff !important;
}

/* Upload page select dropdowns */
.dark-mode select[name="output_language"],
.dark-mode select[name="output_type"],
.dark-mode select[name="output_format"] {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
  border-color: #404040 !important;
}

.dark-mode select[name="output_language"]:focus,
.dark-mode select[name="output_type"]:focus,
.dark-mode select[name="output_format"]:focus {
  background: #2d2d2d !important;
  border-color: #8a7aff !important;
  box-shadow: 0 0 0 0.2rem rgba(138, 122, 255, 0.25) !important;
}

/* Convert page specific styling */
.dark-mode .convert-container .bg-white {
  background-color: #1a1a1a !important;
}

/* Documents page specific styling */
.dark-mode .bg-search-bar {
  background: #2d2d2d !important;
  border: 1px solid #404040 !important;
}

.dark-mode .Search-bar {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
}

.dark-mode .Search-bar::placeholder {
  color: #9ca3af !important;
}

/* Action buttons in documents table */
.dark-mode .action-btns button {
  background: transparent !important;
  border: none !important;
}

.dark-mode .action-btns button:hover {
  background: #2d2d2d !important;
  border-radius: 4px !important;
}

/* Create folder popup */
.dark-mode .create-folder-abs {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
}

.dark-mode .create-folder-abs .carusal-card {
  background: #1a1a1a !important;
  border: 1px solid #333 !important;
}

/* Documents page container */
.dark-mode .col-12.col-md-8.col-lg-9.col-xxl-10.bg-chat {
  background: #0f0f0f !important;
}

/* Container and wrapper elements */
.dark-mode .container.py-4 {
  background: transparent !important;
}

/* No files message */
.dark-mode .table tbody td[colspan="4"] {
  color: #9ca3af !important;
}

/* Sort dropdown specific styling */
.dark-mode .dropdown-toggle.btn-3 {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
  border-color: #404040 !important;
}

/* File icons remain as they are since they're already styled properly */

/* Border utilities */
.dark-mode .border {
  border-color: #404040 !important;
}

.dark-mode .border-2 {
  border-color: #333 !important;
}

/* Switch component - enhanced for dark mode */
.dark-mode .form-check.form-switch .form-check-input {
  background-color: #404040 !important;
}

.dark-mode .form-check.form-switch .form-check-input:checked {
  background-color: #8a7aff !important;
}

/* File boxes */
.dark-mode .file-box {
  background-color: #2d2d2d !important;
}

/* User avatar */
.dark-mode .user-avatar-default {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}

/* Navigation */
.dark-mode .nav-link {
  color: #b0b0b0 !important;
}

.dark-mode .nav-link:hover {
  color: #ffffff !important;
}

/* Top bar */
.dark-mode .top-bar {
  background: #1a1a1a !important;
  border-bottom: 1px solid #333 !important;
}

/* Chat header */
.dark-mode .chat-header {
  background-color: #0f0f0f !important;
}

/* Chat messages */
.dark-mode .chat-messages {
  background-color: #0f0f0f !important;
}

/* Scrollbar for dark mode */
.dark-mode .chat-messages::-webkit-scrollbar-thumb {
  background: #404040 !important;
}

.dark-mode .chat-messages::-webkit-scrollbar-track {
  background: #1a1a1a !important;
}

/* Navbar and Header dark mode */
.dark-mode .navbar {
  background: #1a1a1a !important;
  border-bottom: 1px solid #333 !important;
}

.dark-mode .navbar-brand {
  color: #e5e5e5 !important;
}

.dark-mode .container-fluid.bg-white {
  background: #1a1a1a !important;
}

.dark-mode .sticky-top {
  background: #1a1a1a !important;
}

.dark-mode .border-bottom {
  border-color: #333 !important;
}

/* Navbar toggle button */
.dark-mode .navbar-toggler {
  border-color: #404040 !important;
}

.dark-mode .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28229, 229, 229, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Navbar collapse content */
.dark-mode .navbar-collapse {
  background: #1a1a1a !important;
}

/* Language dropdown in navbar */
.dark-mode .navbar .btn-3 {
  background: #2d2d2d !important;
  color: #e5e5e5 !important;
  border-color: #404040 !important;
}

.dark-mode .navbar .dropdown-menu {
  background-color: #1a1a1a !important;
  border-color: #333 !important;
}

.dark-mode .navbar .dropdown-item {
  color: #e5e5e5 !important;
  background-color: #1a1a1a !important;
}

.dark-mode .navbar .dropdown-item:hover,
.dark-mode .navbar .dropdown-item:focus {
  color: #ffffff !important;
  background-color: #2d2d2d !important;
}

/* User profile image and avatar in navbar */
.dark-mode .user-nav {
  border: 2px solid #404040 !important;
}

.dark-mode .user-avatar-default {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: 2px solid #404040 !important;
}

/* Mobile navbar */
.dark-mode .navbar-nav {
  background: #1a1a1a !important;
}

/* Bulk actions and modal dark mode - Clean minimal design */
.dark-mode #bulk-actions-bar .bg-white {
  background-color: #1a1a1a !important;
}

.dark-mode .folder-option {
  background-color: #1f2937 !important;
  border-color: #374151 !important;
  color: #e5e7eb !important;
}

.dark-mode .folder-option:hover {
  background-color: #252a3a !important;
  border-color: #4b5563 !important;
}

.dark-mode .folder-option.selected {
  background-color: #2d3748 !important;
  border-color: #4a5568 !important;
  color: #f7fafc !important;
}

.dark-mode .folder-option .form-check-input {
  border-color: #4b5563 !important;
  background-color: #1f2937 !important;
}

.dark-mode .folder-option .form-check-input:checked {
  background-color: #e5e7eb !important;
  border-color: #e5e7eb !important;
}

.dark-mode .folder-option .folder-icon-wrapper {
  background-color: #374151 !important;
}

.dark-mode .folder-option .form-check-label {
  color: #e5e7eb !important;
}

.dark-mode .move-modal-content h5 {
  color: #f9fafb !important;
}

.dark-mode .move-modal-content p {
  color: #9ca3af !important;
}

.dark-mode .folders-list-container::-webkit-scrollbar-track {
  background: #374151 !important;
}

.dark-mode .folders-list-container::-webkit-scrollbar-thumb {
  background: #4b5563 !important;
}

.dark-mode .folders-list-container::-webkit-scrollbar-thumb:hover {
  background: #6b7280 !important;
}

/* Additional elements that might need dark mode */

.dark-mode h1,
.dark-mode h2,
.dark-mode h3,
.dark-mode h4,
.dark-mode h5,
.dark-mode h6 {
  color: #e5e5e5 !important;
}

.dark-mode p {
  color: #b0b0b0 !important;
}

/* Ensure brand gradients remain visible in dark mode */
.dark-mode .upload-btn,
.dark-mode .send-btn,
.dark-mode .process-comp-btn {
  /* Keep original gradient - they work well in dark mode */
}

/* Disabled states for dark mode */
.dark-mode .link-btn-disabled {
  background: #2d2d2d !important;
  color: #666 !important;
  border-color: #404040 !important;
}

.dark-mode .process-uncomp-btn {
  background: #2d2d2d !important;
  color: #666 !important;
}

.dark-mode .process-comp-btn-disabled {
  background: #2d2d2d !important;
  color: #666 !important;
}

/* Account specific elements */
.dark-mode .account-user-thumb {
  border: 2px solid #404040 !important;
}

/* Ensure proper contrast for form validation */
.dark-mode .field-errors .error-message {
  color: #fca5a5 !important;
}

.dark-mode .form-control.is-invalid {
  border-color: #dc2626 !important;
}

.dark-mode .form-control.is-valid {
  border-color: #059669 !important;
}

/* Additional account page specific styles */
.dark-mode .flash-message {
  border-color: #404040 !important;
}

.dark-mode .avatar-circle {
  border: 2px solid #404040 !important;
}

.dark-mode .support-toggle-btn {
  color: #e5e5e5 !important;
}

.dark-mode .support-arrow {
  color: #9ca3af !important;
}

/* Link buttons */
.dark-mode .unlink-btn {
  background: #dc2626 !important;
  color: #ffffff !important;
}

.dark-mode .unlink-btn:hover {
  background: #b91c1c !important;
}

/* Ensure text readability in all contexts */
.dark-mode span {
  color: inherit !important;
}

.dark-mode .fw-bold,
.dark-mode .fw-medium {
  color: #e5e5e5 !important;
}

/* Modal overlay for dark mode */
.dark-mode .confirm-modal {
  background-color: rgba(0, 0, 0, 0.8) !important;
}

/* Ensure proper visibility for all content */
.dark-mode .container-fluid,
.dark-mode .row,
.dark-mode .col-12 {
  color: inherit !important;
}

/* Targeted Bootstrap utility class overrides */
.dark-mode .navbar.bg-white,
.dark-mode .sidebar.bg-white {
  background-color: #1a1a1a !important;
}

/* Ensure the sidebar navigation area gets dark background */
.dark-mode .side-nav-fix {
  background-color: #1a1a1a !important;
}

.dark-mode .text-white {
  color: #e5e5e5 !important;
}

.dark-mode .text-body {
  color: #e5e5e5 !important;
}

/* ========================= END DARK MODE STYLES ========================= */

.owl-theme .owl-dots .owl-dot span {
  background: white;
}

/* Custom classes for convert page alignment */
.convert-button-spacing {
  margin-top: 15vh;
}

.upload-button-spacing {
  margin-top: 10vh;
}

.upload-file-preview {
  color: black !important;
}

.convert-form-elements {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.convert-dropdown {
  width: 100%;
  max-width: none;
}

/* Ensure proper center alignment for form elements */
.convert-form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.convert-form-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ===============================================
   CUSTOM SELECT DROPDOWN STYLES 
   =============================================== */

/* Hide default select and create custom dropdown */
.form-select,
.convert-dropdown {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 16px 20px;
  padding-right: 50px;
  font-size: 16px;
  font-weight: 500;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 16px;
}

.form-select:hover,
.convert-dropdown:hover {
  border-color: #3b82f6;
  background-color: #f0f6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-select:focus,
.convert-dropdown:focus {
  outline: none;
  border-color: #3b82f6;
  background-color: #f0f6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Custom dropdown container */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.custom-select {
  display: none;
}

.custom-select-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: white;
  cursor: pointer;
  font-size: 16px;
  color: blackborder-2;
  transition: all 0.3s ease;
  min-height: 56px;
}

.custom-select-trigger:hover {
  border-color: #3b82f6;
  background-color: #f0f6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.custom-select-trigger.active {
  border-color: #3b82f6;
  background-color: #f0f6ff;
}

.custom-select-trigger .arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
  stroke: #6b7280;
}

.custom-select-trigger.active .arrow {
  transform: rotate(180deg);
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  margin-top: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  max-height: 300px;
  overflow-y: auto;
}

.custom-select-wrapper.active .custom-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.custom-option {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
  font-size: 16px;
  font-weight: 500;
  color: #4a5568;
}

.custom-option:last-child {
  border-bottom: none;
}

.custom-option:hover {
  background-color: #f0f6ff;
  color: #3b82f6;
}

.custom-option.selected {
  background-color: #eff6ff;
  color: #3b82f6;
  font-weight: 600;
}

.custom-option .option-icon {
  width: 24px;
  height: 24px;
  margin-right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.custom-option:hover .option-icon {
  background: #dbeafe;
}

.custom-option.selected .option-icon {
  background: #dbeafe;
}

.custom-option .option-icon img,
.custom-option .option-icon svg {
  width: 16px;
  height: 16px;
}

/* Selected option display */
.selected-option {
  display: flex;
  align-items: center;
  gap: 12px;
}

.selected-option .option-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f8fafc;
}

.table-responsive {
  border-radius: 10px;
  overflow: auto;
}
.table thead {
  background-color: #f8f9fa;
  font-size: 14px;
  color: #121417;
  font-weight: 500;
}

.selected-option .option-icon img,
.selected-option .option-icon svg {
  width: 16px;
  height: 16px;
}

/* Dark mode support for custom selects */
.dark-mode .custom-select-trigger {
  background: #2d3748;
  border-color: #4a5568;
  color: #e2e8f0;
}

.dark-mode .custom-select-trigger:hover {
  border-color: #3b82f6;
  background-color: rgba(59, 130, 246, 0.1);
}

.dark-mode .custom-options {
  background: #2d3748;
  border-color: #4a5568;
}

.dark-mode .custom-option {
  color: #e2e8f0;
  border-bottom-color: #4a5568;
}

.dark-mode .custom-option:hover {
  background-color: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
}

.dark-mode .custom-option.selected {
  background-color: rgba(59, 130, 246, 0.2);
}

.dark-mode .custom-option .option-icon {
  background: #4a5568;
}

.dark-mode .custom-option:hover .option-icon {
  background: rgba(59, 130, 246, 0.2);
}

.dark-mode .selected-option .option-icon {
  background: #4a5568;
}

/* Form validation states */
.form-select.is-invalid,
.convert-dropdown.is-invalid {
  border-color: #ef4444;
}

.form-select.is-invalid:hover,
.convert-dropdown.is-invalid:hover {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-select.is-valid,
.convert-dropdown.is-valid {
  border-color: #10b981;
}

.form-select.is-valid:hover,
.convert-dropdown.is-valid:hover {
  border-color: #10b981;
  background-color: #f0fdf4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .form-select,
  .convert-dropdown,
  .custom-select-trigger {
    padding: 14px 16px;
    font-size: 14px;
    min-height: 48px;
  }

  .custom-option {
    padding: 14px 16px;
    font-size: 14px;
  }

  .custom-option .option-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
  }

  .custom-option .option-icon img,
  .custom-option .option-icon svg {
    width: 14px;
    height: 14px;
  }

  .selected-option .option-icon {
    width: 20px;
    height: 20px;
  }

  .selected-option .option-icon img,
  .selected-option .option-icon svg {
    width: 14px;
    height: 14px;
  }
}

/* Disabled state */
.form-select:disabled,
.convert-dropdown:disabled,
.custom-select-trigger.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #f8fafc;
}

.dark-mode .form-select:disabled,
.dark-mode .convert-dropdown:disabled,
.dark-mode .custom-select-trigger.disabled {
  background-color: #374151;
}

/* Loading state */
.custom-select-trigger.loading {
  position: relative;
}

.custom-select-trigger.loading::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* ===============================================
   END CUSTOM SELECT DROPDOWN STYLES 
   =============================================== */

/* Custom option without icon styling */
.custom-option:not(:has(.option-icon)) {
  padding-left: 20px;
}

.custom-option:not(:has(.option-icon)) span {
  margin-left: 0;
}

/* For browsers that don't support :has() selector */
.custom-option.no-icon {
  padding-left: 20px;
}

.custom-option.no-icon span {
  margin-left: 0;
}

/* Selected option without icon */
.selected-option:not(:has(.option-icon)) {
  justify-content: flex-start;
}

.selected-option.no-icon {
  justify-content: flex-start;
}

.processing-margin {
  margin-top: 0px;
}

@media (min-width: 1400px) {
  .processing-margin {
    margin-top: 5rem;
  }
}

/* Table background white */
.table-bg-white {
  background-color: #fff;
}

.dt-layout-full {
  padding: 0px !important;
}
/* Bootstrap table hover override - more specific selectors */

.table.table-hover tbody tr:hover td {
  background-color: #e0cfef !important;
}

/* Dark mode version */
.dark-mode .table.table-hover tbody tr:hover {
  background-color: #e0cfef !important;
}

.dark-mode .table.table-hover tbody tr:hover td {
  background-color: #e0cfef !important;
}

/* Custom Download Modal Styling - Ensures proper spacing and centering */
#downloadModal .modal-dialog {
  max-width: 450px;
  margin: 1.75rem auto;
  display: flex;
  align-items: center;
  min-height: calc(100% - 3.5rem);
}

#downloadModal .modal-content {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dark-mode #downloadModal .modal-content {
  background-color: #2d3748 !important;
  color: #f7fafc;
}

/* Ensure equal margins on both sides */
#downloadModal .container-fluid {
  padding-left: 15px;
  padding-right: 15px;
}

/* Fix for the stretched container */
#downloadModal .modal-body {
  padding: 1.5rem;
}

/* Equal padding for carousel card */
#downloadModal .carusal-card-modal {
  padding-top: 15px;
  padding-bottom: 15px;
  margin-bottom: 0 !important;
}

/* Fix button spacing */
#downloadModal .row:last-child {
  margin-bottom: 10px;
}
