* Dark Mode Styles */ html.dark-mode body {
  background-color: #1a1a1a; /* Dark background for dark mode */
  color: #e0e0e0; /* Light text for dark mode */
}

html.dark-mode .header {
  background-color: #2c2c2c; /* Darker header for dark mode */
}

html.dark-mode .header .username {
  color: #e0e0e0; /* Light text for credits and username in dark mode */
}

html.dark-mode .header .fa-coins {
  color: #ffd43b; /* Keep coin icon color consistent */
}
body {
  font-family: "Inter", sans-serif !important;
}
/* Link-like styling for clickable scraped data titles */
.link-like {
  cursor: pointer;
  transition: color .15s ease-in-out, text-decoration .15s ease-in-out;
}
.link-like:hover {
  text-decoration: underline;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #5f59b2;
  color: white;
  padding: 10px 20px;
  height: 70px;
  position: fixed;
  top: 0;
  z-index: 999;
  left: 0;
  width: 100%;
}

.logo #logoImg {
  width: 146px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 15px;
}

.product-level,
.username {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 10px;
  border-radius: 5px;
}

.dashboard-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.dashboard-container {
  flex-grow: 1;
  background-color: #e9f4ff;
  margin-left: 300px;
  padding-top: 110px;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar {
  width: 300px;
  height: 100vh;
  background-color: #5f59b2;
  color: white;
  position: fixed;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  top: 60px;
  left: 0;
  overflow-y: auto;
  z-index: 999;
  padding: 10px 0px 5px 0px !important;
}
.sidebar-menu .nav-link.active .sidebar-icon.active {
  filter: brightness(1) invert(0);
}

.dashboard-content {
  flex-grow: 1;
  padding: 30px 20px 20px 20px;
  background: rgb(236, 244, 255);
}

.wel-area,
.wel-area-right {
  padding: 20px 40px;
  background-color: #5f59b2;
  min-height: calc(100%);
}
.wel-right-sub-text {
  font-size: 1.3rem;
  font-weight: 500;
  color: #91908a;
}
.table-hg {
  max-height: calc(100vh - 295px);
}
.text-white {
  color: white;
}

.btn-contact {
  background: #ffffff;
  color: rgb(87 76 234);
  border-radius: 5px;
  text-decoration: none;
  padding: 8px 12px;
  display: inline-block;
  font-size: 1.3rem;
  font-weight: 600;
}

.btn-contact:hover {
  background: #030303;
  color: white;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
}

.wel-sub-text {
  font-size: 20px;
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.btn-watch-video {
  background: #5f59b2;
  color: rgb(255, 255, 255) !important;
  margin: 0px auto;
  font-size: 1.3rem;
}
.btn-watch-video:hover {
  background: #3a3480;
  color: white;
}

.forgotPassword {
  background: #6e6dc7;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.forgotPassword-con {
  background: #e7e7fa;
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  border-radius: 12px;
  margin: auto;
}

.forgotPassword-left-side,
.forgotPassword-inner {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.forgotPassword-left-side {
  background: #ffffff;
  padding: 30px;
}

.forgotPassword-left-side img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.forgotPassword-inner {
  flex-direction: column;
  padding: 40px;
  text-align: center;
}

#logo-icon {
  width: 230px;
}

.forgotPassword-head h1 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.forgotPassword-head p {
  font-size: 16px;
  color: #666;
}

.forgotPassword-form {
  margin-top: 20px;
  width: 100%;
}

.input-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.input-field {
  width: 100%;
  padding: 10px 15px 10px 45px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  height: 45px;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: 0.7;
  pointer-events: none;
}

.form .text-danger {
  font-size: 14px;
  margin-top: 5px;
}

.forgotPassword-btn {
  width: 100%;
  background: #6e6dc7;
  border: none;
  padding: 12px;
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 10px;
}

h5 a {
  display: block;
  color: #6a11cb;
  font-weight: bold;
  text-decoration: none;
}

.company-logo {
  display: block !important;
  width: 150px;
  height: auto;
  opacity: 1 !important;
  visibility: visible !important;
  margin: 0 auto;
}

.company-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.login {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #6e6dc7;
}

.login-container {
  display: flex;
  width: 80%;
  max-width: 1000px;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
}

.login-left-side {
  width: 45%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-left-side img {
  max-width: 100%;
  height: auto;
}

.login-inner {
  width: 55%;
  padding: 50px;
  text-align: center;
  background: #e7e7fa;
}

.login-head h1 {
  font-size: 24px;
  font-weight: 700;
  color: #2f416f;
  margin-bottom: 10px;
}
.login-head p {
  font-size: 24px;
  align-items: start;
  display: flex;
  font-weight: 500;
  margin-bottom: -10px !important;
}

.login .form {
  margin-top: 20px;
}

.login .input-group {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.login .input-group input {
  width: 100%;
  padding: 12px 15px 12px 50px;
  font-size: 18px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: 0.3s ease-in-out;
}

.login .input-group input:focus {
  border-color: #473ced;
  outline: none;
}

.login .input-group img {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
}

.login input::placeholder {
  color: #b1acfe;
}

.login .checkbox-container {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

#check {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  cursor: pointer;
}

#check:checked {
  background-color: #1e2746;
}

.login label {
  font-size: 16px;
  font-weight: 600;
  color: #243a63;
  cursor: pointer;
}

.login .login-btn {
  background-color: #5f59b2;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  padding: 12px;
  width: 100%;
  border: none;
  border-radius: 8px;
  transition: 0.3s ease-in-out;
  text-transform: uppercase;
  cursor: pointer;
}

.login h5 {
  font-size: 16px;
  font-weight: 500;
  color: #2d496e;
  margin-top: 15px;
}

.change-password {
  height: 100vh;
  background-color: #6e6dc7;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

.change-password-inner {
  margin: 90px auto 0;
  padding: 50px 33px;
  max-width: 780px;
  border-radius: 22px;
  text-align: center;
  background-color: #e7e7fa;
}

.change-password-head {
  margin: 42px 0;
}

.change-password-head h1 {
  font-size: 33px;
  line-height: 40px;
  font-weight: 700;
  color: #2f416f;
  margin-bottom: 0.6rem;
}

.change-password .form {
  margin: 52px 0;
}

.change-password .input-group {
  position: relative;
  max-width: 85%;
  margin: 18px auto 0;
}

.change-password .input-group input {
  font-size: 20px;
  width: 100%;
  border: 2px solid #b0aaff;
  padding: 16px 10px 16px 66px;
  border-radius: 7px;
}

.change-password input::placeholder {
  color: #b1acfe;
}

.change-password .form-control:focus {
  box-shadow: none;
  border-color: black;
  z-index: 0;
}

.change-password .input-group img {
  position: absolute;
  left: 23px;
  top: 23px;
}

.change-password .action {
  width: 85%;
  margin: 18px auto 0;
}

.change-password label {
  font-weight: 600;
  color: #243a63;
  cursor: pointer;
  font-size: 17px;
}

.change-password-btn {
  font-size: 20px;
  font-weight: 600;
  padding: 16px 0;
  margin: 18px auto 0;
  text-align: center;
  color: #fff;
  background-color: #6a11cb;
  text-transform: uppercase;
  width: 85%;
  border: none;
  border-radius: 7px;
  transition: 0.5s ease;
}

.change-password-btn:hover,
.change-password-btn:active {
  box-shadow: none;
  background-color: #473ced !important;
}

.account-information .content {
  width: 100%;
  padding: 40px 30px;
  background-color: #fff;
  border-left: none;
  color: black;
  position: relative;
  top: 20%;
}

.account-information .formgroup {
  position: relative;
  width: 74%;
  margin-right: 11px;
}

.account-information .settings-box {
  border: 1px solid #3d32d5;
}

.account-information .formgroup img {
  position: absolute;
  left: 17px;
  top: 17px;
}

.account-information .content .inputform {
  font-size: 16px;
  width: 100%;
  border: 1px solid #b6bdfb;
  padding: 10px 10px 10px 40px;
  border-radius: 4px !important;
  box-shadow: none;
  margin-bottom: 1rem;
  z-index: 0;
}

.account-information .content button {
  width: 190px;
  padding-left: 8px;
  padding-right: 8px;
  height: 47px;
  background: #1e2746;
  color: #fff;
  border-radius: 5px;
  letter-spacing: 0.07rem;
}

.account-information .content .cancel-btn {
  background-color: #fa5352;
  border-color: #fa5352;
}

.account-information .content label {
  font-size: 18px;
}

.account-information .profile-picture-container {
  position: relative;
  display: inline-block;
}

.account-information .profile-picture-container img.profile-pic {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
}

.account-information .profile-picture-container .plus-icon {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #1e2746;
  color: #fff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.account-information .profile-picture-container .plus-icon:hover {
  background-color: #3d32d5;
}

.btn-acc {
  color: #fff;
  background-color: #00ab55;
  padding: 5px 15px;
  margin-top: 5px;
}

.btn-acc img {
  width: 17px !important;
  position: relative;
  top: -1px;
}

.btn-acc:hover {
  background-color: #5d59ff !important;
}

.set-title {
  background: #d3d8ff6b;
  font-size: 30px;
  padding: 10px;
  border: 1px solid rgba(128, 128, 128, 0.378);
}

.submitBtn {
  background: #6e6dc7;
  color: #fff;
  padding: 5px 15px;
  margin-top: 5px;
}

#profilePicture {
  margin-top: 15px;
}

.custom-select {
  width: 100%;
  min-width: 250px;
  padding: 10px 12px;
  border-radius: 4px;
  background-color: #fff;
  font-size: 16px;
  color: #333;
  appearance: none;
  background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E);
  background-repeat: no-repeat;
  background-position: right 8px top 50%;
  background-size: 12px;
  margin-bottom: 10px;
}
#teknikforce-icon {
  bottom: 60px;
  left: 0;
  margin: 0 auto;
  padding: 10px 15px;
  position: absolute;
  width: 100%;
  background: #5f59b2;
}

#teknikforce-icon img {
  filter: brightness(1) contrast(4.5);
}

