@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  font-family: "Poppins", sans-serif;
}

body {
  /* display:flex; */
  align-items: center;
  justify-content: center !important;
  min-height: 100vh;
  background: #f7f7f7;
  padding: 0 10px;
}

.wrapper {
  background: #fff;
  max-width: 450px;
  width: 100%;
  box-shadow:
    0 0 128px 0 rgba(0, 0, 0, 0.1),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
}

/* Login & Signup Form CSS Start */
.form {
  padding: 25px 30px;
}

.form header {
  font-size: 25px;
  font-weight: 600;
  padding-bottom: 10px;
  border-bottom: 1px solid #e6e6e6;
}

.form form {
  margin: 20px 0;
}

.form form .error-text {
  color: #721c24;
  padding: 8px 10px;
  text-align: center;
  border-radius: 5px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  margin-bottom: 10px;
  display: none;
}

.form form .name-details {
  display: flex;
}

.form .name-details .field:first-child {
  margin-right: 10px;
}

.form .name-details .field:last-child {
  margin-left: 10px;
}

.form form .field {
  display: flex;
  margin-bottom: 10px;
  flex-direction: column;
  position: relative;
}

.form form .field label {
  margin-bottom: 2px;
}

.form form .input input {
  height: 40px;
  width: 100%;
  font-size: 16px;
  padding: 0 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.form form .field input {
  outline: none;
}

.form form .image input {
  font-size: 17px;
}

.form form .button input {
  height: 45px;
  border: none;
  color: #fff;
  font-size: 17px;
  background: #333;
  border-radius: 5px;
  cursor: pointer;
  margin-top: 13px;
}

.form form .field i {
  position: absolute;
  right: 15px;
  top: 70%;
  color: #ccc;
  cursor: pointer;
  transform: translateY(-50%);
}

.form form .field i.active::before {
  color: #333;
  content: "\f070";
}

.form .link {
  text-align: center;
  margin: 10px 0;
  font-size: 17px;
}

.form .link a {
  color: #333;
}

.form .link a:hover {
  text-decoration: underline;
}

/* Users List CSS Start */
.users {
  padding: 25px 30px;
}

.users header,
.users-list .user-card {
  display: flex;
  align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid #e6e6e6;
  /* justify-content: space-between; */
}

.wrapper img {
  object-fit: cover;
  border-radius: 50%;
}

.users header img {
  height: 50px;
  width: 50px;
}

:is(.users, .users-list) .content {
  display: flex;
  align-items: center;
}

:is(.users, .users-list) .content .details {
  color: #000;
  margin-left: 20px;
}

:is(.users, .users-list) .details span {
  font-size: 18px;
  font-weight: 500;
}

.logout {
  display: block;
  background: #333;
  color: #fff;
  outline: none;
  border: none;
  padding: 7px 15px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 17px;
}

.users .search {
  margin: 20px 0;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
}

.users .search .text {
  font-size: 18px;
}

.users .search input {
  position: absolute;
  height: 42px;
  width: calc(100% - 50px);
  font-size: 16px;
  padding: 0 13px;
  border: 1px solid #e6e6e6;
  outline: none;
  border-radius: 5px 0 0 5px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s ease;
}

.users .search input.show {
  opacity: 1;
  pointer-events: auto;
}

.users .search button {
  position: relative;
  z-index: 1;
  width: 47px;
  height: 42px;
  font-size: 17px;
  cursor: pointer;
  border: none;
  background: #fff;
  color: #333;
  outline: none;
  border-radius: 0 5px 5px 0;
  transition: all 0.2s ease;
}

.users .search button.active {
  background: #333;
  color: #fff;
}

.search button.active i::before {
  content: "\f00d";
}

.users-list {
  max-height: 350px;
  overflow-y: auto;
}

:is(.users-list, .chat-box)::-webkit-scrollbar {
  width: 0px;
}

.users-list .user-card {
  padding-bottom: 10px;
  margin-bottom: 15px;
  padding-right: 15px;
  border-bottom-color: #f1f1f1;
}

.users-list .user-card:last-child {
  margin-bottom: 0px;
  border-bottom: none;
}

.users-list .user-card img {
  height: 40px;
  width: 40px;
}

.users-list .user-card .details p {
  color: #67676a;
}

.users-list .user-card .status-dot {
  font-size: 12px;
  color: #468669;
  padding-left: 10px;
}

.users-list .user-card .status-dot.offline {
  color: #ccc;
}

/* Chat Area CSS Start */
.chat-area header {
  display: flex;
  align-items: center;
  padding: 18px 30px;
}

.chat-area header .back-icon {
  color: #333;
  font-size: 18px;
}

.chat-area header img {
  height: 45px;
  width: 45px;
  margin: 0 15px;
}

.chat-area header .details span {
  font-size: 17px;
  font-weight: 500;
}

.chat-box {
  position: relative;
  min-height: 300px;
  max-height: 300px;
  overflow-y: auto;
  padding: 10px 30px 20px 30px;
  background: #f7f7f7;
  box-shadow:
    inset 0 32px 32px -32px rgb(0 0 0 / 5%),
    inset 0 -32px 32px -32px rgb(0 0 0 / 5%);
}

.chat-box .text {
  position: absolute;
  top: 45%;
  left: 50%;
  width: calc(100% - 50px);
  text-align: center;
  transform: translate(-50%, -50%);
}

.chat-box .chat {
  margin: 15px 0;
}

.chat-box .chat p {
  word-wrap: break-word;
  padding: 8px 16px;
  box-shadow:
    0 0 32px rgb(0 0 0 / 8%),
    0rem 16px 16px -16px rgb(0 0 0 / 10%);
}

.chat-box .outgoing {
  display: flex;
}

.chat-box .outgoing .details {
  margin-left: auto;
  max-width: calc(100% - 130px);
}

.outgoing .details p {
  background: #333;
  color: #fff;
  border-radius: 18px 18px 0 18px;
}

.chat-box .incoming {
  display: flex;
  align-items: flex-end;
}

.chat-box .incoming img {
  height: 35px;
  width: 35px;
}

.chat-box .incoming .details {
  margin-right: auto;
  margin-left: 10px;
  max-width: calc(100% - 130px);
}

.incoming .details p {
  background: #fff;
  color: #333;
  border-radius: 18px 18px 18px 0;
}

.typing-area {
  padding: 18px 30px;
  display: flex;
  justify-content: space-between;
}

.typing-area input {
  height: 45px;
  width: calc(100% - 58px);
  font-size: 16px;
  padding: 0 13px;
  border: 1px solid #e6e6e6;
  outline: none;
  border-radius: 5px 0 0 5px;
}

.typing-area button {
  color: #fff;
  width: 55px;
  border: none;
  outline: none;
  background: #333;
  font-size: 19px;
  cursor: pointer;
  opacity: 0.7;
  pointer-events: none;
  border-radius: 0 5px 5px 0;
  transition: all 0.3s ease;
}

.typing-area button.active {
  opacity: 1;
  pointer-events: auto;
}

/* Responive media query */
@media screen and (max-width: 450px) {

  .form,
  .users {
    padding: 20px;
  }

  .form header {
    text-align: center;
  }

  .form form .name-details {
    flex-direction: column;
  }

  .form .name-details .field:first-child {
    margin-right: 0px;
  }

  .form .name-details .field:last-child {
    margin-left: 0px;
  }

  .users header img {
    height: 45px;
    width: 45px;
  }

  .users header .logout {
    padding: 6px 10px;
    font-size: 16px;
  }

  :is(.users, .users-list) .content .details {
    margin-left: 15px;
  }

  .users-list a {
    padding-right: 10px;
  }

  .chat-area header {
    padding: 15px 20px;
  }

  .chat-box {
    min-height: 400px;
    padding: 10px 15px 15px 20px;
  }

  .chat-box .chat p {
    font-size: 15px;
  }

  .chat-box .outogoing .details {
    max-width: 230px;
  }

  .chat-box .incoming .details {
    max-width: 265px;
  }

  .incoming .details img {
    height: 30px;
    width: 30px;
  }

  .chat-area form {
    padding: 20px;
  }

  .chat-area form input {
    height: 40px;
    width: calc(100% - 48px);
  }

  .chat-area form button {
    width: 45px;
  }
}

/* Button used to open the chat form - fixed at the bottom of the page */
.open-button {
  background-color: #555;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  position: fixed;
  bottom: 23px;
  right: 28px;
  width: 280px;
}

/* The popup chat - hidden by default */
.chat-popup {
  display: none;
  position: fixed;
  bottom: 0;
  right: 15px;
  border: 3px solid #f1f1f1;
  z-index: 9;
}

/* Set a style for the submit/send button */
.cancel {
  background-color: #04aa6d;
  color: white;
  padding: 16px 20px;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-bottom: 10px;
  opacity: 0.8;
}

/* Add a red background color to the cancel button */
.cancel {
  background-color: red;
}

/* Add some hover effects to buttons */
.btn:hover,
.open-button:hover {
  opacity: 1;
}

/* Breadcrumbs */
.default-breadcrumb {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  list-style: none;
  margin-top: 1rem;
  /* margin-bottom: 0rem; */
  font-size: 1.1rem;
  padding-left: 0rem;
}

.default-breadcrumb li.crumb {
  position: relative;
  margin-bottom: 0.5em;
  padding: 0.25em;
  background-color: #eaecf1;
  color: #8093a7;
}

.default-breadcrumb li.crumb::after {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 100%;
  height: 100%;
  width: 1.5em;
  background-color: #eaecf1;
  clip-path: polygon(50% 50%, -50% -50%, 0 100%);
}

.default-breadcrumb li.crumb::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 1px;
  height: 100%;
  width: 1.5em;
  background-color: #eaecf1;
  clip-path: polygon(100% 0, 100% 100%, 0% 100%, 50% 50%, 0% 0%);
  transform: translateX(-100%);
}

