
.ping_light_on{
    color:rgb(142, 255, 142);
}
    
.is_typing_msg{
  position: absolute;
  top: -50px;  /* Positions it 10px from the bottom */
  left: 50%;  /* Centers horizontally */
  transform: translateX(-50%);  /* Ensures the element is centered properly */
  background: #255d7c94;
  color: white;
  padding: 10px;  /* Optional: adjust padding */
  border-radius: 1em;
}
h1,h2,h3,h4,h5{
    text-align:center;
    text-transform: uppercase;
}
table{
width:100%;
}
tr:hover{
    background-color: rgba(255, 255, 255, 0.5);
}
td{
    background-color: rgba(255, 255, 255, 0.05);
}
th{
    background-color: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    text-align: center;
}
a{
color: hsl(199deg 32% 70%);
}
a:hover{
color: hsl(199deg 42% 90%);
text-decoration: none;
}
input{
border-radius: 10px 0;
background-color: #2c4856;
color: white;
border: none;
text-align: center;
}
*:focus {
outline: none;
}
.btn-primary {
background-color: rgba(255, 255, 255, 0.501);
border: none;
border-radius: 0px 10px;
color: white;
/* margin: 5px; */
}
.btn-primary:hover{
background-color: white;
color:black;
}


.my-message{
    float:right;
    text-align:right;
}
.partner-message{
    float:left;
    text-align:left;
}
.messages-wrap{
    display: flex;
    flex-direction: column;
}
.message{
    margin:1em;
}
.message-sender-info{
    font-size: 0.8em;
    text-transform: capitalize;
}
.message-timestamp{
    font-size: 0.8em;
}
.message-body{
    background: #ffffff52;
    color: #ffffff;
    padding:0.5em;
    border-radius: 1em;

}




/* Hide scrollbar in textboxes (works for webkit browsers like Chrome, Safari, Edge) */
textarea {
  overflow: hidden;
}

/* For scrollable text areas without visible scrollbars */
textarea {
  overflow-y: scroll; /* Still allows scrolling */
  scrollbar-width: none; /* For Firefox */
}

textarea::-webkit-scrollbar {
  display: none; /* For Chrome, Safari, and Edge */
}

            /* For webkit browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 4px;  /* Width of the scrollbar */
}

::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.578); /* Color of the scrollbar thumb */
  border-radius: 2px;      /* Roundness of the scrollbar */
}

::-webkit-scrollbar-track {
  background-color: transparent; /* Background of the scrollbar track */
}

.entered-chat-msg{
    color:gray;
    text-align: center;
}

/*--------------------
Mixins
--------------------*/
/*--------------------
Body
--------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  background-color: transparent;
  background-size: cover;
  font-family: "Open Sans", sans-serif;
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
}



/*--------------------
Menu
--------------------*/
.menu{
  margin-top: 2vh;
  height: 95vh;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(20px); 

}
.menu-title{
  display:flex;
  justify-content: space-between;
  padding: 1em;
  padding-left: 2em;
  padding-right: 2em;
  align-items:center;

}
.menu-title, .menu-footer{
  background-color: #00000033;
  height: 56px;
  position:relative;
  align-items:center;

}

.menu-title-content{
  padding-top:5px;
  text-transform: uppercase;
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: center;
  flex-direction:column;
}
.avatar{

  display: flex; /* Enables centering */
  justify-content: center; /* Centers horizontally */
  align-items: center; /* Centers vertically */

  border-radius: 50%; /* Makes the container circular */
  overflow: hidden; /* Ensures the image stays within the circular bounds */
  width: 30px;
  height: 30px;

  margin: 0;
  padding: 0;
  /* border: 1px solid rgba(255, 255, 255, 0.24); */

}
.avatar img {
  width: 100%; /* Scales the image to fill the container */
  height: 100%; /* Ensures the image covers the container */
  object-fit: cover; /* Maintains aspect ratio while covering the container */
}

.chat-sub-menu{
    display: flex;
    justify-content: space-around;
    width: 100%;
}


.menu-title .title{
  font-size: 0.9em;
}
.menu-title .subtitle{
  font-size: 0.7em;
  color:gray;
}