.social-icon {
  width: 30px;
}

.social-icon-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.sidebar-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu ul li {
  padding: 0px 7px 0px 7x;

  color: rgb(255, 255, 255);
  cursor: pointer;
  outline: 0px;
  margin: 0px;
  text-decoration: none;
  border-radius: 0px;
  text-align: left;
  margin-bottom: 1px;
  font-size: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff26;
}

.sidebar-menu ul li a {
  color: white;
  text-decoration: none;
  display: block;
  font-size: 20px;
  font-weight: 600;
  padding: 10px;
  transition: background 0.3s ease;
  padding: 12px 10px 12px 20px;
  width: 100%;
  display: flex;
  align-items: baseline;
  height: 55px;
}

.sidebar-menu ul li a i {
  margin-right: 10px;
}

.sidebar-menu ul li a:hover {
  background-color: #e8eaf9;
  color: #5f59b2;
  border-radius: 0;
  font-weight: 500;
}
.sidebar-menu {
  height: calc(100vh - 180px);
  overflow-y: auto;
  scrollbar-color: #5f59b2 #c9d3ff;
}
@media (max-width: 767px) {
  .subheader .menu-icon {
    position: relative;
    left: 0px !important;
    background: white;
    padding: 9px 15px;
    top: 0px;
    border-radius: 8px;
  }
  .subheader.collapsed .menu-icon {
    position: relative;
    left: 263px !important;
    background: white;
    padding: 9px 15px;
    top: 0px;
    border-radius: 8px;
  }
}

.sidebar-menu ul li a.active {
  background-color: #e8eaf9;
  color: #5f59b2;
  border-radius: 0;
  font-weight: 500;
}

.sidebar-menu ul li a.active i {
  filter: brightness(0.5);
}

.sidebar-menu ul li:last-child {
  border-bottom: none;
}

.subheader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #c9d3ff;
  padding: 15px 18px;
  height: 55px;
  position: fixed;
  top: 70px;
  left: 300px;
  right: 0;
  font-size: 18px;
  z-index: 999;
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.subheader-item {
  display: flex;
  gap: 10px;
}
.subheader-item h4 {
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  color: #5f59b2;
  margin-bottom: 0px;
}

.subheader-item h3 {
  align-items: center;
  font-weight: bold;
  font-size: 18px;
  color: #5f59b2;
  margin-bottom: 0px;
}
.subheader-item a {
  color: #5f59b2;
  text-decoration: none;
}
.menu-icon {
  cursor: pointer;
  color: #1e2746;
}
.toggle-btn {
  background: #6e6dc7;
  color: white;
  border: none;
  padding: 8px 15px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
}

.sidebar.collapsed {
  width: 0;
  padding: 0;
  overflow: hidden;
}

.dashboard-container.collapsed {
  margin-left: 0;
}

.subheader.collapsed {
  left: 0;
}

/* Media Queries */
@media (max-width: 1440px) {
  .change-password-inner {
    margin-top: 50px;
    padding: 30px;
  }

  .change-password-inner #logo-icon {
    width: 250px;
  }

  .change-password .input-group input {
    padding: 12px 10px 12px 66px;
  }

  .change-password-inner .input-group img {
    top: 15px;
  }

  .change-password .change-password-btn {
    padding: 12px 0;
  }

  .change-password-head {
    margin: 20px 0;
  }

  .change-password .form {
    margin: 20px 0;
  }
}

@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
    width: 90%;
  }

  .login-left-side {
    width: 100%;
    padding: 20px;
  }

  .login-inner {
    width: 100%;
    padding: 30px;
  }

  .account-information .content .formgroup {
    width: 100%;
  }

  .account-information .content .inputgroup-container {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .forgotPassword-con {
    flex-direction: column;
    width: 90%;
  }

  .forgotPassword-left-side {
    width: 100%;
    padding: 20px;
  }

  .forgotPassword-inner {
    width: 100%;
    padding: 20px;
  }

  .sidebar {
    width: 0;
    padding: 0;
    overflow: hidden;
  }

  .dashboard-container {
    margin-left: 0;
  }

  .subheader {
    left: 0;
  }
}

@media (max-width: 576px) {
  .login-inner {
    padding: 20px;
  }

  .login .input-group input {
    font-size: 16px;
    padding: 10px 12px 10px 40px;
  }

  .login .input-group img {
    left: 10px;
  }

  .login .login-btn {
    font-size: 16px;
    padding: 10px;
  }

  .login h5 {
    font-size: 14px;
  }

  .dashboard-layout .account-information .container {
    width: 90%;
  }
}

@media only screen and (max-width: 425px) {
  .change-password #logo-icon {
    width: 180px;
  }

  .change-password-head h1 {
    font-size: 24px;
  }

  .change-password-head p {
    font-size: 18px;
  }

  .change-password-inner .input-group img {
    left: 12px;
    top: 10px;
    width: 20px;
  }

  .change-password .input-group {
    max-width: 100%;
  }

  .change-password .input-group input {
    font-size: 18px;
    padding: 8px 8px 8px 36px;
  }

  .change-password .action,
  .change-password .change-password-btn {
    width: 100%;
    font-size: 18px;
    padding: 8px 0;
  }
}

/* === Table Styling === */
.table-responsive {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: start !important;
  vertical-align: middle;
  padding: 12px;
  border: 1px solid #ddd;
  text-align: left;
}

.table th {
  background: #5f59b2;
  color: white;
  font-weight: bold;
  text-align: center;
}

.table-striped tbody tr:nth-of-type(odd) {
  background: #f9f9f9;
}

.table a {
  color: #007bff;
  text-decoration: none;
}

.table a:hover {
  text-decoration: underline;
}
.delete-icon {
  color: red;
  font-size: 18px;
  cursor: pointer;
}

td:last-child {
  text-align: center;
}

.view-icon,
.delete-icon {
  display: inline-block;
  margin: 0 8px;
  color: #c42f2f;
  cursor: pointer;
  transition: color 0.2s;
}

.delete-icon:hover {
  color: #ff001e;
}
.view-icon:hover {
  color: #1ae821;
}

.fa-eye,
.fa-trash {
  font-size: 16px;
}
/* Table Controls */
.table-controls {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 5px;
}

.table-controls .input-group {
  max-width: 400px;
}

.table-controls .form-control,
.table-controls .form-select {
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #ced4da;
  font-size: 14px;
}

.table-controls .form-select {
  background-position: right 10px center;
  padding-right: 30px;
}

/* Pagination */
.pagination {
  margin: 0;
}

.page-item.active .page-link {
  background-color: #5f59b2;
  border-color: #5f59b2;
}

.page-link {
  color: #5f59b2;
  padding: 8px 15px;
  border-radius: 4px;
  margin: 0 2px;
  border: 1px solid #dee2e6;
}

.page-link:hover {
  color: #3a3480;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-item.disabled .page-link {
  color: #6c757d;
}

.dataTables_info {
  padding-top: 0px;
  font-size: 1.1rem;
  color: #6c757d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .table-controls .row > div {
    margin-bottom: 10px;
  }

  .table-controls .input-group {
    max-width: 100%;
  }

  .pagination {
    justify-content: center !important;
  }

  .dataTables_info {
    text-align: center;
    margin-bottom: 10px;
  }
}

.dashboard-top .card {
  border: none;
  border-radius: 12px;
  overflow: hidden;
}

.dashboard-top .card h2 {
  color: #5f59b2;
  font-weight: 700;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 25px;
}

/* Enhanced Table Controls */

.scraped-table tbody tr td:nth-child(5) {
  text-align: right !important;
}
.table-controls .input-group {
  border-radius: 8px;
  overflow: hidden;
}

