@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&display=swap');

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Open Sans', sans-serif;
}

h4,
h5,
h6,
p,
div,
span,
b,
br {
	margin: 0;
	padding: 0;
}


body {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
}

.container {
	position: relative;
	width: 1396px;
	max-width: 100%;
	height: 100vh;
	background: #fff;
	box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.06), 0 2px 5px 0 rgba(0, 0, 0, 0.06);
	display: flex;
	padding: 0;
}

.container .chat-ui-nav {
	position: relative;
	flex: 30%;
	background: #fff;
	border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.container .chat-ui-chat-area {
	position: relative;
	flex: 70%;
	background: #e5ddd5;
}

.container .chat-ui-chat-area::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: url('assets/images/app_images/pattern.png');
	opacity: 0.03;
}

.container .header {
	position: relative;
	width: 100%;
	height: 60px;
	background: #f0f2f5 !important;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0px 15px;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.container .userimg {
	position: relative;
	width: 40px;
	height: 40px;
	overflow: hidden;
	border-radius: 50%;
	cursor: pointer;
}

.container .cover {
	position: absolute;
	width: 100%;
	height: 100%;
}

.container .nav_icons {
	display: flex;
}

.container .nav_icons li {
	display: flex;
	list-style: none;
	justify-content: center;
	cursor: pointer;
	color: #51585c;	
    font-size: 1.25em;
	margin-left: 22px;
}

.search_chat {
	position: relative;
	width: 100%;
	height: 50px;
	background: #f6f6f6;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 0 15px;
}

.search_chat div {
	width: 100%;
}

.search_chat div input {
	width: 100%;
	outline: none;
	border: none;
	background: #fff;
	padding: 6px;
	height: 38px;
	border-radius: 30px;
	font-size: 14px;
	padding-left: 40px;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}

.search_chat div input::placeholder {
	color: #bbb;
}

.search_chat div i {
	position: absolute;
	left: 30px;
	top: 14px;
	font-size: 1.2em;
}


.chatlist {
	position: relative;
	height: calc(100% - 110px);
	/* 60 + 50 = 110 */
	overflow-y: auto;
}


.chatlist .block {
	position: relative;
	width: 100%;
	display: flex;
	align-items: center;
	padding: 15px;
	cursor: pointer;
	box-shadow: rgba(0, 0, 0, 0.02) 0px 6px 24px 0px, rgba(0, 0, 0, 0.05) 0px 0px 0px 1px;
}
}

.chatlist .block.active {
	background: #ebebeb;
}

.chatlist .block:hover {
	background: #f5f5f5;
}

.chatlist .block .imgbx {
	position: relative;
	min-width: 45px;
	height: 45px;
	overflow: hidden;
	border-radius: 50%;
	margin-right: 10px;
}

.chatlist .block .chat-ui-details {
	position: relative;
	width: 100%;
}

.chatlist .block .chat-ui-details .listhead {
	display: flex;
	justify-content: space-between;
}

.chatlist .block .chat-ui-details .listhead h4 {
	font-size: .98em !important;
	font-weight: 500 !important;
	color: #373b3e;
}


.chatlist .block .chat-ui-details .listhead span.offline {
    font-size: .98em !important;
    height: 10px;
    width: 10px;
    margin: 0 10px;
    background-color: #FF9900;
    border-radius: 50%;
    display: inline-block;
}


.chatlist .block .chat-ui-details .listhead span.online {
    font-size: .98em !important;
    height: 10px;
    width: 10px;
    margin: 0 10px;
    background-color: #06d755;
    border-radius: 50%;
    display: inline-block;
}


.chatlist .block .chat-ui-details .listhead .chat-ui-time {
	font-size: 0.75em;
	color: #aaa;
}

.chatlist .block .chat-ui-details .listhead .chat-ui-time {
	color: #111;
}

.chatlist .block.unread .chat-ui-details .listhead .chat-ui-time {
	color: #06d755 !important;
	font-weight: 500;
}

.chatlist .block .message_p {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 3px;
}

.chatlist .block .message_p p {
	color: #aaa;
	display: -webkit-box !important;
	-webkit-box-orient: vertical !important;
	-webkit-line-clamp: 1 !important;
	overflow: hidden;
	font-size: 0.9em;
	overflow: hidden;
	text-overflow: ellipsis;
	margin-bottom: 0;
}


.chatlist .block .message_p b {
	background: #06d755;
	color: #fff !important;
	min-width: 20px;
	height: 20px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 0.75em;
}

.chat-ui-chat-area .header .imgtext {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
}

.chat-ui-chat-area .header .imgtext h4 {
	font-size: .98em !important;
	font-weight: 500 !important;
	color: #373b3e;
	margin-left: 15px;
}

