/* ... Other styles ... */
.messages-section {
	/* margin: 8rem 0; */
	width: 100%;
	margin-left: -1rem;
	margin-top: 8rem;
}

.messages {
	height: 400px;
	overflow-y: scroll;
	/* border: 1px solid #ccc; */
	/* padding: 10px; */
	position: relative;
	display: flex;
	flex-direction: column-reverse;
}

/* Safari-specific styles */
@media screen and (-webkit-min-device-pixel-ratio:0) {
    /* Apply the styles for Safari */
    /* Add -webkit- prefix to properties where required */
    .messages {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-box-direction: reverse;
    }
}

.form-control.chat-input:focus{
    box-shadow: 0 0 0 0.05rem #aaa172;
}

.input-container {
	display: flex;
	margin-top: 10px;
	position: relative;
}

.send-btn-css {
	width: 45px;
	height: 40px;
	border-radius: 15px;
	background-color: #aaa172;
	transition: all 0.3s;
	display: flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	position: absolute;
	right: 10px;
	top: 5px;
}

.send-btn-css:hover {
	background-color: #396053;
}

/* .input-container .chat-input {
	flex: 1;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
  }
   */
.chat-btn {
	padding: 8px 15px;
	border: none;
	background-color: #007bff;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
	margin-left: 10px;
}

.form-control.chat-input {
	font-size: 14px;
}

.form-control.chat-input::placeholder {
	font-size: 14px;
}

.message {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	margin-bottom: 10px;
	/* Set position to relative to allow absolute positioning inside it */
	position: relative;
}

.messages::-webkit-scrollbar {
	width: 5px;
	/* Adjust scrollbar to be on the right side */
	scrollbar-width: thin;
	scrollbar-color: #aaa172 #f1f1f1;
}

.messages::-webkit-scrollbar-track {
	background: #f6f5f1;
	border-radius: 5px;
}

.messages::-webkit-scrollbar-thumb {
	background: #aaa172;
	border-radius: 5px;
}

.messages::-webkit-scrollbar-thumb:hover {
	background: #396053;
}

.user-image {
	width: 40px;
	height: 40px;
	background-size: cover;
	border-radius: 50%;
	margin-right: 10px;
	/* Correct background-image URL for the user image */
	background-image: url("../images/ImageUser(doubleClickToEdit).png");
}

.message-text {
	padding: 8px;
	background-color: #f0f0f0;
	border-radius: 8px;
}

.message-time {
	font-size: 12px;
	color: #888;
	margin-top: 5px;
}

/* receiver msg css */
.receiver-msges {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	flex-direction: column;
	margin-bottom: 1.5rem;
	margin-right: 1.5rem;
}

.receiver-inner-content {
	display: flex;
	justify-content: flex-start;
	align-items: flex-start;
}

.img-receiver-div {
	width: 30px;
	height: 30px;
	background-color: #ffffff;
	border-radius: 50%;
	margin-right: 0.5rem;
}

.img-receiver-div .img-receiver {
	object-fit: cover;
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.receiver-msg-para-div {
	width: 100%;
	max-width: 560px;
	height: auto;
	background-color: #ffffff;
	border-radius: 13px;
	padding: 15px;
}

.receiver-msg-para{
	font-size: 12px;
	font-weight: 400;
	color: #000000;
}

.text-and-date{
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: flex-start;
}

.time-receiver-msg{
	padding: 15px;
	padding-left: 0;
}

.time-receiver-msg-para{
	font-size: 11px;
	font-weight: 400;
	color: #000000;
}

/* sender messages css */

.sender-msges {
    display: flex;
    justify-content: end;
    align-items: flex-end;
    flex-direction: column;
    margin-bottom: 1.5rem;
    margin-right: 1.5rem;
}

.sender-msg-para-div {
    width: 100%;
    max-width: 560px;
    height: auto;
    background-color: #AAA172;
    border-radius: 13px;
    padding: 15px;
}

.sender-msg-para {
    font-size: 12px;
    font-weight: 400;
    color: #ffffff;
}

.sender-text-and-date {
    display: flex;
    flex-direction: column;
    align-items: self-end;
    justify-content: flex-start;
}


@media (max-width: 557px) {
	.messages::-webkit-scrollbar {
		width: 0px;
		/* Adjust scrollbar to be on the right side */
		/* scrollbar-width: thin;
		scrollbar-color: #aaa172 #f1f1f1; */
	}
	.sender-msges {
		margin-right: 0rem;
	}
	.receiver-msges {
		margin-right: 0rem;
	}

	.messages-section {
		/* margin: 8rem 0; */
		width: 100%;
		margin-left: 0rem;
	}
}