.table-controls .form-control,
.table-controls .form-select {
  border: 1px solid #e0e0e0;
  height: 45px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.table-controls .form-control:focus,
.table-controls .form-select:focus {
  border-color: #5f59b2;
}

.table-controls .btn-outline-secondary {
  border-color: #e0e0e0;
  background-color: white;
  color: #5f59b2;
  transition: all 0.3s ease;
}

.table-controls .btn-outline-secondary:hover {
  background-color: #5f59b2;
  color: white;
}

.table thead th {
  background-color: #5f59b2;
  color: white;
  font-weight: 600;
  border: none;
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table tbody tr {
  transition: all 0.2s ease;
}

/* .table tbody tr:hover {
  background-color: rgba(95, 89, 178, 0.05);
  transform: translateY(-1px);
} */

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(174, 207, 240, 0.1);
}

/* Action Buttons */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.btn-action {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  transition: all 0.3s ease;
}

.btn-view {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.btn-view:hover {
  background-color: #28a745;
  color: white;
}

.btn-delete {
  background-color: rgba(220, 53, 69, 0.1);
  color: #ffffff;
}

.btn-delete:hover {
  background-color: #dc3545;
  color: white;
}

/* Pagination */
.pagination {
  margin-top: 20px;
}

.page-link {
  color: #5f59b2;
  border: 1px solid #e0e0e0;
  margin: 0 5px;
  border-radius: 6px !important;
  min-width: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.page-item.active .page-link {
  background-color: #5f59b2;
  border-color: #5f59b2;
}

.page-link:hover {
  color: #3a3480;
  background-color: #f8f9fa;
  border-color: #e0e0e0;
}

/* Status Badges */
.badge {
  padding: 6px 10px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 12px;
}

.badge-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: #28a745;
}

.badge-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: #ffc107;
}

.badge-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .table-controls .row > div {
    margin-bottom: 15px;
  }

  .table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 45%;
    padding-right: 15px;
    font-weight: 600;
    text-align: left;
    color: #5f59b2;
  }

  .action-buttons {
    justify-content: flex-end;
  }
}

/* Loading State */
.loading-state {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: transparent;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10;
  width: 100%;
}

.loading-spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid #3498db;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

.empty-state i {
  font-size: 50px;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.empty-state h3 {
  color: #5f59b2;
  margin-bottom: 10px;
}
/* Scraped Data Details Page Specific Styles */
.scraped-details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 20px;
}

.scraped-details-header h2 {
  color: #5f59b2;
  font-weight: 700;
  margin-bottom: 0;
  flex: 1;
  min-width: 300px;
}

.scraped-details-meta {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 10px;
  flex: 1;
  min-width: 300px;
}

.scraped-details-meta p {
  margin-bottom: 10px;
  font-size: 15px;
  display: flex;
  align-items: center;
}

.scraped-details-meta strong {
  min-width: 120px;
  display: inline-block;
  color: #5f59b2;
  font-weight: 600;
}

.scraped-details-meta a {
  color: #5f59b2;
  text-decoration: none;
  transition: all 0.3s ease;
  word-break: break-all;
}

.scraped-details-meta a:hover {
  color: #3a3480;
  text-decoration: underline;
}

.table-controls .input-group {
  border-radius: 8px;
  overflow: hidden;
}

.table-controls .form-control,
.table-controls .form-select {
  border: 1px solid #e0e0e0;
  height: 45px;
  font-size: 15px;
  transition: all 0.3s ease;
}

.table-controls .form-control:focus,
.table-controls .form-select:focus {
  border-color: #5f59b2;
}

.table-controls .btn-outline-secondary {
  border-color: #e0e0e0;
  background-color: white;
  color: #5f59b2;
  transition: all 0.3s ease;
}

.table-controls .btn-outline-secondary:hover {
  background-color: #5f59b2;
  color: white;
}

/* Table Styling - Matching scrapedDatas page */
.table {
  font-size: 1.1rem;
  border-spacing: 0;
  color: #212529;
  margin-bottom: 0px;
}

.table thead th {
  background-color: #5f59b2;
  color: white;
  font-weight: 600;
  border: none;
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table tbody tr {
  transition: all 0.2s ease;
}

/* .table tbody tr:hover {
  background-color: rgba(95, 89, 178, 0.05);
  transform: translateY(-1px);
} */

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(174, 207, 240, 0.1);
}

