body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#chat-container {
    background: #ffffff;
    display: flex;
    width: 900px;
    flex-direction: column;
    height: 90%;
    overflow: hidden;
    padding: 5px;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.05) 0px 0px 0px 1px, rgb(209, 213, 219) 0px 0px 0px 1px inset;
}
/* Chat Header */
#chat-header {
  background-color:#ff8a00;
  color: #ffffff;
  padding: 15px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#chat-header h2 {
  margin: 0;
  font-size: 18px;
  }
  
  
  
  .dropdown {
    position: relative;
    display: inline-block;
  }
  
  .dropbtn {
    background-color: transparent;
    color: green;
    margin-right: 10px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
  }
  
  .dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    width: max-content;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 5px;
    right: 10px;
    padding: 10px;
  }
  
  .dropdown-content a,  .dropdown-content p{
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border: none;
    font-size: 14px;
    background: none;
    text-align: left;
    cursor: pointer;
  }
  cust-hr {
    display: block;
    border: none;
    height: 2px;
    background-color: #06060612;
  }

#logoutBtn{
    font-family: "Poppins", sans-serif;
    margin-left: 0 !important;
    width: 100%;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    border: none;

    background: none;
    text-align: left;
    cursor: pointer;
  }
  .dropdown-content a:hover,.dropdown-content p:hover ,#logoutBtn:hover{
    background-color: #ddd;
  }
  
  .dropdown-content a,  .dropdown-content p {
    margin: 0;
  }
  
  .dropdown:hover .dropdown-content {
    display: block;
  }


  .profile-picture{
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }

#chat-header h5 {
  margin: 0;
  font-size: 14px;
}


.user-badge {
  margin: 0;

  padding: 5px 10px;
  background-color: #fff6f2;
  color: #538d45;
  
  /* border-radius: 6px; */

}



#messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 10px;

}

#messages {


    border-radius: 0.25rem;
    display: flex;
    flex-direction: column;

    font-size: 1.25rem;
    margin: 0 auto 1rem;

    padding: 0.5rem 1.5rem;
}

#messages li {
    list-style-type: none;
    border-radius: 1.15rem;
    line-height: 1.25;
    max-width: 75%;
    padding: 0.5rem .875rem;
    position: relative;
    word-wrap: break-word;
 
}

#messages li::before,
#messages li::after{
    bottom: -0.1rem;
    content: "";
    height: 1rem;
    position: absolute;
}

li.from-me {
    align-self: flex-end;
    background-color: #ff8a00;
    background-image: linear-gradient( 100deg,  rgba(245,177,97,1) 0.4%, rgb(236, 90, 54) 100.2% );
    color: #fff; 
    
  }

  li.from-me::before {
    border-bottom-left-radius: 0.8rem 0.7rem;
    border-right: 1rem solid rgb(236, 90, 54);

    right: -0.35rem;
    transform: translate(0, -0.1rem);
  }


  li.from-me::after {
    background-color: #ffffff;
    border-bottom-left-radius: 0.5rem;
    right: -40px;
    transform:translate(-30px, -2px);
    width: 10px;
  }
  
  li[class^="from-"] {
    margin: 0.5rem 0;
    width: fit-content;
  }
  
  li.from-me ~ li.from-me {
    margin: 0.25rem 0 0;
  }
  
  li.from-me ~ li.from-me:not(:last-child) {
    margin: 0.25rem 0 0;
  }
  
  li.from-me ~ li.from-me:last-child {
    margin-bottom: 0.5rem;
  }
  
  li.from-them {
    align-items: flex-start;
    background-color: #e5e5ea;
    color: #000;
  }
  
  li.from-them:before {
    border-bottom-right-radius: 0.8rem 0.7rem;
    border-left: 1rem solid #e5e5ea;
    left: -0.35rem;
    transform: translate(0, -0.1rem);
  }
  
  li.from-them::after {
    background-color: #fff;
    border-bottom-right-radius: 0.5rem;
    left: 20px;
    transform: translate(-30px, -2px);
    width: 10px;
  }






  .user-name {
    font-size: 12px;
    font-weight: bold;
    margin-right: 10px;

}

.message-text {
    font-size: 14px;

}

.message-timestamp {
    font-size: 10px;
    margin-top: 5px;
    text-align: right;
}

#form {
    display: flex;
    padding: 10px;
    background: #fff;
    border-top: 1px solid #ddd;
}

#input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button {
    background-color: transparent;

    margin-left: 5px;
    border: none;
    background-size: contain;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background-color: none;
}
.user-avatar {
  width: 40px; /* Set the width */
  height: 40px; /* Set the height */
  border-radius: 50%; /* Make it circular */
  margin-right: 10px; /* Space between avatar and text */
  object-fit: cover; /* Maintain aspect ratio */
}

.message-header {
  display: flex;
  align-items: center; /* Align items vertically */
}
.loginBtn{
  box-shadow: rgba(3, 102, 214, 0.3) 0px 0px 0px 3px;
  padding: 10px;
}
.loginBtn a{
  text-decoration: none;
}