/*.newsletter-popup {
    display: none !important;
}*/
/* Global Styles */

.chat-container {
  display: flex;
  width: 100%;
  height: 90vh;
    margin: 0 auto;
position: relative;
}

/* Sidebar Styles */
/* .chat-sidebar {
  width: 25%;
  padding: 20px 0;
  transition: width 0.3s;
  background: #F7F7F7;
} */

.chat-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 0 20px;
}
.chat-sidebar.closed .chat-sidebar-header {
  padding-left: 10px;
}
/* CSS for initial layout */
.chat-sidebar {
  width: 300px; /* initial width of side navigation */
  transition: width 0.3s ease;
  float: left;
  background: #F7F7F7;
  padding: 10px 0 20px;
  position: absolute;
  left: 0;
  height: 100%;
  z-index: 21;
  bottom: 0;
}
.chat-area.full-width .chat-header {
  padding-left: 56px;
}
.chat-area {
  margin-left: 300px; /* accommodates side nav width */
  transition: margin-left 0.3s ease;
  width: calc(100% - 250px);
}
/* Additional CSS for toggled classes */
.chat-sidebar.closed {
  width: 0; /* set side nav width to 0 */
}

.chat-area.full-width {
  margin-left: 0; /* remove margin */
  width: 100%; /* expand to full width */
}
.chat-sidebar.closed span.iconmore_chat {
  display: none;
}
.menu-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  outline: none;
  padding: 0;
}

.chat-list {
  list-style: none;
  padding-left: 0;
  height: calc(100% - 50px);
  overflow: auto;
  margin: 0;
}