.page-link {
  color: #5f59b2;
  border: 1px solid #e0e0e0;
  margin: 0 5px;
  border-radius: 6px !important;
  min-width: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.page-item.active .page-link {
  background-color: #5f59b2;
  border-color: #5f59b2;
}

.page-link:hover {
  color: #3a3480;
  background-color: #f8f9fa;
  border-color: #e0e0e0;
}

/* Data Info Section */
.data-info-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.btn-export {
  background-color: #5f59b2;
  color: white;
  border: none;
  width: 150px !important;
  height: 41.17px !important;
  padding: 4px 17px;
  border-radius: 6px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.btn-back {
  background-color: #5f59b2;
  color: white;
  border: none;
  height: 41.17px !important;
  padding: 4px 17px;
  border-radius: 6px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.btn-delete {
  background-color: #de3d3d;
  color: white;
  white-space: nowrap;
  border: none;
  height: 41.17px !important;
  padding: 4px 17px;
  border-radius: 6px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.btn-export:hover {
  background-color: #3a3480;
  color: white;
}
.btn-delete:hover {
  background-color: #b32525;
}

body.dark-mode .btn-delete {
  color: white;
}
/* Responsive Adjustments */
@media (max-width: 992px) {
  .scraped-details-header {
    flex-direction: column;
  }

  .scraped-details-meta {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .table-controls .row > div {
    margin-bottom: 15px;
  }

  .table td::before {
    content: attr(data-label);
    position: absolute;
    left: 15px;
    width: 45%;
    padding-right: 15px;
    font-weight: 600;
    text-align: left;
    color: #5f59b2;
  }

  .data-info-section {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

/* Loading State */
.loading-state {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(95, 89, 178, 0.2);
  border-radius: 50%;
  border-top-color: #5048bd;
  animation: spin 1s ease-in-out infinite;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px;
  color: #6c757d;
}

.empty-state i {
  font-size: 50px;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.empty-state h3 {
  color: #5f59b2;
  margin-bottom: 10px;
}

.btn-back:hover {
  background-color: #5f59b2;
  color: white;
  border-color: #5f59b2;
}

/* Source information card */
.source-card {
  border: none;
  border-radius: 10px;
  background-color: #f8f9fa;
}

.source-icon {
  width: 50px;
  height: 50px;
  background-color: #5f59b2;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.source-url a {
  color: #5f59b2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.source-url a:hover {
  color: #3a3480;
  text-decoration: underline;
}

.meta-item {
  text-align: center;
}

.meta-label {
  font-size: 12px;
  color: #6c757d;
  font-weight: 500;
}

.meta-value {
  font-size: 16px;
  font-weight: 600;
  color: #5f59b2;
}

/* Fields section */
.fields-section {
  display: none;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
}

.section-title {
  color: #5f59b2;
  font-weight: 600;
  font-size: 18px;
}

.field-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.field-tags .badge {
  background-color: rgba(95, 89, 178, 0.1);
  color: #5f59b2;
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
}

/* Data controls */
.data-controls {
  border: none;
  border-radius: 10px;
}

.search-box .input-group-text {
  background-color: white;
  border-right: none;
  color: #6c757d;
  border-radius: none;
}

.search-box .form-control {
  border-left: none;
  /* border-right: none; */
  font-size: 1.1rem;
}
.search-box .btn {
  background-color: #5f59b2;
  border-left: none;
}

/* Data table section */
.data-table-section {
  background-color: white;
  padding: 20px 0px 0px 0px;
  border-radius: 10px;
}

.data-info {
  color: #6c757d;
  font-size: 1.1rem;
}
/* Responsive adjustments */
@media (max-width: 992px) {
  .source-card .col-md-8,
  .source-card .col-md-4 {
    width: 100%;
  }

  .source-meta {
    justify-content: flex-start !important;
    margin-top: 15px;
  }
}

@media (max-width: 768px) {
  .data-controls .col-md-6,
  .data-controls .col-md-4,
  .data-controls .col-md-2 {
    width: 100%;
    margin-bottom: 10px;
  }

  .data-footer .col-md-6 {
    width: 100%;
    text-align: center;
    margin-bottom: 15px;
  }

  .pagination {
    justify-content: center !important;
  }
}
/* Settings Page - Simplified 2 Column */
.account-settings-container {
  padding: 20px;
}

.settings-card {
  background: #fff;
  border-radius: 8px;

  margin-bottom: 20px;
  border: 1px solid #e0e0e0;
}

.settings-card-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
}

.settings-card-header h2 {
  font-size: 18px;
  margin: 0;
  color: #5f59b2;
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-card-header i {
  font-size: 18px;
}

.settings-card-body {
  padding: 20px;
}

/* Profile Picture */
.profile-picture-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 15px;
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #5f59b2;
}

.profile-picture-edit {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: #5f59b2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
}

.btn-upload {
  background: #f8f9fa;
  color: #5f59b2;
  border: 1px solid #5f59b2;
  padding: 8px 15px;
  border-radius: 5px;
  font-size: 14px;
}

.btn-upload:hover {
  background: #5f59b2;
  color: white;
}

/* Form Elements */
.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-control,
.form-select {
  border-radius: 5px;
  border: 1px solid #ddd;
  width: 100%;
  font-size: 1.1rem;
}

.input-with-icon {
  position: relative;
}

.input-with-icon i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
}

/* Buttons */
.btn-primary {
  background: #5f59b2;
  border: none;
  padding: 10px 20px;
  color: white;
}
.btn-primary:hover {
  background: #554f9e !important;
  color: white !important;
}
.btn-outline-secondary {
  border-color: #ddd;
}

.sidebar.collapsed {
  width: 0;
  padding: 0;
  overflow: hidden;
}

.dashboard-container.collapsed {
  margin-left: 0;
}

.subheader.collapsed {
  left: 0;
}
#sidebar-toggle {
  cursor: pointer;
}
.sidebar-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sidebar-overlay.visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px; /* Slightly wider for mobile */
  }

  .sidebar:not(.collapsed) {
    transform: translateX(0);
  }

  .dashboard-container {
    margin-left: 0;
  }

  .subheader {
    left: 0;
  }
}

@media (max-width: 320px) {
  .sidebar {
    transform: translateX(-100%);
    width: 280px; /* Slightly wider for mobile */
  }

  .sidebar:not(.collapsed) {
    transform: translateX(0);
  }

  .subheader:not(.collapsed) {
    margin-left: 275px;
  }
  .dashboard-container:not(.collapsed) {
    margin-left: 275px;
  }

  .subheader {
    left: 0;
  }
}

.editable-title {
  display: flex;
  position: relative;
  justify-content: space-between;
  align-items: center;
  padding-right: 40px;
}

.title-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.1rem;
}
.title-actions {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 8px;
  background: white;
  padding: 2px 5px;
  border-radius: 4px;
  opacity: 0;
  transition: opacity 0.2s;
}

.editable-title:hover .title-actions {
  opacity: 1;
}

.title-input {
  width: calc(100% - 65px);
  padding: 5px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.save-title-icon,
.cancel-title-edit {
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s;
  color: #6c757d;
  margin-right: 5px;
}
.edit-title-icon {
  font-size: 22px;
  cursor: pointer;
  transition: all 0.2s;
  color: #6c757d;
  margin-right: 5px;
}

.edit-title-icon:hover {
  color: #5f59b2;
}

.save-title-icon:hover {
  color: #28a745;
}

.cancel-title-edit:hover {
  color: #dc3545;
}
.chat-container {
  background: #ffffff;
  border-radius: 10px 0px 0px 10px;
  padding: 25px;
  height: calc(100vh - 160px);
  display: flex;
  width: calc(100% - 300px);
  flex-direction: column;
  border: 1px solid #e0e0e0;
}

.chat-header {
  padding-bottom: 10px;
  border-bottom: 2px solid #eaeaea;
  margin-bottom: 20px;
  text-align: center;
}

.chat-header h2 {
  color: #4a47a3;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.chat-header p {
  color: #6c757d;
  font-size: 14px;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  margin-bottom: 0px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.4;
  position: relative;
  background-color: aliceblue;
}

.message-user {
  align-self: flex-end;
  background-color: #5f59b2;
  color: white;
  padding: 10px;
  border-radius: 8px 0px 8px 8px;
  padding-bottom: 0px !important;
  border: 1px solid #d2ccff;
}
.display-user {
  align-self: flex-end;
  display: flex;
  flex-direction: row-reverse;
  max-width: 80%;
  gap: 5px;
  color: white;
}
.display-assistant {
  align-self: flex-start;
  display: flex;
  gap: 10px;
  max-width: 80%;
  color: white;
}

.message-assistant {
  align-self: flex-start;
  background-color: #f9faff;
  color: #333;
  padding: 10px;
  border-radius: 0px 8px 8px 8px;
  border: 1px solid #d2ccff;
}

.message-sender {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 5px;
}

.message-content {
  padding: 8px 0;
}
/* Add sender icons */
.sender-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.user-icon {
  background-color: #5f59b2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  min-width: 35px;
  height: 35px;
}

.ai-icon {
  background-color: #4a47a3;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 35px;
  height: 35px;
}

/* Typing indicator */
.typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  border-radius: 18px;
  width: fit-content;
  margin-left: 0;
  border-bottom-left-radius: 0;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background-color: #6c757d;
  border-radius: 50%;
  animation: typingAnimation 1.4s infinite ease-in-out;
}

/* Error messages */
.error-message {
  background-color: #ffebee;
  color: #c62828;
  padding: 12px 16px;
  border-radius: 8px;
  margin: 10px 0;
  text-align: center;
}

.message-time {
  font-size: 12px;
  color: #adb5bd;
  margin-top: 5px;
  text-align: right;
  margin-left: 10px;
}

.chat-input-container {
  display: flex;
  gap: 12px;
  padding-top: 20px;
  border-top: 2px solid #eaeaea;
  position: relative;
}

.chat-input {
  flex: 1;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1.2rem !important;
  transition: all 0.3s;
  resize: none;
  min-height: 55px;
  max-height: 130px;
  padding-right: 60px;
  background: #f0efff;
  font-size: 1.2rem;
  color: #504e6c;
}

.chat-input:focus {
  border-color: #4a47a3;
  outline: none;
}

.send-button {
  background: transparent;
  color: #a492bc;
  border: none;
  border-radius: 10px;
  padding: 0 10px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  font-weight: bold;
  position: absolute;
  right: 10px;
  bottom: 15px;
}
.send-button i {
  font-size: 25px;
}

.send-button:hover i {
  background: transparent;
  transform: scale(1.1);
}

.send-button:disabled {
  cursor: not-allowed;
}

.typing-indicator {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background-color: #f8f9ff;
  border-radius: 12px;
  width: fit-content;
  border-top-left-radius: 0;
}

.typing-dot {
  width: 9px;
  height: 9px;
  background-color: #4a47a3;
  border-radius: 50%;
  animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: 0s;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingAnimation {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .chat-container {
    height: calc(100vh - 150px);
  }

  .message {
    max-width: 85%;
  }

  .chat-input-container {
    flex-direction: column;
  }
}
.chat-logo {
  height: 50px;
}
.chat-icon {
  height: 30px;
}
.scraped-data-selector {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0 15px;
}

.scraped-data-selector select {
  flex: 1;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.scraped-data-selector button {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  background-color: #4a6fa5;
  color: white;
  cursor: pointer;
}

.scraped-data-selector button:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

.scraped-data-selector button:hover:not(:disabled) {
  background-color: #3a5a8f;
}
#dataTableChat {
  height: 20px;
}
#addResellerModalHeader h3 {
  color: white;
  align-items: center !important;
  margin-bottom: 0px;
}
.custom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.custom-modal-content {
  background-color: #fff;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-modal-header {
  background-color: #5f59b2;
  padding: 0px 6px 0px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 8px 8px 0 0;
}

.custom-modal-title {
  margin: 0;
  font-size: 1.25rem;
  color: #ffffff;
}

.custom-modal-close {
  font-size: 2.5rem;
  cursor: pointer;
  color: #ffffff;
  background-color: transparent;
  border: none;
}

.custom-modal-body {
  padding: 20px;
}

.custom-modal-footer {
  padding: 20px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.custom-modal-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.custom-modal-btn-cancel {
  background-color: #f1f1f1;
  color: #333;
}

.custom-modal-btn-cancel:hover {
  background-color: #e1e1e1;
}

.custom-modal-btn-delete {
  background-color: #dc3545;
  color: white;
}

.custom-modal-btn-delete:hover {
  background-color: #c82333;
}

/* Add to global.css */
.chat-layout {
  display: flex;
  height: calc(100vh - 150px);
}

/* Updated Chat History Sidebar Styles */
.chat-history-sidebar {
  background: #ffffff;
  border-radius: 0px 10px 10px 0px;
  padding: 0px 0px;
  overflow-y: auto;
  border: 1px solid #e0e0e0;
  width: 300px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 160px);
  border-left: 0px;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 10px;
  gap: 10px;
}

.sidebar-header h3 {
  color: #333333;
  font-size: 1.1rem;
  margin: 0;
  font-weight: 400;
  border: 1px solid #bfbdbd;
  height: 45px;
  display: flex;
  align-items: center;
  padding: 0px 10px;
  border-radius: 6px;
  width: 50%;
  justify-content: center;
}

.btn-new-chat {
  background: #5f59b2;
  color: white;
  width: 50%;
  border: none;
  border-radius: 6px;
  padding: 0px 12px;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  height: 45px;
}

.btn-new-chat:hover {
  background: #4a47a3;
  transform: translateY(-1px);
}

.btn-new-chat i {
  font-size: 1.2rem;
}

.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
  overflow-y: auto;
  padding: 0px 10px 10px 10px;
}

.conversation-item {
  padding: 12px 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  align-items: flex-start;
  gap: 12px;
  background: #f9faff;
  border: 1px solid #d2ccff;
}

.conversation-item:hover {
  background: #f0f2f5;
  border-color: #ddd;
}

.conversation-item.active {
  background: #5f59b2;
  border-color: #4a47a3;
}

.conversation-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #5f59b2;
  font-size: 16px;
}

