body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
  width: 100%;
  height: 100vh;
  position: fixed;
}

/*chat messages list stye*/
.conversation {
  height: 100%;
  position: relative;
  background-color: #eee;
  background-image: url(../../Arfric_assets/main_chat_bg.png);
  z-index: 0;
  width: 100%;
}

@media (max-width: 480px) {
  .newdiv{
  display: none;
}
}



.conversation ::-webkit-scrollbar {
  transition: all .5s;
  width: 5px;
  height: 1px;
  z-index: 10;
}

.conversation ::-webkit-scrollbar-track {
  background: transparent;
}

.conversation ::-webkit-scrollbar-thumb {
  background: #fafafa;
}

.conversation .conversation-container {
  height: 100%;
  box-shadow: inset 0 10px 10px -10px #000000;
  overflow-x: hidden;
  padding: 0 16px;
  overflow-y: scroll;
  /*margin-bottom: 19px;*/
}

.conversation .conversation-container::after {
  content: "";
  display: table;
  clear: both;
}

/* Messages */

.message {
  color: #000;
  clear: both;
  line-height: 18px;
  font-size: 17px;
  padding: 8px;
  position: relative;
  margin: 6px 0;
  max-width: 85%;
  word-wrap: break-word;
  z-index: 1;
}

.message:after {
  position: absolute;
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  
}


.message:first-child {
  margin: 16px 0 8px;
}

.message.sent {
  background: #fff;
  border-radius: 8px; 
  color: #000;
  margin: 0;
  float: right;
  position: relative;
  height: auto;
  margin-top: 17px;
}

.message.sent:after {
  content: '';
  position: absolute;
  border-width: 0 0 12px 16px;
  border-color: transparent transparent transparent #fff;
  top: 0;
  right: -12px;
}




.message.received {
  background: var(--appColor);
  color: #fff;
  border-radius: 8px; 
  margin: 0;
  margin-top: 17px;
  float: left;  
   height: auto;
  position: relative;
}

.message.received svg{
  /* float: right; 
  margin: 0 0 0 2px;
  display: none; */
}

.message.received svg:hover{
 display: block;
}




.message.received:after {
  content: '';
  position: absolute;
  border-width: 0px 18px 20px 0;
  border-color:  transparent var(--appColor) transparent transparent ;
  top: 0;
  left: -10px;
  
}

.time-status{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 15px;
}

.Msgstatus{
   padding-top: 8px; 
}

.timestamp {
  font-size: 13px;
 margin: auto;
  padding: 3px 5px 0 0;
  display: table;
  position: relative;
  text-transform: uppercase;
  color: #999;
}

.timestamp.received {
  padding-left: 10px;
  text-align: right;
  float: right;
  
}

.timestamp.sent {
  float: right;
  padding-left: 10px;
  text-align: right;
  width: 100%;

}

.chat.text.received {
  /* background: gray;*/
  text-align: left;
}


.chat.image.received {
  max-width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid gray;
  border-radius: 8px;
}

.chat.image.received img {
  max-width: 100%;
  height: auto;
  max-height: 500px;
  border-radius: 8px;
}

#popdownSent{
  background: #eee; 
  height: 120px; 
  width: 150px;  
  border-radius:15px; 
  text-decoration:none; 
  font-size: 18px;
  align-items:center;
  justify-content:center; 
  float:right;
  transition: 0.3s ease-out;
  display: none;
}

.clear{
  clear: right;
}

#popdownSent ul{
  height: 100%; 
  list-style: none; 
  padding: 0; 
  width:100%;
}

#popdownSent ul li{
  margin: 10px; 
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#popdownRecv{
  background: #eee; 
  height: 120px; 
  width: 150px;  
  border-radius:15px; 
  text-decoration:none; 
  display:none; 
  font-size: 18px;
  align-items:center;
  justify-content:center; 
  float:left;
  transition: 0.3s ease-in-out;
}

.left{
  clear: left;
}


#popdownRecv ul{
  height: 100%; 
  list-style: none; 
  padding: 0; 
  width:100%;
}

#popdownRecv ul li{
  margin: 10px; 
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.show-forward-componet{
  display: none;
  position: fixed;
  z-index: 9001;
  width: 95%;
  max-width: 100%;
  font-weight: 500;
  bottom: 7%;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  border-radius: 4px;
  height: 92%;
  padding: 10px;
  top: 0;
  left: 0;
  overflow: auto;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(5px);
}


.show-forward{
  display: block;
}

.forward-content{
  margin-top: 50px;
  width: 100%;
  height: 90%;
}

.forward-content p{
  font-size: 18px;
  text-transform: uppercase;
  margin-top: 20px;
}

.forward-chats{
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: auto;
  height: 70%;
  position: fixed;
  width: 95%;
}

