.chatroom_main_div {
    background-color: #f5ecec;
    height: 100vh;
    width: 100vw;
    padding-left: 30px;
    padding-right: 30px;
  }
  
  .chatroom_styled_link {
    color: black;
    font-weight: 200;
    font-size: 15px;
  }

  .demo_timer {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 5px;
  }

  .hr {
    border: none;
    height: 1px;
    background-color: black;
  }


  .chat_window {
    height: 86vh;
    width: 92vw;
    background-color: #f3f3f3; /* Light background around the chat */
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); /* Adds some depth */
    margin: 0 auto;
  }

  .chat_header {
    height: 40px;
    width: 92vw;
    background-color: transparent;
  }

  .chat_header div {
    margin-top: 10px;
    height: 50px;
    width: 50px;
    background-color: grey;
    border-radius: 50%;
  }

  .chat_header p {
    font-weight: bold;
    font-size: 20px;
  }

  .chat_header img {
    margin-top: 10px;
    height: 50px;
    width: 50px;
    border-radius: 50px;
  }


  .chat_body {
    height: 62vh;
    width: 70vw;
    max-width: 90%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    margin: 0 auto;
  }

.chat_history_body {
    height: 77vh;
    width: 100vw;
    max-width: 95%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    margin: 0 auto;
}

  /* Customize the scrollbar */
  .chat_body::-webkit-scrollbar {
    width: 10px; /* Reduce scrollbar width */
  }

    /* Style the scrollbar thumb */
    .chat_body::-webkit-scrollbar-thumb {
        background: #888; /* Darker color for the thumb */
        border-radius: 10px; /* Rounded corners */
    }

        /* Change thumb color on hover */
        .chat_body::-webkit-scrollbar-thumb:hover {
            background: #555; /* Darker color when hovering */
        }


  .message {
    padding: 10px 15px;
    border-radius: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Soft shadow */
    font-size: 16px;
    max-width: 70%;
    word-wrap: break-word;
    display: inline-block;
    animation: fadeIn 0.3s ease-out;
  }
  
  @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

  /* User messages - align to right with green background */
.message.user {
    border: 1px solid #d27a54; /* Green for user */
    background-color: #edc7b2;
    border-radius: 15px 15px 5px 15px;
    padding: 10px;
    text-align: left;
    margin-left: auto;
}
  
  /* Bot messages - align to left with blue background */
.message.bot {
    border: 1px solid #905865; /* Blue for bot */
    background-color: #ebbec7;
    border-radius: 15px 15px 15px 5px;
    padding: 10px;
    text-align: left;
    margin-right: auto;
}

.message.assistant {
    border: 1px solid #905865; /* Blue for bot */
    background-color: #ebbec7;
    border-radius: 15px 15px 15px 5px;
    padding: 10px;
    text-align: left;
    margin-right: auto;
}

  .typing-indicator {
    display: flex;
    align-items: center;
    justify-content: center; /* Centers horizontally */
    gap: 10px;
    margin: 5px auto; /* Adjust spacing */
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease-in-out;
  }

  .typing-indicator.active {
    opacity: 1; /* Visible when active */
  }

  /* Typing bubbles */
  .bubble {
    width: 8px;
    height: 8px;
    background-color: #007bff; /* Same as bot's message color */
    border-radius: 50%;
    animation: bounce 1.0s infinite ease-in-out;
  }

/* Animating the dots */
  .bubble:nth-child(2) {
    animation-delay: 0.2s;
  }

.bubble:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% {
        transform: scale(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
  }

  /* Text styling */
  .typing-indicator span {
    font-size: 14px;
    color: #555;
    font-weight: 700;
    font-family: Arial, sans-serif;
  }

/* Styling for the chat footer container */
.chat_footer {
  width: 80vw;
  max-width: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 10px; /* Space below */
}

/* Styling for the textarea */
.chat_footer textarea {
  width: 100%;
  height: 60px;
  border: 2px solid #ddd;
  border-radius: 25px;
  padding-left: 20px;
  padding-right: 45px; /* Leave space for the send icon */
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
  resize: none;
  outline: none;
  box-sizing: border-box;
  transition: border 0.3s ease;
}

/* Placeholder text styling */
.chat_footer textarea::placeholder {
  color: #888;
  font-style: italic;
}

/* Textarea focus effect */
.chat_footer textarea:focus {
  border-color: #918a8a; /* Focused state border color */
}

/* Styling for the send button */
#send-button {
  background: none; /* Remove default button styling */
  border: none; /* Remove border */
  position: absolute;
  right: 10px; /* Position the button on the right side */
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  padding: 5px;
  transition: transform 0.2s ease;
}

/* Send icon styling */
.send-icon i {
  font-size: 1.5rem; /* Larger icon */
  color: #b3b3b3; /* Default gray color */
  transition: color 0.3s ease, transform 0.2s ease;
}

/* Active state for send icon */
.send-icon i.active {
  color: #918a8a; /* Color when active */
  transform: scale(1.1); /* Slight scaling when active */
}

@media (max-width: 767.98px) {
  .chat_window {
    height: 90vh;
  }

  .chat_body {
    height: 65vh;
    width: 80vw;
    margin-top: 10px;
  }
}

@media (max-width: 475.98px) {
  .chatroom_main_div {
    padding-left: 10px;
    padding-right: 10px;
  }

  .message.user {
    font-size: 12px;
  }

  .message.assistant {
    font-size: 12px;
  }
  
  /* Bot messages - align to left with blue background */
  .message.bot {
    font-size: 12px;
  }

  .chat_body {
    height: 62vh;
  }

  .chat_footer textarea {
    width: 100%;
    height: 55px;
    padding-left: 15px;
    padding-right: 30px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: 12px;
  }

  .send-icon i {
    font-size: 1.2rem; /* Larger icon */
    color: #b3b3b3; /* Default gray color */
    transition: color 0.3s ease, transform 0.2s ease;
  }
}