.chat-ui-chat-area .header .imgtext h4 span {
	font-size: .8em !important;
	color: #555;
}


.chat-ui-chat-area .chatmsgbox {
	position: relative;
	width: 100%;
	height: calc(100% - 120px);
	padding: 50px;
	overflow-y: auto !important;
}

.chat-ui-chat-area .chatmsgbox_msg {
	position: relative;
	display: flex;
	width: 100%;
	margin: 5px 0;
}


.chat-ui-chat-area .chatmsgbox_msg p {
	position: relative;
	right: 0;
	text-align: right;
	max-width: 65%;
	padding: 12px;
	/*background: #dcf8c6;*/
		border-radius: 10px;
	font-size: 0.9em;
	margin-top: 5px;
	
		background-color: #f8f8f8 !important;
		box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%) !important;
		border: 1px solid #ddd !important;
		border-radius: 18px 0 18px  18px!important;

	
	

}



	
	

.chat-ui-chat-area .my_message img {
    position: absolute;
    right: -17px;
	text-align: right;
	top: -37px;
	border-radius: 50%;
	height: 40px;
	width: 40px;
	cursor:pointer;
}


.chat-ui-chat-area .frnd_message img {
	position: absolute;
	left: -17px;
	text-align: left;
	top: -36px;
	border-radius: 50%;
	height: 40px;
	width: 40px;
	cursor:pointer;
}


/*
.chat-ui-chat-area .chatmsgbox_msg p::before {
	content: '';
	position: absolute;
	top:0;
	right: -12px;
	width: 20px;
	height: 20px;
	background: linear-gradient(135deg, #dcf8c6 0%, #dcf8c6 50%, transparent 50%, transparent);
}



.chat-ui-chat-area .chatmsgbox_msg p::before {
	content: '';
	position: absolute;
	top: -12px;
	right: 0;
	width: 20px;
	height: 20px;
	background: linear-gradient(327deg, #dcf8c6 0%, #dcf8c6 40%, transparent 50%, transparent);
}
*/

.chat-ui-chat-area .chatmsgbox_msg p span {
	display: block;
	margin-top: 5px;
	font-size: 0.85em;
	opacity: 0.5;
}

.chat-ui-chat-area .chatmsgbox_msg p span .bi {
	display: inline-block;
	margin-top: 5px;
	font-size: 1.3em !important;
	color: #06d755 !important;
}


.chat-ui-chat-area .my_message {
	justify-content: flex-end;
}

.chat-ui-chat-area .frnd_message {
	justify-content: flex-start;
}


.chat-ui-chat-area .frnd_message p {
	background: #fff;
	text-align: left;
	
			background-color: #fff !important;
		box-shadow: 0 0.125rem 0.25rem rgb(0 0 0 / 8%) !important;
		border: 1px solid #ddd !important;
		border-radius: 0 18px  18px  18px!important;
		
}


/*
.chat-ui-chat-area  .frnd_message p::before {
	content: '';
	position: absolute;
	top:0;
	left: -12px;
	width: 20px;
	height: 20px;
	background: linear-gradient(225deg, #fff 0%, #fff 50%, transparent 50%, transparent);
}
 


.chat-ui-chat-area .frnd_message p::before {
	content: '';
	position: absolute;
	top: -12px;
	left: 0;
	width: 20px;
	height: 20px;
	background: linear-gradient(35deg, #fff 0%, #fff 40%, transparent 50%, transparent);
}

*/

.chatbox_input {
	position: relative;
	width: 100%;
	height: 60px;
	background: #f0f0f0;
	padding: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
}

.chatbox_input i {
	cursor: pointer;
	font-size: 1.25em;
	color: #51585c;
}

.chatbox_input i:nth-child(1) {
	margin-right: 15px;
}

.chatbox_input input {
	position: relative;
	width: 90%;
	margin: 0 20px;
	padding: 10px 20px;
	border: none;
	outline: none;
	border-radius: 30px;
	font-size: 1em;
	padding-right: 50px;
	box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px, rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
}


.chat-scroll-down {
	position: fixed;
	bottom: 110px;
	background: #fff;
	right: 20px;
	padding: 6px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	color: #6c7985;
	font-weight: 500 !important;
	font-size: 13px;
}

.chat-scroll-up {
	position: fixed;
	bottom: 150px;
	background: #fff;
	right: 20px;
	padding: 6px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	color: #6c7985;
	font-weight: 500 !important;
	font-size: 13px;
}

.message_p p.typing {
	color: #06d755 !important;
	font-weight: 500 !important;
}

.send-icon {
	position: absolute;
	right: 76px;
	top: 19px;
	font-size: 1.4em;
	transform: rotate(45deg);
	vertical-align: middle;
}
