* {
  box-sizing: border-box;
}

body {
  background-color: #edeff2;
  font-family: "Calibri", "Roboto", sans-serif;
}

@media (min-width: 768px) {
  .col-sm-6 {
      /* width: 50%; */
      margin-right: 20%;
      margin-left: 20%;
      width: auto;
  }
}

.chat_window {
  /*position: absolute;*/
  width: calc(100% - 20px);
  max-width: 800px;
  height: 500px;
  /* border-radius: 10px; */
  left: 50%;
  top: 50%;
  /*transform: translateX(-50%) translateY(-50%);*/
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background-color: #f8f8f8;
  overflow: hidden;
}

.top_menu {
  background-color: #fff;
  width: 100%;
  padding: 13px 0px;
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.1);
}
.top_menu .buttons {
  margin: 3px 0 0 20px;
  position: absolute;
}
.top_menu .buttons .button {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 10px;
  position: relative;
}
.top_menu .buttons .button.close {
  background-color: #f5886e;
}
.top_menu .buttons .button.minimize {
  background-color: #fdbf68;
}
.top_menu .buttons .button.maximize {
  background-color: #a3d063;
}
.top_menu .title {
  text-align: center;
  color: #337ab7;
  font-size: 20px;
}

.messages {
  position: relative;
  list-style: none;
  padding: 20px 10px 0 10px;
  margin: 0;
  height: 70%;
  overflow: scroll;
  overflow-x: hidden;
}
.messages .message {
  clear: both;
  overflow: hidden;
  margin-bottom: 20px;
  transition: all 0.5s linear;
  opacity: 0;
}
.messages .message.left .avatar {
  background-color: #f5886e; 
  /* background-image: url(../img/image.png); */
  float: left;
}

/* for left msg img avtar */
.messages .message.left .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.messages .message.left .text_wrapper {
  background-color: white;
  margin-left: 20px;
}
/* .messages .message.left .text_wrapper::after, .messages .message.left .text_wrapper::before { */
  /* right: 100%;
  border-right-color: #ffe6cb; */
/* } */
.messages .message.left .text {
  color: #c48843;
}
.messages .message.right .avatar {
  /* background-color: #005EA0;
  float: right; */
  /* added css for E*/
  /* color: white;
  font-size: 40px;
  justify-content: center;
  align-items: center;
  display: flex; */
  display: none;
}
/* for rihgt msg img avtar */
.messages .message.right .avatar img {
  
  /* commented width and height to hide the image for right message
  width: 100%;
  height: 100%; */
  border-radius: 50%;
}

.messages .message.right .text_wrapper {
  background-color: #C5DFF4;
  margin-right: 20px;
  float: right;
}
/* .messages .message.right .text_wrapper::after, .messages .message.right .text_wrapper::before {
  left: 100%;
  border-left-color: #c7eafc;
} */
.messages .message.right .text {
  color: #005EA0;
  float: right;
}
.messages .message.appeared {
  opacity: 1;
}
.messages .message .avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: inline-block;
}
.messages .message .text_wrapper {
  display: inline-block;
  padding: 20px;
  border-radius: 6px;
  /* width: calc(100% - 85px); */
  /* min-width: 100px; */
  max-width: calc(100% - 85px);
  min-width: 50px;
  position: relative;
}
.messages .message .text_wrapper::after, .messages .message .text_wrapper:before {
  top: 18px;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none;
}
.messages .message .text_wrapper::after {
  border-width: 13px;
  margin-top: 0px;
}
.messages .message .text_wrapper::before {
  border-width: 15px;
  margin-top: -2px;
}
.messages .message .text_wrapper .text {
  font-size: 18px;
  font-weight: 300;
}