.conversation-item.active .conversation-avatar {
  background: #fff;
  color: #5f59b2;
}

.conversation-content {
  flex-grow: 1;
  min-width: 0;
}

.conversation-title {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.conversation-title .title-text {
  flex-grow: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 15px;
}

.conversation-title .title-input {
  flex-grow: 1;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 15px;
  font-weight: 500;
  background: #fff;
}

.conversation-title .edit-title-icon,
.conversation-title .save-title-icon,
.conversation-title .cancel-title-edit,
.conversation-title .delete-conversation-icon {
  display: none;
  margin-left: 8px;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}

.conversation-item:hover .edit-title-icon,
.conversation-item:hover .delete-conversation-icon {
  display: inline-block;
}
.delete-conversation-icon {
  color: red;
}

.conversation-title .edit-title-icon:hover,
.conversation-title .save-title-icon:hover,
.conversation-title .cancel-title-edit:hover,
.conversation-title .delete-conversation-icon:hover {
  color: #333;
}

.conversation-item.active .conversation-title {
  color: white;
}

.conversation-item.active .conversation-title .title-input {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: white;
}

.conversation-item.active .conversation-title .title-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.conversation-preview {
  font-size: 13px;
  color: #666;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.conversation-item.active .conversation-preview {
  color: rgba(255, 255, 255, 0.8);
}
.conversation-item.active .conversation-data-info {
  color: rgb(255, 255, 255);
}
.conversation-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.conversation-date {
  color: #999;
  font-size: 1.1rem;
}

.conversation-item.active .conversation-date {
  color: rgba(255, 255, 255, 0.7);
}

.conversation-status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
}

.conversation-status.unread {
  background: #5f59b2;
}

.conversation-item.active .conversation-status.unread {
  background: #fff;
}

/* Scrollbar styling */
.conversation-list::-webkit-scrollbar {
  width: 6px;
}

.conversation-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.conversation-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.conversation-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Empty state */
.empty-conversations {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
  color: #999;
  flex-grow: 1;
}

.empty-conversations i {
  font-size: 40px;
  margin-bottom: 15px;
  color: #e0e0e0;
}

.empty-conversations p {
  margin: 0;
  font-size: 14px;
}
/* Responsive adjustments */
@media (max-width: 992px) {
  .chat-layout {
    flex-direction: column-reverse;
    height: auto;
  }

  .chat-history-sidebar {
    width: 100%;
    height: 200px;
  }

  .chat-container {
    /* height: calc(100vh - 380px); */
    width: 100%;
    height: calc(100vh - 167px);
  }
}

.delete-conversation-icon {
  color: #dc3545;
  cursor: pointer;
  margin-left: 8px;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.delete-conversation-icon:hover {
  opacity: 1;
}
.recent-h5 {
  font-size: 1.5rem;
  color: #5f59b2;
  font-weight: 700;
  margin-bottom: 1rem;
}
.recent-h5-activity {
  font-size: 1.5rem;
  color: #5f59b2;
  padding: 15px 0 0 15px;
  font-weight: 700;
}
#rangeSelector {
  margin-right: 22px;
  margin-top: 15px;
}
#header-profile-pic {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
}
.toast-container {
  z-index: 1100;
}

.toast {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 0.375rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  max-width: 350px;
}

.toast-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.toast-success {
  background-color: #00ff3c;
  border-left: 4px solid #00e435;
}

.toast-error {
  background-color: #f60019;
  border-left: 4px solid #dc3545;
}

.toast-warning {
  background-color: #ebb000;
  border-left: 4px solid #ffbf00;
}

.toast-info {
  border-left: 4px solid #17a2b8;
}