.chatrooms-list{
  height:calc(100% - 120px);
  overflow: scroll;
  /* background-color: green; */
}
.chatroom-item{
  border-bottom: 1px solid #062520a8;
  height: 50px;
  display:flex;
  align-items: center;
  justify-content: space-between;
}
.chatroom-item .msg-preview{
  color:gray;
  
}
.chatroom-list-search{
  padding:10px;
}
.chatroom-list-search input{
  width: 100%;
  border-radius: 30px;
  background-color: #0000003e;
  height:25px;

}
.ellipsis-btn{
  font-size: 1.5em;
}
/*--------------------
Chat
--------------------*/
.chat {
  margin-top: 2vh;
  height: 95vh;
  overflow: hidden;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.2);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px); 
  -webkit-backdrop-filter: blur(10px); /* Safari compatibility */
  border-radius: 20px;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}

/*--------------------
Chat Title
--------------------*/
.chat-title {
  /* flex: 0 1 45px; */
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  text-transform: uppercase;
  text-align: left;

  height:56px;
  display:flex;
  justify-content: space-between;
  padding: 1em;
  padding-left: 2em;
  padding-right: 2em;
  align-items:center;
}
.chat-title h1, .chat-title h2 {
  font-weight: normal;
  font-size: 1.5em;
  margin: 0;
  padding: 0;
}
.chat-title h2 {
  color: rgba(255, 255, 255, 0.5);
  font-size: 8px;
  letter-spacing: 1px;
}


/*--------------------
Messages
--------------------*/
.messages {
  flex: 1 1 auto;
  color: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  position: relative;
  width: 100%;
  font-size: 1.3em;
}
.messages .messages-content {
  position: absolute;
  top: 0;
  left: 0;
  height: 99%;
  width: 99%;
  overflow-y: scroll;
  overflow-x:hidden;
  background: #0000009c;
  
}
.messages .message {
  clear: both;
  float: left;
  padding: 6px 10px 7px;
  border-radius: 10px 10px 10px 0;
  background: rgba(0, 0, 0, 0.4);
  color:white;
  margin: 8px 0;
  font-size: 1.1em;
  line-height: 1.4;
  margin-left: 35px;
  position: relative;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  max-width: 300px;
}
.messages .message .timestamp {
  position: absolute;
  bottom: -15px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);
}
.message .sender-name{
  position: absolute;
  top: -15px;
  width:300px;
  left:0px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.3);  
}
.message .avatar{
  position: absolute;
  left: -35px;
  bottom:-18px;
}
.messages .message::before {
  content: "";
  position: absolute;
  bottom: -6px;
  border-top: 6px solid rgba(0, 0, 0, 0.4);
  left: 0;
  border-right: 7px solid transparent;
}

.messages .message.is-my-message {
  float: right;
  color: #fff;
  text-align: right;
  background: linear-gradient(120deg, #248A52, #257287);
  border-radius: 10px 10px 0 10px;
  text-align: left;
}
.messages .message.is-my-message::before {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 5px solid transparent;
  border-top: 4px solid #257287;
  bottom: -3px;
}
.messages .message:last-child {
  margin-bottom: 8px;
}
.messages .message.new {
  transform: scale(0);
  transform-origin: 0 0;
  -webkit-animation: bounce 500ms linear both;
          animation: bounce 500ms linear both;
  display: flex;
  flex-direction: column;
  font-size: 1.03em;
}
.messages .message.loading::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
  margin-top: 4px;
  -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
          animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  border: none;
  -webkit-animation-delay: 0.15s;
          animation-delay: 0.15s;
}
.messages .message.loading span {
  display: block;
  font-size: 0;
  width: 20px;
  height: 10px;
  position: relative;
}
.messages .message.loading span::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
  margin-top: 4px;
  -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
          animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  margin-left: -7px;
}
.messages .message.loading span::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  content: "";
  display: block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  z-index: 2;
  margin-top: 4px;
  -webkit-animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
          animation: ball 0.45s cubic-bezier(0, 0, 0.15, 1) alternate infinite;
  margin-left: 7px;
  -webkit-animation-delay: 0.3s;
          animation-delay: 0.3s;
}