.bottom_wrapper {
  position: relative;
  width: 100%;
  background-color: #F0F5F9;
  padding: 20px 20px;
  /*position: absolute;*/
  bottom: 0;
}
.bottom_wrapper .message_input_wrapper {
  display: inline-block;
  height: 50px;
  border-radius: 10px;
  border: 2px solid #0072CE;
  width: calc(100% - 160px);
  position: relative;
  padding: 0 0px;
}
.bottom_wrapper .message_input_wrapper .message_input {
  border: none;
  height: 100%;
  box-sizing: border-box;
  border-radius: 10px;
  width: calc(100% - 0px);
  position: absolute;
  outline-width: 0;
  color: gray;
}
.bottom_wrapper .send_message {
  width: 140px;
  height: 50px;
  display: inline-block;
  border-radius: 10px;
  background-color: #0072CE;
  border: 2px solid #0072CE;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s linear;
  text-align: center;
  float: right;
}
/* .bottom_wrapper .send_message:hover {
  color: #a3d063;
  background-color: #fff;
} */
.bottom_wrapper .send_message .text {
  font-size: 18px;
  font-weight: 300;
  display: inline-block;
  line-height: 48px;
}

.message_template {
  display: none;
}

.chat_window{
	/* margin-left: 50%; */
	height: calc(100vh - 120px);
  background-color: #F0F5F9;
  margin: 0px auto;
  /* margin-right: 50%; */
}
.messages{
	height: calc(100vh - 250px);
}

.messages .message.left .text {
    color: black !important;
    font-weight: inherit;
}

#msg_input{
    color: black;
}

.title_window {
  /* width: calc(100% - 20px);
  max-width: 800px;
  height: 100px;
  margin-left: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 10px; */
  width: calc(100% - 20px);             /* Responsive width */
  max-width: 800px;       /* Maximum width */
  /* margin: 10px auto;      Centered on the screen */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  margin: auto;
  height: 130px;
  /* border-radius: 8px; */
}

.avatartitle {
  /* width: 60px;
  height: 60px;
  border-radius: 50%; */
  min-width: 60px;
  max-width: 60px;
  height: auto;
  border-radius: 50%;
}

/* .text_wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-right: auto;
    margin-left: 10px;
} */
.main_div {
  margin: 0px 10px;
}

.help_text {
    font-size: 18px;
    font-weight: bold;
    /* margin: 0; */
    margin-bottom: 3px;
}

.status {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.green_dot {
    width: 10px;
    height: 10px;
    background-color: #00BC42;
    border-radius: 50%;
    margin-right: 5px;
}

.status_text {
    font-size: 14px;
    color: #333;
}

.logo {
    width: auto;
    height: 40px;
    margin-left: 10px;
}

.logo1 {
  min-width: 50px;
  max-width: 160px;
  height: auto;
}

.logo2 {
  min-width: 40px;
  max-width: 50px;
  height: auto;
}

.title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 24px;
  color: #333;
}

/* ************** For new chatbot with buttons ********************** */
.btn-option {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 8px;
  display: block;
  opacity: 1;
  background-color: #0072CE; 
  border: none;
  color: white;
  box-shadow: 0 5px 12px 0 rgba(0,0,0,0.2), 0 4px 10px 0 rgba(0,0,0,0.19);
  transition: opacity 0.5s ease-in-out;
}

/* for bot message with input box and button */
.input-container {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  width: 100%;
}

.input-box {
  padding: 10px;
  border: 2px solid #ccc;
  width: calc(100% - 100px);
  flex-grow: 1;
  /* min-width: 0; */
  /* border-radius: 5px; */
  /* width: 250px; */
}

.input-box::placeholder {
  overflow-wrap: break-word;
}

.accept-button {
  background-color: #0072CE;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0; 
}

.accept-button:disabled {
  background-color: gray;
  cursor: not-allowed;
}

/* For bus arrival info table response */

.bus-table {
  width: 100%;
  border-collapse: collapse;
  border: 2px solid #ccc;
  /* margin: 20px 0; */
}

.bus-table td {
  padding: 10px;
  padding-bottom: 5px;
  padding-top: 5px;
  /* border: 1px solid #ddd; */
  border: none;
  text-align: left;
  vertical-align: middle;
}

.bus-table tr { 
  border-bottom: 2px solid #ccc; /* Add horizontal line */ 
} 

.line-badge {
  background-color: #007bff;
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

/* Fixed height for autocomplete*/
.fixed-height {
  padding: 1px;
  max-height: 100px;
  overflow: auto;
  width: calc(100% - 100px);
}