.forward-chats ul{
  list-style: none;
  width: 100%;
  height: 100%;
  padding: 10px;
}

.forward-chats ul li{
  display: flex;
  align-items: center;
  width: 100%;
  height: 50px;
  margin-bottom: 10px;
  padding-bottom: 7px;
}

.forward-chats ul li img{
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 8px;
}

.forward-chats ul li span{
  font-size: 18px;
   border-bottom: 1px solid gainsboro;
   padding: 21px 0;
   width: 100%;
   display: flex;
   justify-content: space-between;
}


.forward-chats ul li span input{
width: 20px;
height: 20px;

} 

.search{
  position: relative;
  background: #fff;
  width: 100%;
  height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
}

.search svg{
  position: absolute;
  left: 40px;
  top: 17px;
  margin-left: 3px;
}

.search input{
  background: #eee;
  border: none;
  width: 80%;
  height: 40px;
  padding: 5px 5px 5px 30px;
  border-radius: 5px;
  font-size: 18px;
}






/*audio Chat sttyle*/
.card {
  width: 400px;
    height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
} 
/* .card {
  width: 200px;
  height: 40px;
  display: inline-flex;
  background: #cdf4f8;
  border-radius: 8px;
}

.audio-icon {
  width: 40px;
  height: 40px;
  border-radius: 50px;
}

.audio-icon span {
  margin: auto;
  margin-top: 8px;
  display: table;
}


.down-audio {
  width: 40px;
  height: 40px;
  border-radius: 50px;
   background: red;
}

.down-audio span {
  margin: auto;
  margin-top: 8px;
  display: table;
} */



/*chats list style sheet*/

.chat-container {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  overflow-y: auto;
}

.board {
  height: 80px;
  width: 100%;
  display: flex;
}

.cha-lis-text-box {
  display: flex;
  width: 100%;
  margin-left: 8px;
  padding: 5px 5px 0 5px;
  height: 100%;
  border-bottom: 1px solid #ccc;
}

.name-date-sec{
  display: flex;
  flex-direction: column;
}

.cha-lis-text-box .name-date-sec {
  padding: 4px;
  width: 100%;
  display: inline-flex;
}

.name-date-sec .chat-user-name {
  font-family: helvetica, arial, sans-serif;
  text-align: left;
  width: 100%;
  font-size: 16px;
  overflow: hidden;
  font-weight: bold;
  color: #222;
  margin-bottom: 10px;
}

.timestamp{
  margin-bottom: 5px;
}

/* .name-date-sec .timestamp {
  font-size: 11px;
  width: 20%;
  margin-right: 8px;
  text-align: right;
  justify-content: center;
  text-transform: uppercase;
  color: #999
} */

/* .cha-lis-text-box .cha-pre-box .msg-pre-card {
  width: 90%;
  height: 20px;
  text-align: left;
  padding: 3px;
  font-family: Helvetica;
  font-size: 14px;
  line-height: 1.38;
  color: #222;
  overflow: hidden;
} */