.info-card {
  background-color: #6c4bd3;
  color: white;
  border-radius: 0.5rem;
  padding: 1.2rem 1rem;
  text-align: left;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 10px;
}
.info-icon {
  width: 45px;
}
.info-title {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.info-subtitle {
  font-size: 1rem;
  opacity: 0.9;
}

.info-icon-con {
  padding: 15px;
  background: #e7e9fd;
  border-radius: 50px;
  overflow: visible;
  height: 70px;
  width: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.table tbody tr:nth-of-type(even) td {
  background: #f9fafe;
  opacity: 1;
  --bs-table-bg-type: none;
}

.table tbody tr td {
  color: #414141;
}

.table thead tr th:first-child,
.dash-table tbody tr td:first-child {
  width: 60px !important;
}

.table thead th span {
  position: absolute;
  right: 0px;
  background: white;
  width: 2px;
  top: 15px;
  bottom: 15px;
}
.table thead th:last-child span {
  display: none;
}
.table-con {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ffffff;
}

.search-box {
  width: auto;
  flex-grow: 1;
}
.filter-int {
  width: 215px;
  max-width: 100%;
}
.count-int {
  width: 80px;
  flex-shrink: 0;
}
label {
  display: inline-block;
  font-size: 1.1rem;
}

@media (max-width: 767px) {
  .table {
    font-size: 1rem;
  }
}

body.dark-mode .dashboard-container {
  background-color: #252525;
}

body.dark-mode .dashboard-content {
  background-color: #000000;
}

body.dark-mode .subheader {
  background-color: #3a3a3a;
}

body.dark-mode .subheader-item h4,
body.dark-mode .subheader-item h3,
body.dark-mode .subheader-item a {
  color: #b3b3ff;
}

body.dark-mode .wel-right-sub-text {
  color: #b3b3b3;
}

body.dark-mode .btn-contact {
  background: #333333;
  color: #b3b3ff;
}

body.dark-mode .btn-contact:hover {
  background: #ffffff;
  color: #2c2a6e;
}
body.dark-mode .header {
  background-color: #2d2d2d;
  color: #ffffff;
}

body.dark-mode .btn-watch-video {
  background: #2c2a6e;
}
body.dark-mode .card {
  background-color: #2d2d2d;
}

body.dark-mode .btn-watch-video:hover {
  background: #000000;
  color: white;
}

body.dark-mode .forgotPassword {
  background: #2c2a6e;
}

body.dark-mode .forgotPassword-con {
  background: #333333;
}

body.dark-mode .forgotPassword-left-side {
  background: #252525;
}

body.dark-mode .forgotPassword-inner {
  background: #3a3a3a;
}

body.dark-mode .forgotPassword-head p {
  color: #b3b3b3;
}

body.dark-mode .input-field {
  background-color: #333333;
  border-color: #555555;
  color: #e0e0e0;
}

body.dark-mode .forgotPassword-btn {
  background: #2c2a6e;
}

body.dark-mode .forgotPassword-btn:hover {
  background: #3a3480;
}

body.dark-mode .login {
  background-color: #2c2a6e;
}

body.dark-mode .login-container {
  background: #252525;
}

body.dark-mode .login-left-side {
  background: #252525;
}

body.dark-mode .login-inner {
  background: #3a3a3a;
}

body.dark-mode .login-head h1 {
  color: #e0e0e0;
}

body.dark-mode .login .input-group input {
  background-color: #333333;
  border-color: #555555;
  color: #e0e0e0;
}

body.dark-mode .login input::placeholder {
  color: #8888ff;
}

body.dark-mode .login .login-btn {
  background-color: #2c2a6e;
}

body.dark-mode .login .login-btn:hover {
  background-color: #3a3480;
}

body.dark-mode .login h5 {
  color: #b3b3b3;
}

body.dark-mode .change-password {
  background-color: #2c2a6e;
}

body.dark-mode .change-password-inner {
  background-color: #3a3a3a;
}

body.dark-mode .change-password-head h1 {
  color: #e0e0e0;
}

body.dark-mode .change-password .input-group input {
  background-color: #333333;
  border-color: #555555;
  color: #e0e0e0;
}

body.dark-mode .change-password input::placeholder {
  color: #8888ff;
}

body.dark-mode .change-password .form-control:focus {
  border-color: #b3b3ff;
}

body.dark-mode .change-password-btn {
  background-color: #2c2a6e;
}

body.dark-mode .change-password-btn:hover,
body.dark-mode .change-password-btn:active {
  background-color: #3a3480 !important;
}

body.dark-mode .account-information .content {
  background-color: #2d2d2d;
  color: #e0e0e0;
}

body.dark-mode .account-information .settings-box {
  border-color: #555555;
}

body.dark-mode .account-information .content .inputform {
  background-color: #333333;
  border-color: #555555;
  color: #e0e0e0;
}

body.dark-mode .account-information .content button {
  background: #2c2a6e;
}

body.dark-mode .account-information .content .cancel-btn {
  background-color: #c82333;
  border-color: #c82333;
}

body.dark-mode .btn-acc {
  background-color: #00ab55;
}

body.dark-mode .btn-acc:hover {
  background-color: #3a3480 !important;
}

body.dark-mode .set-title {
  background: #3a3a3a;
  border-color: #555555;
}

body.dark-mode .submitBtn {
  background: #2c2a6e;
}

body.dark-mode .custom-select {
  background-color: #333333;
  border-color: #555555;
  color: #e0e0e0e0;
}

body.dark-mode .sidebar-menu ul li a {
  color: #e0e0e0;
}

body.dark-mode .sidebar-menu ul li a:hover,
body.dark-mode .sidebar-menu ul li a.active {
  background-color: #4a4a4a;
  color: #b3b3ff;
}

body.dark-mode .sidebar-menu ul li a.active i {
  filter: brightness(0.8);
}

body.dark-mode .table {
  background-color: #2d2d2d2d;
}

body.dark-mode .table th {
  background-color: #555555;
  color: #e0e0e0;
}

body.dark-mode .table td {
  background-color: #2d2d2d;
  color: white;
}
body.dark-mode .table-hg {
  scrollbar-color: #000000 #2d2d2d;
}

body.dark-mode .table-striped tbody tr:nth-of-type(odd) {
  background-color: #333333;
}
body.dark-mode .table-striped tbody tr:nth-of-type(even) {
  background-color: #000000;
}

body.dark-mode .table a {
  color: #b3b3ff;
}

body.dark-mode .table-controls {
  background: #333333;
}

body.dark-mode .table-controls .form-control,
body.dark-mode .table-controls .form-select {
  background-color: #444444;
  border-color: #555555;
  color: #e0e0e0;
}

body.dark-mode .pagination .page-link {
  background-color: #333333;
  border-color: #555555;
  color: #b3b3ff;
}

body.dark-mode .pagination .page-item.active .page-link {
  background-color: #2c2a6e;
  border-color: #2c2a6e;
}

body.dark-mode .dashboard-top .card {
  background-color: #2d2d2d;
}

body.dark-mode .dashboard-top .card h2 {
  color: #b3b3ff;
}

body.dark-mode .btn-action {
  background-color: #444444;
}

body.dark-mode .btn-view {
  color: #28a745;
}

body.dark-mode .btn-view:hover {
  background-color: #28a745;
  color: #ffffff;
}

body.dark-mode .btn-delete {
  color: #ffffff;
}

body.dark-mode .btn-delete:hover {
  background-color: #dc3545;
  color: #ffffff;
}

body.dark-mode .badge-success {
  background-color: rgba(40, 167, 69, 0.2);
  color: #28a745;
}

body.dark-mode .badge-warning {
  background-color: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

body.dark-mode .badge-danger {
  background-color: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

body.dark-mode .loading-spinner {
  border-color: rgba(255, 255, 255, 0.1);
  border-top-color: #b3b3ff;
}

body.dark-mode .empty-state {
  color: #b3b3b3;
}

body.dark-mode .empty-state i {
  color: #444444;
}

body.dark-mode .empty-state h3 {
  color: #b3b3ff;
}

body.dark-mode .scraped-details-header h2 {
  color: #b3b3ff;
}

body.dark-mode .scraped-details-meta {
  background: #333333;
}

body.dark-mode .scraped-details-meta strong {
  color: #b3b3ff;
}

body.dark-mode .scraped-details-meta a {
  color: #b3b3ff;
}

body.dark-mode .scraped-details-meta a:hover {
  color: #8888ff;
}

body.dark-mode .btn-export {
  background-color: #2c2a6e;
}

body.dark-mode .btn-export:hover {
  background-color: #3a3480;
}

body.dark-mode .btn-back {
  background-color: #333333;
  color: #b3b3ff;
  border-color: #555555;
}

body.dark-mode .btn-back:hover {
  background-color: #2c2a6e;
  color: #ffffff;
}

body.dark-mode .source-card {
  background-color: #333333;
}

body.dark-mode .source-icon {
  background-color: #2c2a6e;
}

body.dark-mode .source-url a {
  color: #b3b3ff;
}

body.dark-mode .source-url a:hover {
  color: #8888ff;
}

body.dark-mode .meta-value {
  color: #b3b3ff;
}

body.dark-mode .fields-section {
  background-color: #2d2d2d;
}

body.dark-mode .section-title {
  color: #b3b3ff;
}

body.dark-mode .field-tags .badge {
  background-color: rgba(95, 89, 178, 0.2);
  color: #b3b3ff;
}

body.dark-mode .data-table-section {
  background-color: #2d2d2d;
}

body.dark-mode .data-info {
  color: #b3b3b3;
}

body.dark-mode .settings-card {
  background: #2d2d2d;
  border-color: #555555;
}

body.dark-mode .settings-card-header {
  background: #333333;
}

body.dark-mode .settings-card-header h2 {
  color: #b3b3ff;
}

body.dark-mode .profile-pic {
  border-color: #2c2a6e;
}

body.dark-mode .profile-picture-edit {
  background: #2c2a6e;
}

body.dark-mode .btn-upload {
  background: #333333;
  color: #b3b3ff;
  border-color: #2c2a6e;
}

body.dark-mode .btn-upload:hover {
  background: #2c2a6e;
  color: #ffffff;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
  background-color: #333333;
  border-color: #555555;
  color: #e0e0e0;
}

body.dark-mode .input-with-icon i {
  color: #b3b3b3;
}

body.dark-mode .btn-primary {
  background: #2c2a6e;
}

body.dark-mode .btn-primary:hover {
  background: #3a3480 !important;
}

body.dark-mode .btn-outline-secondary {
  border-color: #555555;
  color: #b3b3ff;
}

body.dark-mode .chat-container {
  background: #2d2d2d;
  border-color: #555555;
}

body.dark-mode .chat-header h2 {
  color: #b3b3ff;
}

body.dark-mode .chat-header p {
  color: #b3b3b3;
}

body.dark-mode .chat-messages {
  background: #252525;
}

body.dark-mode .message-user {
  background-color: #2c2a6e;
}

body.dark-mode .message-assistant {
  background-color: #333333;
  color: #e0e0e0;
}
body.dark-mode .sidebar {
  background-color: #2d2d2d;
}
body.dark-mode .nav-item {
  background-color: #2d2d2d !important;
}
body.dark-mode .headaer {
  background-color: #2d2d2d;
}
body.dark-mode .message-time {
  color: #888888;
}

body.dark-mode .chat-input {
  background-color: #333333;
  border-color: #555555;
  color: #e0e0e0;
}

body.dark-mode .chat-input:focus {
  border-color: #b3b3ff;
}

body.dark-mode .typing-indicator {
  background-color: #333333;
}

body.dark-mode .typing-dot {
  background-color: #b3b3ff;
}

body.dark-mode .error-message {
  background-color: #3d1a1a;
  color: #ff9999;
}

body.dark-mode .scraped-data-selector select {
  background-color: #333333;
  border-color: #555555;
  color: #e0e0e0;
}

body.dark-mode .scraped-data-selector button {
  background-color: #2c2a6e;
}

body.dark-mode .scraped-data-selector button:hover:not(:disabled) {
  background-color: #3a3480;
}

body.dark-mode .custom-modal-content {
  background-color: #2d2d2d;
}

body.dark-mode .custom-modal-header {
  background-color: #2c2a6e;
}

body.dark-mode .custom-modal-body {
  color: #e0e0e0;
}

body.dark-mode .custom-modal-footer {
  border-top-color: #555555;
}

body.dark-mode .custom-modal-btn-cancel {
  background-color: #444444;
  color: #e0e0e0;
}

body.dark-mode .custom-modal-btn-cancel:hover {
  background-color: #555555;
}

body.dark-mode .chat-history-sidebar {
  background: #2d2d2d;
  border-color: #555555;
}

body.dark-mode .sidebar-header h3 {
  color: #b3b3ff;
}

body.dark-mode .btn-new-chat {
  background: #2c2a6e;
}

body.dark-mode .btn-new-chat:hover {
  background: #3a3480;
}

body.dark-mode .conversation-item {
  background: #333333;
  border-color: #555555;
}

body.dark-mode .conversation-item:hover {
  background: #3a3a3a;
}

body.dark-mode .conversation-item.active {
  background: #2c2a6e;
}

body.dark-mode .conversation-avatar {
  background: #444444;
  color: #b3b3ff;
}

body.dark-mode .conversation-item.active .conversation-avatar {
  background: #ffffff;
}

body.dark-mode .conversation-title {
  color: #e0e0e0;
}

body.dark-mode .conversation-title .title-input {
  background: #444444;
  border-color: #555555;
  color: #e0e0e0;
}

body.dark-mode .conversation-item.active .conversation-title {
  color: #ffffff;
}

body.dark-mode .conversation-preview {
  color: #b3b3b3;
}

body.dark-mode .conversation-item.active .conversation-preview {
  color: #cccccc;
}

body.dark-mode .conversation-date {
  color: #888888;
}

body.dark-mode .conversation-item.active .conversation-date {
  color: #bbbbbb;
}

body.dark-mode .conversation-list::-webkit-scrollbar-track {
  background: #333333;
}

body.dark-mode .conversation-list::-webkit-scrollbar-thumb {
  background: #555555;
}

body.dark-mode .empty-conversations {
  color: #b3b3b3;
}

body.dark-mode .empty-conversations i {
  color: #444444;
}

body.dark-mode .toast {
  background-color: #333333;
}

body.dark-mode .toast-header {
  background-color: #444444;
  color: #e0e0e0;
}

body.dark-mode .info-card {
  background-color: #2d2d2d;
}

body.dark-mode .info-icon-con {
  background: #444444;
}

body.dark-mode .table-con {
  border-color: #555555;
}

body.dark-mode .search-box .input-group-text {
  background-color: #333333;
  color: #b3b3b3;
}

body.dark-mode .search-box .form-control {
  background-color: #333333;
  color: #e0e0e0;
}

body.dark-mode .recent-h5,
body.dark-mode .recent-h5-activity {
  color: #b3b3ff;
}
body.dark-mode .wel-area {
  background-color: #2d2d2d;
}
body.dark-mode .wel-area-right {
  background-color: #2d2d2d !important;
}
body.dark-mode .wel-main-text {
  background-color: #2d2d2d !important;
}
body.dark-mode .wel-right-sub-text {
  color: white;
}
body.dark-mode ::placeholder {
  color: white;
}

body.dark-mode label {
  color: white;
}

body.dark-mode .data-table-section {
  background-color: #2d2d2d;
}

body.dark-mode .table-con {
  border-color: #555555;
}

body.dark-mode .table {
  background-color: #000000;
  color: #e0e0e0;
}

body.dark-mode .table tbody tr:nth-child(odd) td {
  background-color: #2d2d2d;
  color: #e0e0e0;
}

body.dark-mode .table tbody tr:nth-child(even) td {
  background-color: #454545;
  color: #e0e0e0;
}

body.dark-mode .table tbody tr:hover td {
  background-color: #444444;
}

body.dark-mode .table td,
body.dark-mode .table th {
  border-color: #555555;
}

body.dark-mode .table a {
  color: #b3b3ff;
}

body.dark-mode .table a:hover {
  color: #8888ff;
}

body.dark-mode .info-card {
  background-color: black;
}

body.dark-mode .dataTables_info {
  color: white;
}
/* body.dark-mode .text-muted{
  color:white !important;
} */
body.dark-mode .extension-download-card {
  background-color: black !important;
  color: white !important;
}
body.dark-mode .img-light {
  display: none;
}

body.dark-mode .img-dark {
  display: inline !important;
}

body:not(.dark-mode) .img-dark {
  display: none;
}

body.dark-mode .extension-download-card h2 {
  color: white !important;
}
body.dark-mode .data-info {
  color: white;
}
body.dark-mode .user-email {
  color: white !important;
}

body.dark-mode .chat-welcome-container {
  background: black;
}
body.dark-mode .table-empty {
  color: #fff !important;
}
body.dark-mode .ext {
  color: white !important;
}
body.dark-mode .diggy_selector_heading {
  color: white !important;
} 
.chat-sub-title {
  color: #4a47a3;
  margin-top: 20px;
}

.conversation-item.active .title-text {
  color: white !important;
}
.conversation-item.active i {
  color: white !important;
  opacity: 1;
}
.conversation-item i {
  font-size: 1.1rem;
}
.conversation-item i:hover {
  transform: scale(1.1);
}
.scraped-data-item.selected {
  background-color: #f0f8ff;
  border-radius: 5px;
}
.scraped-data-item {
  padding: 10px;
  cursor: pointer;
}
#confirmNewChatBtn {
  background-color: #5f59b2;
  color: white;
}
#confirmNewMergeBtn {
  background-color: #5f59b2;
  color: white;
}
#reseller-rows-per-page {
  width: 70px;
}
.default-profile-icon {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.default-profile-icon i {
  font-size: 60px;
  color: #777;
}

.profile-picture-container {
  position: relative;
  width: fit-content;
  margin: 0 auto;
}
.profile-pic {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
}

select.form-select {
  /* Arrow color for most browsers */
  color: #333; /* Text color inside the select */

  /* Remove default appearance for better control */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Custom background with gray arrow using linear gradient */
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%206%205-6z%22%20fill%3D%22gray%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
}

/* Optional: Add padding to prevent overlap */
select.form-select {
  padding-right: 2rem;
}

.chat-welcome-container {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(145deg, #f8f9ff, #ffffff);
  border-radius: 15px;
}

.chat-logo-wrapper {
  margin-bottom: 20px;
}

.chat-logo {
  width: 170px;
  height: auto;
}

.chat-greeting {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
}

.chat-help-text {
  font-size: 18px;
  color: #666;
  margin-bottom: 25px;
}

.chat-suggestions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.chat-card {
  background: #f1f3f5;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.chat-card:hover {
  background: #e1e4e8;
  transform: translateY(-2px);
}
/* Updated Chat Controls Styles */
.chat-controls-container {
  position: relative;
}

.chat-input-container {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.model-selector-container {
  position: absolute;
  left: 10px;
  bottom: 15px;
  z-index: 2;
}

#model-selector {
  width: 140px;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid #d2ccff;
  background-color: #f0efff;
  color: #5f59b2;
  font-size: 16px !important;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%206%205-6z%22%20fill%3D%22%235f59b2%22/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px 6px;
  font-size: 18px;
  top: 5px;
  position: relative;
}

#model-selector:focus {
  outline: none;
  border-color: #5f59b2;
  box-shadow: 0 0 0 2px rgba(95, 89, 178, 0.2);
}

/* Adjust textarea padding to make space for the selector */
.chat-input {
  padding-left: 160px !important;
}

/* Dark mode styles */
body.dark-mode #model-selector {
  background-color: #333333;
  border-color: #555555;
  color: #e0e0e0;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2210%22%20height%3D%226%22%20viewBox%3D%220%200%2010%206%22%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%3E%3Cpath%20d%3D%22M0%200l5%206%205-6z%22%20fill%3D%22%23e0e0e0%22/%3E%3C/svg%3E");
}

body.dark-mode #model-selector:focus {
  border-color: #b3b3ff;
  box-shadow: 0 0 0 2px rgba(179, 179, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #model-selector {
    width: 120px;
    font-size: 12px;
  }

  .chat-input {
    padding-left: 140px !important;
  }
}