.conversion-title {
  justify-content: space-between;
  position: relative;
  border-bottom: 1px solid #F1F1F1;
  display: flex;
  padding: 16px 20px;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.chat-heading {
  overflow: hidden;
  color: var(--dark-blue-text, #263238);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'kokoro';
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
  display: block;
}
.chat-date {
  overflow: hidden;
  color: var(--Grey-text, #868686);
  text-overflow: ellipsis;
  font-family: 'kokoro';
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
  display: block;
}
.iconmore_chat {
    cursor: pointer;
    display: flex;
}
/* Chat Area Styles */
.chat-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #fff;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    position: relative;
    width: 100%;
    box-shadow: rgba(0, 0, 0, 0.04) 0px 3px 5px;
}
.titleheader {
    display: flex;
    align-items: center;
    gap: 8px;
}
.titleheader p {
    color: var(--dark-blue-text, #263238);
    text-align: center;
    font-family: 'kokoro';
    font-size: 20px;
    font-style: normal;
    font-weight: 600;
    line-height: 150%;
}
.menu-dots {
  font-size: 24px;
  cursor: pointer;
  width: 20px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropdown-menu-chat {
  display: none;
  position: absolute;
  top: 50px;
  right: 15px;
  overflow: hidden;
  border-radius: 8px;
  background: #FFF;
  box-shadow: 0px 6px 18px 0px rgba(0, 0, 0, 0.10);
  z-index: 9;
}

.dropdown-menu-chat a,span.rename-conversation,span.delete-conversation,span.conversation {
  display: flex;
  padding: 14px 14px 12px;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  gap: 4px;
  align-items: center;
  border-bottom: 1px solid var(--Border, #D4D6D7);
  height: 50px;
}
span.delete-conversation{
  color: var(--Mind, #FC5A31);
font-style: normal;
font-weight: 400;
line-height: 150%; 
}
.chat-right-links {
  display: flex;
  padding: 14px 14px 12px;
  text-decoration: none;
  color: #333;
  cursor: pointer;
  gap: 4px;
  align-items: center;
  border-bottom: 1px solid var(--Border, #D4D6D7);
  height: 50px;
}
span.deleteSvg,
.updatesvg {
  width: 24px;
  height: 24px;
  transform: translateY(-2px);
}
span.delete-conversation:last-child ,
.chat-right-links:last-child {
border: none;
}
.dropdown-menu-chat a.delete {
  color: red;
}
.chatstar_icon-header {
    margin-top: -3px;
}
.chat-box {
    flex: 1;
    padding: 40px 10px;
    overflow-y: auto;
    max-width: 90%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}
.chat-box::-webkit-scrollbar {
  width: 0;  /* Remove scrollbar space */
  background: transparent;  /* Optional: just make scrollbar invisible */
}
button:focus{
  outline: none !important;
}
.bot-chat, .user-chat {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  width: fit-content;
}

.bot-message {
  align-self: flex-start;
  display: flex;
  gap: 8px
}
.chatstar_icon {
    margin-top: 2px;
}
.bot-chat{
    color: var(--dark-blue-text, #263238);
    border-radius: 16px 16px 16px 0px;
    background: var(--Grey-F2, #F2F2F2);
}
.user-chat p,
.bot-chat p {
    font-family: 'kokoro';
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
}
.user-message { 
  align-self: flex-end;
}
.user-chat{
    background-color: #004d40;
    color: white;
    border-radius: 10px 10px 0px 10px;
    background: var(--Body, #004638);
}
.chat-input {
  display: flex;
  position: relative;
}

.chat-input input {
  flex: 1;
  padding: 10px;
  border: none;
  outline: none;
}
.chat-input input {
    flex: 1;
    border: none;
    outline: none;
    border-radius: 10px;
    background: #F5F5F5;
    display: flex;
    height: 48px;
    padding: 12px 46px 10px 12px;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}
.chat-input button {
    background-color: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
}
.chat-botton-input {
    max-width: 90%;
    margin: 0 auto;
    width: 100%;
    margin-bottom: 24px;
}
.poweredby-text {
    color: var(--Grey-text, #868686);
    text-align: center;
    font-family: 'kokoro';
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin-top: 10px;
}

.message-loader-2 {
  align-items: center;
  border-radius: 15px;
  display: flex;
  height: 28px;
  justify-content: space-between;
  padding: 0 5px;
  position: relative;
  width: 40px;
}
.message-loader-2 .loader-bar-2 {
  background: red;
  border-radius: 5px;
  height: 8px;
  position: relative;
  width: 8px;
}
.message-loader-2 .loader-bar-2:first-of-type {
  animation: chat-typing-indicator 1.5s infinite;
   background: rgb(209, 153, 249);
}
.message-loader-2 .loader-bar-2:nth-of-type(2) {
  animation: chat-typing-indicator 1.5s infinite 0.2s;
   background: rgb(0, 70, 56);
}
.message-loader-2 .loader-bar-2:nth-of-type(3) {
  animation: chat-typing-indicator 1.5s infinite 0.4s;
   background:rgb(252, 90, 49);
}

@keyframes chat-typing-indicator {
  0% {
    top: 0;
        
 }
  6.25% {
    top: -2px;

 }
  12.5% {
    top: 0;
      
 }
  18.75% {
    top: 2px;
      
 }
  25% {
    top: 0;
     
 }
  12.5% {
 top: 2px;
 }
}

div#rename-popup {
  background: rgb(115 115 115 / 85%);
}

div#rename-popup .modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateY(-50%) translateX(-50%);
  max-width: 420px;
  width: 100%;
  padding:24px;
  border-radius: 8px;
  background: #FFF;
  box-shadow: 0px 6px 18px 0px rgba(0, 0, 0, 0.10);
  border: none;
}

div#rename-popup .modal-content h2 {
  color: var(--dark-blue-text, #263238);
  text-overflow: clip;
  font-family: 'kokoro';
  font-size: 17px;
  font-style: normal;
  font-weight: 600;
  line-height: 150%; /* 24px */
  margin-bottom: 16px;
}

div#rename-popup #new-title {
  width: 100%;
  padding: 11px 14px 10px;
  border-radius: 8px;
  border: 1px solid var(--Gray-300, #D0D5DD);
  background: none;
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  color: var(--dark-blue-text, #263238);
  font-family: 'kokoro';
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  outline: none !important;
  appearance: none;
  height: 44px;
  text-align: left;
}

button#save-title {
  border: 1px solid var(--Body, #FC5A31);
  border-radius: 12px;
  background: var(--Mind, #FC5A31);
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
  color: var(--Base-White, #FFF);
  font-family: 'kokoro';
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 24px;
  display: flex;
  padding: 10px 40px 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex: 1 0 0;
  outline: none;
  width: 100%;
  margin: 20px auto 0;
}

div#rename-popup .modal-content .chat-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 24px;
  position: absolute;
  right: -6px;
  top: -6px;
  cursor: pointer;
  border: 1px solid var(--Body, #FC5A31);
  border-radius: 50px;
  background: var(--Mind, #FC5A31);
  padding: 4px;
}
#rename-popup .modal-content .chat-close-btn svg path {
  fill: #ffffff;
}
/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 50px;
  }

  .sidebar-header h2 {
    display: none;
  }

  .chat-area {
    width: 100%;
  }
  div#rename-popup .modal-content {
    max-width: 90%;
    width: 100%;
    padding: 20px;
  }
  div#rename-popup .modal-content .chat-close-btn {
    width: 24px;
    height: 24px;
    font-size: 20px;
    right: 4px;
    top: 4px;
    padding: 4px;
}
.chat-botton-input,
.chat-box {
  max-width: 96%;
}
}