.un-see-msg {
  background-color: gray;
  color: white;
  width: 30px;
  height: 30px;
  margin: 5px 15px 0 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-pre-box{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* .cha-lis-text-box .cha-pre-box .un-see-msg div {
  padding: 3px;
  margin: auto;
  width: 15px;
  font-size: 11px;
  color: #fff;
  border-radius: 50%;
  height: 15px;
  text-align: center;
  background: #222;
}
 */

.cprofile {
  background: #000;
  float: left;
  width: 50px;
  height: 50px;
  margin-left: 6px;
  margin-top: 6px;
  align-content: center;
  border-radius: 50%;
}

.cprofile img {
  height: 55px;
  width: 55px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

a{
  text-decoration: none;
}

a:link, a:visited{
  color: gray;
}

.link-box{
  display: flex;
  width: 100%;
}

.msg-status{
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #32CD32;
  left: 50px;
  top:50px;
}


/*composing new messages*/

/*chat page stye*/

.chating-header {
  background: var(--appColor);
  height: 70px;
  width: 100%;
  display: inline-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 10px -10px rgba(0, 0, 0, 0.2);
  padding-bottom: 10px;
}

.chat-user-image .chat-user-profile {
  width: 55px;
  height: 55px;
  justify-content: center;
  object-fit: cover;
  border-radius: 50%;
  padding: 0.4em;
  margin-right: 5px;
}


.chating-header .chat-user-name {
  text-align: left;
  width: 70%;
  display: block;
  margin-left: 10px;
}

.chat-user-name .chat-user-friend {
  text-align: left;
  margin-left: 4px;
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  padding: 0.2em;
  font-family: helvetica;
}


.chat-user-name .chat-user-status {
  text-align: left;
  margin-left: 8px;
  color: #fff;
  font-size: 14px;
  padding: 0.2em;
  font-family: helvetica;
}

.chating-header .chat-menu {
  display: flex;
  position: relative;
  height: 100%;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 70px;
}

.chating-header .chat-menu svg {
  margin-top: 10px;
}


/*messages list*/

.message-list-box {
  overflow-y: scroll;
  z-index: 0;
  height: 85vh;
  overflow: auto;
}




/*composing new message on chat page*/
.conversation-compose {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  position: fixed;
  bottom: 0;
  flex-direction: row;
  overflow: hidden;
  height: 50px;
  margin: 0 auto;
  width: 100%;
  background: #fff;
  z-index: 2;
  padding-bottom: 12px;
}


.conversation-compose div,
.conversation-compose input {
  background: #fff;
  height: 100%;
}

.conversation-compose .emoji {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: none;
  position: absolute;
  top: 19px;
  left: 15px;
}

.conversation-compose .input-msg {
  border: 0;
  flex: 1 1 auto;
  font-size: 14px;
  margin-top: 10px;
  margin-left: 5px;
  outline: none;
  height: 35px;
  width: 100%;
  border-radius: 30px;
  padding: 5px;
  padding-left: 40px;
  padding-right: 40px;
  font-size: 18px;
}

.conversation-compose .input-msg::placeholder {
  font-size: 18px;
}

.conversation-compose .file-attach {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: none;
  position: absolute;
  top: 32%;
  right: 17%;
}

.conversation-compose .file-attach .trigger {
  display: block;
  color: #7d8488;
  font-size: 24px;
  transform: translate(-50%, -50%);
  position: relative;
  top: 50%;
  margin-left: 10px;
}

.conversation-compose #send {
  background: transparent;
  border: 0;
  cursor: pointer;
  flex: 0 0 auto;
  margin-right: 3px;
  padding: 0;
  position: relative;
  outline: none;
  margin-left: .4rem;
  margin-top: 7px;
}

.conversation-compose #send .circle {
  border-radius: 50%;
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/*chat attach model style*/

.chat-attachment-modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 9001;
  /* Sit on top */
  width: 100%;
  /* Full width */
  font-weight: 500;
  bottom: 6%;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  border-radius: 4px;
  height: 35%;
  /* Full height */
  background-color: #eee;
}

.chat-attachment-modal .m-content {
  height: 150px;
  background: #eee;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;

}

.close-attach {
  color: #333;
  font-size: 48px;
  position: absolute;
  top: 0;
  right: 10px;
  cursor: pointer;
}

.chat-attachment-modal .m-content .close:hover,
.close:focus {
  color: red;
  cursor: pointer;
}

.chat-attachment-modal .m-content .attachment-div {
  height: 70%;
  margin: 15px 8px;
  width: 40%;
}


.chat-attachment-modal .m-content .attachment-div span {
  /* background: #23a; */
  width: 100%;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin-bottom: 5px;
}

.chat-attachment-modal .m-content .attachment-div span svg {
  width: 67%;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 27%;
  border-radius: 50%;

}

.chat-attachment-modal .m-content .attachment-div span i {
  list-style: none;
  padding: 1em;
  display: block;
  margin-left: 3px;
  font-size: 16px;
}


.show-files-componet {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 9001;
  /* Sit on top */
  width: 95%;
  max-width: 100%;
  /* Full width */
  font-weight: 500;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  bottom: 7%;
  border-top-right-radius: 10px;
  border-top-left-radius: 10px;
  border-radius: 4px;
  height: 92%;
  /* Full height */
  padding: 10px;
  top: 0;
  left: 0;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.close-show-component {
  color: #fff;
  font-size: 48px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}

.component-content{
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}


.show-files-componet .component-content img {
  height: 100%;
  width: 100%;
  background: #fff;
  object-fit: cover;
  margin: 8px 8px;
  border: 1px solid #ccc;
  
}

.show-reply-div{
  display: none;
  position: fixed;
  z-index: 9001;
  width: 95%;
  max-width: 100%;
  font-weight: 500;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.12), 0 1px 5px 0 rgba(0, 0, 0, 0.2);
  bottom: 7%;
  border-top-right-radius: 15px;
  border-top-left-radius: 15px;
  border-radius: 4px;
  height:6%;
  background-color: #fefefe;
  padding: 12px;
  top: 84%;
  left: 0;
  font-size: 18px;
}

.show-reply-div p{
  border-left: 5px solid #333;
  border-radius: 5px;
  background: gainsboro;
  width: 90%;
}

.show-reply-div span{
  font-weight: 600;
  font-size: 20px;
  margin-left: 5px;
}

.close-reply {
  color: #000;
  font-size: 48px;
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}