.default-breadcrumb li.crumb:not(:first-child) {
  margin-left: 2em;
}

.default-breadcrumb li.crumb:first-child {
  padding-left: 0.5em;
  border-radius: 5px 0 0 5px;
}

.default-breadcrumb li.crumb:first-child::before {
  display: none;
}

.default-breadcrumb li.crumb:last-child {
  padding-right: 1em;
  border-radius: 0 5px 5px 0;
}

.default-breadcrumb li.crumb:last-child::after {
  display: none;
}

.default-breadcrumb li.crumb.active {
  background-color: #00b0ff;
  color: #ffffff;
}

.default-breadcrumb li.crumb.active::before,
.default-breadcrumb li.crumb.active::after {
  background-color: #00b0ff;
}

.default-breadcrumb li.crumb .link {
  max-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.default-breadcrumb li.crumb a {
  color: #8093a7;
}

.default-breadcrumb li.crumb a:hover {
  color: #00b0ff;
}

.popup img {
  text-align: center !important;
  width: auto;
}

.tc-help-wrapper {
  position: relative;
  margin-left: 8px;
}

.tc-icon {
  cursor: pointer;
  font-size: 14px;
}

.tc-tooltip-box {
  position: fixed;
  left: 160px;
  /* adjust according to sidebar width */
  top: 150px;
  /* adjust vertical position */
  width: 240px;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 99999;
}

.tc-help-wrapper:hover .tc-tooltip-box,
.tc-tooltip-box:hover {
  opacity: 1;
  visibility: visible;
}

.tc-tooltip-box strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.tc-tooltip-box a {
  display: block;
  padding: 4px 0;
  text-decoration: none;
  font-size: 13px;
  color: #333;
}

.tc-tooltip-box a:hover {
  color: #007bff;
  padding-left: 5px;
  transition: 0.2s;
}

.final-step {
  font-weight: bold;
  color: green;
  margin-top: 5px;
}

.general-header {
  padding: 10px 15px;
}

.general-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tc-help-wrapper {
  position: relative;
}

.tc-icon {
  cursor: pointer;
  font-size: 14px;
}

/* Wrapper */
.tc-help-box {
  position: relative;
  cursor: pointer;
}

/* Icon */
.help-icon {
  font-size: 18px;
  margin-right: 5px !important;
}

/* Tooltip Box */
.tc-tooltip-content {
  position: absolute;
  top: 30px;
  left: 0;
  width: 300px;
  background: #fff;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 6px;
  display: none;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Links inside tooltip */
.tc-tooltip-content a {
  display: block;
  text-decoration: none;
  color: #333 !important;
  font-size: 13px;
  padding: 3px 0;
}

.tc-tooltip-content a:hover {
  color: #007bff;
}

/* Title */
.tc-tooltip-content strong {
  display: block;
  margin-bottom: 5px;
}

/* Show on hover */
.tc-help-box:hover .tc-tooltip-content {
  display: block;
}

/* Final step highlight */
.final-step {
  font-weight: bold;
  color: green;
}