@media (max-width: 480px) {
  #model-selector {
    width: 100px;
    padding: 6px 8px;
  }

  .chat-input {
    padding-left: 120px !important;
  }
}

@media (max-width: 600px) {
  .header-right {
    gap: 5px !important;
  }
  #header-name {
    display: none !important;
  }
  .username {
    font-size: 0.9rem;
  }
  .level-badge {
    width: 70px;
  }
  span.username i {
    margin-right: 3px !important;
  }
  .header {
    padding: 10px 10px !important;
  }
}

@media (max-width: 767px) {
  .btn-contact {
    font-size: 1.1rem !important;
  }
  .btn-watch-video {
    font-size: 1.1rem !important;
  }
  .wel-area,
  .wel-area-right {
    padding: 20px 20px !important;
  }
}
#rows-per-page {
  width: 80px;
}
.table-full-hg {
  height: calc(100vh - 342px);
  overflow-y: auto;
}
.filter-con {
  gap: 1rem;
}
@media (max-width: 1520px) {
  .filter-con {
    gap: 0.5rem;
  }
  .table-full-hg {
    height: calc(100vh - 400px);
    overflow-y: auto;
    min-height: 350px;
  }
}
@media (max-width: 992px) {
  .pagination {
    margin-top: 0px !important;
  }
}

@media (max-width: 767px) {
  .subheader-item h4 {
    margin-left: 19px;
  }
  .subheader.collapsed #sidebar-toggle {
    position: absolute;
    left: 0px;
    background: #c9d3ff;
    padding: 10px;
    top: 4px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .subheader #sidebar-toggle {
    position: absolute;
    left: 280px;
    background: #c9d3ff;
    padding: 10px;
    top: 5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}
@media (max-width: 767px) {
  .model-selector-container {
    display: none;
  }
}
@media (max-width: 768px) {
  .chat-input {
    padding-left: 20px !important;
    width: 100% !important;
    font-size: 1.1rem !important;
  }
}

.team-code-section {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 10px;
}
.team-code-section input {
  width: 30vw;
}

.add-team-section {
  margin-top: 2rem;
}
#add-team-member {
  display: flex;
  justify-content: center;
  width: 10vw;
}
.copy-button {
  background: none;
  border: none;
  color: #5f59b2;
  cursor: pointer;
  padding: 4px 8px;
  position: absolute;
  right: 10px;
  top: 10px;
  opacity: 10;
  transition: opacity 0.2s;
}

.message-assistant:hover .copy-button {
  opacity: 10;
}

.copy-button:hover {
  color: #3a3480;
}

.message-assistant {
  position: relative;
  padding-right: 30px;
}
.custom-dropdown {
  position: relative;
  display: inline-block;
}
.custom-dropdown-menu {
  display: none;
  position: absolute;
  z-index: 999;
  background-color: white;
  border: 1px solid #ccc;
  min-width: 140px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 5px 0;
}
.custom-dropdown-menu .dropdown-item {
  width: 100%;
  padding: 8px 16px;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}
.custom-dropdown-menu .dropdown-item:hover {
  background-color: #f2f2f2;
}
.custom-dropdown.open .custom-dropdown-menu {
  display: block;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
  display: block;
}

