/*
 * Elegant Bootstrap 4 message chat box template
 * src: https://bootsnipp.com/snippets/nNg98
 */

.chat{
	min-height: 300px;
	margin-top: auto;
	margin-bottom: auto;
}
.chat .card{
	border-radius: 5px !important;
	background-color: rgba(255,255,255,0.8) !important;
	min-width: 300px !important;
}
.chat .contacts_body{
	padding:  0.75rem 0 !important;
	overflow-y: scroll;
	overflow-x: hidden;
	white-space: nowrap;
	min-height: 250px;
}
.chat .msg_card_body{
	overflow-y: scroll;
	overflow-x: hidden;
	max-height: 250px !important;
	max-width: 100%;
	padding: 10px !important;
	margin-bottom: 25px !important;
	
	-webkit-box-shadow: inset 0px 0px 4px 0px rgba(0,0,0,0.75);
	-moz-box-shadow: inset 0px 0px 4px 0px rgba(0,0,0,0.75);
	box-shadow: inset 0px 0px 4px 0px rgba(0,0,0,0.75);
	
}
.chat .card-header{
	border-radius: 15px 15px 0 0 !important;
	border-bottom: 2px solid transparent !important;
	min-height: 100px !important;
	margin-bottom: 15px !important;
	margin-top: 0px !important;
	background: rgba(0, 0, 0, 0.03) !important;
	box-shadow: none !important;
}

#chatPreviewBody .card-content{
	padding-top: 10px;
	padding-bottom: 10px;
}

.chat .card-footer{
	border-radius: 0 0 15px 15px !important;
	border-top: 0 !important;
	padding: 0px 5px !important;
	margin-bottom: 10px !important;
	min-height: 130px !important;
}

.chat .card-footer > span{
	width: 100% !important;
}

.chat .container{
	align-content: center;
}
.chat .search{
	border-radius: 15px 0 0 15px !important;
	background-color: rgba(0,0,0,0.3) !important;
	border:0 !important;
	color: var(--deepdark) !important;
}
.chat .search:focus{
	box-shadow:none !important;
	outline:0px !important;
}
.chat .type_msg{
	background-color: rgba(0,0,0,0.3) !important;
	border: 1px solid transparent !important;
	border-top-left-radius: 15px !important;
	border-bottom-left-radius: 15px !important;
	border-top-right-radius: 0 !important;
	border-bottom-right-radius: 0 !important;
	color: var(--deepdark) !important;
	height: 60px !important;
	padding: 4px 5px !important;
	overflow-y: auto;
}
.type_msg:focus{
	box-shadow: none !important;
	outline:0px !important;
}
.chat .attach_btn{
	border-radius: 15px 0 0 15px !important;
	background-color: rgba(0,0,0,0.3) !important;
	border: 1px solid transparent !important;
	border-top-right-radius: 15px !important;
	border-bottom-right-radius: 15px !important;
	color: var(--deepdark) !important;
	cursor: pointer;
}
.chat .send_btn{
	border-radius: 0 15px 15px 0 !important;
	background-color: rgba(0,0,0,0.3) !important;
	border:0 !important;
	color: var(--deepdark) !important;
	cursor: pointer;
}
.chat .search_btn{
	border-radius: 0 15px 15px 0 !important;
	background-color: rgba(0,0,0,0.3) !important;
	border:0 !important;
	color: var(--deepdark) !important;
	cursor: pointer;
}
.chat .contacts{
	list-style: none;
	padding: 0;
}
.chat .contacts li{
	width: 100% !important;
	margin: 5px 10px;
	margin-bottom: 15px !important;
}
.chat .active{
	background-color: rgba(0,0,0,0.3);
}
.chat .user_img{
	height: 50px !important;
	width: 45px !important;
	border:1.5px solid #f5f6fa;
	margin: 5px 0 0 12px;
	border-radius: 25% !important;
}
.user_img_msg{
	height: 45px;
	width: 40px;
	border:1.5px solid #f5f6fa;
}
.chat .img_cont{
	position: relative;
	height: 70px !important;
	width: 70px !important;
}
.chat .img_cont_msg{
	height: 40px;
	width: 40px;
}
.chat .online_icon{
	position: absolute;
	height: 15px;
	width:15px;
	background-color: #4cd137;
	border-radius: 50%;
	bottom: 0.2em;
	right: 0.4em;
	border:1.5px solid white;
}
.chat .offline{
	background-color: #c23616 !important;
}
.chat .user_info{
	margin-top: auto;
	margin-left: 15px;
	margin-bottom: auto;
}
.chat .user_info span{
	font-size: 20px;
	color: var(--deepdark);
}
.chat .user_info p{
	font-size: 10px;
	color: rgba(23,23,23,0.6);
}
.chat .video_cam{
	margin-left: 50px;
	margin-top: 5px;
}
.chat .video_cam span{
	color: var(--deepdark);
	font-size: 20px;
	cursor: pointer;
	margin-right: 20px;
}
.chat .msg_container{
	margin-top: auto;
	margin-bottom: auto;
	margin-left: 10px;
	border-radius: 10px;
	min-width: 55px;
	background-color: var(--primary);
	padding: 10px;
	position: relative;
	
	color: white !important;
	font-weight: bold !important;
	
}
.chat .msg_container_send{
	margin-top: auto;
	margin-bottom: auto;
	margin-right: 10px;
	border-radius: 10px;
	min-width: 55px;
	text-align: left;
	background-color: #2e7d32;
	padding: 10px;
	position: relative;
	
	color: white !important;
	font-weight: bold !important;
}
.chat .msg_time_left{
	position: absolute;
	left: 0;
	bottom: -15px;
	color: rgba(23,23,23,0.5);
	font-size: 10px;
}
.chat .msg_time_right{
	position: absolute;
	right:0;
	bottom: -15px;
	color: rgba(23,23,23,0.5);
	font-size: 10px;
}
.chat .msg_head{
	position: relative;
}
#action_menu_btn{
	position: absolute;
	right: 10px;
	top: 10px;
	color: white;
	cursor: pointer;
	font-size: 20px;
}
.chat .action_menu{
	z-index: 1;
	position: absolute;
	padding: 15px 0;
	background-color: rgba(0,0,0,0.5);
	color: var(--deepdark);
	border-radius: 15px;
	top: 30px;
	right: 15px;
	display: none;
}
.chat .action_menu ul{
	list-style: none;
	padding: 0;
	margin: 0;
}
.chat .action_menu ul li{
	width: 100%;
	padding: 10px 15px;
	margin-bottom: 5px;
}
.chat .action_menu ul li i{
	padding-right: 10px;
}
.chat .action_menu ul li:hover{
	cursor: pointer;
	background-color: rgba(0,0,0,0.2);
}
@media(max-width: 576px){
	.chat .contacts_card{
		margin-bottom: 15px !important;
	}
}