/*--------------------
Message Box
--------------------*/
.send-msg-wrapper{
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;

}
.message-box {
  /* flex: 0 1 40px; */
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px;
  position: relative;
  height:56px;
}
.message-box .message-input {
  /* position:absolute; */
  /* top:7px; */
  /* left:55px; */
  background: #4444446e;
  border-radius: 7px;
  border: none;
  outline: none !important;
  resize: none;
  color: rgba(255, 255, 255, 1);
  font-size: 11px;
  height: 34px;
  margin: 0;
  padding: 5px;
  padding-left:15px;
  font-size: 1.1em;
  width: calc(100% - 97px);
}
.message-box textarea:focus:-webkit-placeholder {
  color: transparent;
}
.message-box .message-submit {
  /* position: absolute; */
  z-index: 1;
  /* top: 7px; */
  /* right: 10px; */
  color: #fff;
  border: none;
  background: #248a5200;
  font-size: 14px;
  text-transform: uppercase;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 10px;
  outline: none !important;
  transition: background 0.2s ease;
}
.message-box .message-submit:hover {
  background: #1D7745;
}
.message-box .button-attachment{

  /* position: absolute; */
  z-index: 1;
  /* top: 5px; */
  /* left: 3px; */


color: #fff;
border: none;
background: #248a5200;
font-size: 18px;
text-transform: uppercase;
line-height: 1;
padding: 6px 10px;
border-radius: 10px;
outline: none !important;
transition: background 0.2s ease;

}
.message-box .button-emojis{
  /* position: absolute; */
  z-index: 1;
  /* top: 5px; */
  /* left: 25px; */


color: #fff;
border: none;
background: #248a5200;
font-size: 18px;
text-transform: uppercase;
line-height: 1;
padding: 6px 10px;
border-radius: 10px;
outline: none !important;
transition: background 0.2s ease;

}

/*--------------------
Custom Srollbar
--------------------*/
.mCSB_scrollTools {
  margin: 1px -3px 1px 0;
  opacity: 0;
}

.mCSB_inside > .mCSB_container {
  margin-right: 0px;
  padding: 0 10px;
}

.mCSB_scrollTools .mCSB_dragger .mCSB_dragger_bar {
  background-color: rgba(0, 0, 0, 0.5) !important;
}

/*--------------------
Bounce
--------------------*/
@-webkit-keyframes bounce {
  0% {
    transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  4.7% {
    transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  9.41% {
    transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  14.11% {
    transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  18.72% {
    transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  24.32% {
    transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  29.93% {
    transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  35.54% {
    transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  41.04% {
    transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  52.15% {
    transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  63.26% {
    transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  85.49% {
    transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  100% {
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
}
@keyframes bounce {
  0% {
    transform: matrix3d(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  4.7% {
    transform: matrix3d(0.45, 0, 0, 0, 0, 0.45, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  9.41% {
    transform: matrix3d(0.883, 0, 0, 0, 0, 0.883, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  14.11% {
    transform: matrix3d(1.141, 0, 0, 0, 0, 1.141, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  18.72% {
    transform: matrix3d(1.212, 0, 0, 0, 0, 1.212, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  24.32% {
    transform: matrix3d(1.151, 0, 0, 0, 0, 1.151, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  29.93% {
    transform: matrix3d(1.048, 0, 0, 0, 0, 1.048, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  35.54% {
    transform: matrix3d(0.979, 0, 0, 0, 0, 0.979, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  41.04% {
    transform: matrix3d(0.961, 0, 0, 0, 0, 0.961, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  52.15% {
    transform: matrix3d(0.991, 0, 0, 0, 0, 0.991, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  63.26% {
    transform: matrix3d(1.007, 0, 0, 0, 0, 1.007, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  85.49% {
    transform: matrix3d(0.999, 0, 0, 0, 0, 0.999, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
  100% {
    transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
  }
}
@-webkit-keyframes ball {
  from {
    transform: translateY(0) scaleY(0.8);
  }
  to {
    transform: translateY(-10px);
  }
}
@keyframes ball {
  from {
    transform: translateY(0) scaleY(0.8);
  }
  to {
    transform: translateY(-10px);
  }
}


.error-msg{
  position: fixed;
  bottom: 5px;
  left: 50%; /* Move the element to the center of the screen */
  transform: translateX(-50%); /* Offset the element by half its width */
  background: #ff0000;
  color: #ffffff;
  padding: 5px;
}

.in-msg-timestamp{
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.6em;
}
.in-msg-timestamp-peer{
  float: right;
  text-align: right;
  
}