.modal-header,
.modal-body,
.modal-footer {
  padding: 1rem;
}
/* General Modal Styling */
#assignCampaignModal .modal-content {
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
}

/* Header */
#assignCampaignModal .modal-header {
  background: #5f59b2;
  color: white;
  padding: 1rem 1.5rem;
}

#assignCampaignModal .modal-header .modal-title {
  font-size: 1.25rem;
  display: flex;
  align-items: center;
}

#assignCampaignModal .modal-header i {
  font-size: 1.3rem;
}

#assignCampaignModal .btn-close {
  filter: invert(1);
  opacity: 0.8;
}
#assignCampaignModal .btn-close:hover {
  opacity: 1;
}

/* Lists */
#assignCampaignModal .list-group {
  background: #f9fafb;
}

#assignCampaignModal .list-group-item {
  border: none;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

#assignCampaignModal .list-group-item:last-child {
  border-bottom: none;
}

#assignCampaignModal .list-group-item:hover {
  background: #eef2ff;
}

#assignCampaignModal .list-group-item i {
  margin-right: 0.75rem;
  font-size: 1.1rem;
  color: #2563eb;
}

/* Column Titles */
#assignCampaignModal h6 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#assignCampaignModal h6 i {
  color: #2563eb;
  font-size: 1rem;
}

/* Footer */
#assignCampaignModal .modal-footer {
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
}

#assignCampaignModal .btn-primary {
  background: #2563eb;
  border: none;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
}

#assignCampaignModal .btn-primary:hover {
  background: #1d4ed8;
}
#confirm-assign {
  background-color: #5f59b2;
  color: white;
}
.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  float: right;
  cursor: pointer;
}

.list-group-item.active {
  background-color: #007bff;
  color: white;
}

.spinner-border {
  width: 2rem;
  height: 2rem;
  border: 0.25em solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}
.invitation-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(to right, #e0f2ff, #f0f4ff);
}

.invitation-box {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 480px;
  padding: 40px 30px;
  text-align: center;
}

.invitation-box img {
  height: 48px;
  margin-bottom: 20px;
}

.invitation-box h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #333;
}

.invitation-box p {
  font-size: 16px;
  color: #555;
  margin-bottom: 32px;
}

.invitation-box .btn {
  padding: 12px 28px;
  font-size: 16px;
  border-radius: 8px;
  margin: 0 8px;
  min-width: 120px;
}

.btn-accept {
  background-color: #28a745;
  color: white;
  border: none;
}

.btn-decline {
  background-color: transparent;
  color: #dc3545;
  border: 2px solid #dc3545;
}

.btn:hover {
  opacity: 0.95;
}

#toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1055;
}

.toast {
  background: #333;
  color: #fff;
  padding: 12px 18px;
  border-radius: 6px;
  margin-bottom: 10px;
}
.edit-team-icon {
  color: #007bff;
}
.table_hash {
  width: 50px;
}
.table_date {
  width: 250px;
}
.table_site {
  width: 200px;
}
.table_records {
  width: 100px;
}
.table_options {
  width: 150px;
}
.btn-outline-violet {
  color: #6f42c1;
  border-color: #6f42c1;
}

.btn-outline-violet:hover {
  color: #fff;
  background-color: #6f42c1;
  border-color: #6f42c1;
}

.btn-outline-violet:focus,
.btn-outline-violet.focus {
  box-shadow: 0 0 0 0.25rem rgba(111, 66, 193, 0.5);
}

.btn-outline-violet.disabled,
.btn-outline-violet:disabled {
  color: #6f42c1;
  background-color: transparent;
}
.btn-outline-danger {
  width: 35px;
  height: 27px;
  justify-content: center;
  text-align: center;
  align-items: center;
}
.btn-outline-theme {
  border-color: #5f59b2;
  color: #5f59b2;
  width: auto;
  height: auto;
}

.btn-outline-theme:hover {
  background: #5f59b2;
  color: #ffffff;
  border-color: 5f59b2;
}
.btn-outline-violet {
  width: 35px;
  height: 27px;
  justify-content: center;
  text-align: center;
  align-items: center;
  padding: 2px;
}
.editable-cell {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.editable-cell:hover {
  background-color: #f5f5f5;
}

.editable-cell.editing {
  background-color: #fff9e6;
  outline: 2px solid #ffc107;
}

.non-editable {
  cursor: default !important;
}

.theme-switch {
  display: flex;
  justify-content: center;
  align-items: center;
}

.theme-switch .checkbox {
  opacity: 0;
  position: absolute;
}

.theme-switch .label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 50px;
  position: relative;
  height: 30px;
  width: 67px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  background: #ecebff;
}

.theme-switch .label:hover .moon,
.theme-switch .label:hover .sun {
  transform: rotate(360deg);
}

.theme-switch .ball {
  transition: all 0.3s cubic-bezier(0.76, 0, 0.24, 1);
  background-color: #5f59b2;
  position: absolute;
  border-radius: 50%;
  top: 4px;
  left: 7px;
  height: 21px;
  width: 21px;
  transform: translateX(30px);
}

.theme-switch .moon,
.theme-switch .sun {
  color: #5f59b2;
  transform-origin: center center;
  transition: all 0.5s cubic-bezier(0.76, 0, 0.24, 1);
  transform: rotate(0);
}

/* ✅ Move ball when checked */
.theme-switch .checkbox:checked + .label .ball {
  transform: translateX(30px);
}

/* ✅ Animate via theme class (extra safety if applied via JS) */
.dark .theme-switch .ball {
  transform: translateX(30px);
}
.light .theme-switch .ball {
  transform: translateX(0);
}

/* ✅ Respect system preference but allow override */
@media (prefers-color-scheme: dark) {
  .theme-switch .ball {
    transform: translateX(30px);
  }
  .light .theme-switch .ball {
    transform: translateX(0);
  }
}

.scraped-data-list {
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
  font-family: Arial, sans-serif;
}
.scraped-data-item {
  padding: 10px 10px 10px 20px;
  cursor: pointer;
  border: 1px solid #dbdbdb;
  margin-bottom: 10px;
  border-radius: 8px !important;
}

.scraped-data-item:last-child {
  border-bottom: none; /* remove border from last item */
}

.scraped-data-item:nth-child(odd) {
  background-color: #f9f9f9;
}

.scraped-data-item:nth-child(even) {
  background-color: #ffffff;
}

.scraped-data-item:hover {
  background-color: #eef6ff;
}

.scraped-data-item label {
  flex: 1;
  font-size: 15px;
  color: #333;
  cursor: pointer;
}

.scraped-data-item input[type="radio"] {
  transform: scale(1.3);
  margin-right: 12px;
  cursor: pointer;
}

.scraped-data-item input[type="radio"] {
  margin: 0px;
  position: relative;
  top: 3px;
  margin-right: 5px;
}

.scraped-data-item input[type="radio"]:focus {
  box-shadow: none !important;
}

.form-check-input:checked {
  background-color: #5f59b2 !important;
  border-color: #5f59b2 !important;
}
.w-nowrap {
  white-space: nowrap;
}
.no-data-warning {
  text-align: center;
  padding: 2rem;
  color: #856404;
  background-color: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 8px;
  margin: 1rem;
}

.warning-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #f0ad4e;
}

.no-data-warning h3 {
  margin-bottom: 1rem;
  color: #856404;
}

.no-data-warning p {
  margin-bottom: 0.5rem;
}

.no-data-warning a {
  color: #0056b3;
  text-decoration: underline;
}
#btn-export-csv {
  width: 185px !important;
}
#confirm-add-campaign {
  width: 165px !important;
}
.empty-msg {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  font-size: 1rem;
}
/* Screens */
.success-screen,
.error-screen {
  display: none;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
}

.success-screen.d-none,
.error-screen.d-none { display: none !important; }
.success-screen:not(.d-none),
.error-screen:not(.d-none) { display: flex !important; }

.success-screen .card,
.error-screen .card {
  max-width: 480px;
  width: 100%;
  border: none;
  border-radius: 1rem;
  padding: 2.5rem;
  background: #fff;
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

/* Buttons – shared base */
.back-btn,
.retry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: .75rem;
  font-weight: 600;
  letter-spacing: .2px;
  transition: all .2s ease-in-out;
  border-width: 2px;
}

/* Back to Login (primary) */
.back-btn {
  border-color: #0d6efd;
}

/* Try Again (danger outline, custom hover) */
.retry-btn {
  color: #dc3545;
  background: #fff;
  border: 2px solid #dc3545;
}
.retry-btn:hover {
  background: #dc3545;
  color: #fff;
  box-shadow: 0 6px 18px rgba(220,53,69,.25);
}
.retry-btn:active {
  transform: translateY(1px);
}
.retry-btn:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 4px rgba(220,53,69,.15),
    0 6px 18px rgba(220,53,69,.2);
}

/* Optional: make both buttons same height even if fonts differ */
.back-btn,
.retry-btn { min-height: 48px; }
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.custom-toast {
    padding: 12px 20px;
    color: white;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    min-width: 200px;
    max-width: 300px;
    font-weight: 500;
}