#chatBubble{
	position: absolute;
    bottom: 40px;
    right: 5px;
    background: transparent !important;
	z-index: 10 !important;
	max-height: 480px;
	max-width: 640px;
}

#bubbleImageContainer{
	background: rgba(0,0,0,0.7);
}

#chatContainer:hover{
	cursor:pointer;
}

#bubbleImage{
	width: 75px !important;
	height: 75px !important;
}

.speechBubble{
	text-align:right !important;
	margin: 4px 12px !important;
}







/* Remove maybe */

#chatwindow {
	position: fixed;
	bottom: 90px;
	left: 2px;
	z-index: 2;
	min-width: 85px !important;
	background-color: transparent !important;
}

#chat_start:hover{
	cursor: pointer !important;
}

/* For minimizing the chat window */
#cross-1,
#cross-2{
	color: var(--deepdark);
    padding: 10px;
    cursor: pointer;
    font-size: 20px;
    margin-top: -20px;
    margin-right: -10px;
}

#chatwindow .card-footer{
	padding: 10px !important;
}

#chat_box{
	padding: 4px !important;
	margin-right: 5px !important;
	border: 1px solid black !important;
	border-radius: 4px !important;
	background-color: rgba(255,255,255,.9) !important;
}

#chat_box li{
	list-style: none !important;
}

#chat_chats li{
	cursor: pointer;
}


.adminChat #chat_messages{
	min-height: 200px;
	max-height: 300px !important;
}

#chat_messages{
	max-height: 250px;
	max-width: 100% !important;
	overflow-y: scroll !important;
	overflow-x: hidden !important;
	box-shadow: inset 0px 0px 2px var(--dark);
}

.messages{
	line-height: 16px !important;
	border: 1px solid transparent;
	border-radius: 4px;
	margin-bottom: 4px;
	max-width: 275px !important;
}

.messages p{
	margin: 0 !important;
	font-size: 14px !important;
	padding: 4px !important;
	padding-bottom: 0px !important;
	color: var(--text-light) !important;
}

.messages time{
	padding: 0px 4px 0px 4px !important;
	font-size: 12px !important;
}

.msg_receive{
	text-align: right;
	float: right;
	background-color: var(--primary) !important;
}

.msg_sent{
	text-align: left;
	float: left;
	background-color: var(--secondary) !important;
}

#chat_send_text{
	min-width: 250px !important;
}

.msg_card_body::-webkit-scrollbar,
#chat_send_text::-webkit-scrollbar{
    width: .4em !important;
}
 
.msg_card_body::-webkit-scrollbar-track,
#chat_send_text::-webkit-scrollbar-track{
    background: rgba(255,255,255,0.5) !important;
	border-radius: 2px !important;
}
 
.msg_card_body::-webkit-scrollbar-thumb,
#chat_send_text::-webkit-scrollbar-thumb{
  background-color: rgba(0,0,0,.4) !important;
  border-radius: 2px !important;
}

.img_cont{
	background-color: var(--breads);
	max-height: 60px !important;
	border-radius: 25%;
	position: relative;
}

.img_cont img{
	max-width: 50px;
}

.online_icon{
	position: absolute;
	height: 15px;
	width: 15px;
	background-color: #4cd137;
	border-radius: 50%;
	bottom: 0;
	right: 0;
	border: 2px solid white;
	z-index: 100000 !important;
}
.offline{
	background-color: #c23616 !important;
}

