/* General reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.chat-container {
  width: 350px;
  height: 600px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
  background-color: #2b81cb;
  color: #fff;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.contact-info {
  display: flex;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.activeDot {
	content: '';
	position: relative;
	width: 12px;
	height: 12px;
	background-color: limegreen;
	border-radius: 50%;
	border: 2px solid white;
	top: 15px;
	left: 45px;
}

.contact-name {
  font-weight: bold;
  font-size: 18px;
  padding-left: 5px;
}

.status {
  font-size: 14px;
  color: #d4f1ff;
}

.handset-icon, .three-dots, .fake-back-arrow {
  height: 35px;
  width: 35px;
}

.chat-box {
  flex-grow: 1;
  padding: 15px;
  overflow-y: hidden;
  background-color: #e5ddd5;
  touch-action: none;
}

.message {
  display: flex;
  flex-direction: column;
  max-width: 70%;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 15px;
  font-size: 14px;
}

.message.received {
  align-self: flex-start;
  background-color: #fff;
  color: #000;
  border-bottom-left-radius: 0;
}

.message.sent {
  align-self: flex-end;
  background-color: #DCF8C6;
  color: #000;
  border-bottom-right-radius: 0;
  margin-left: auto;
  margin-right: 0;
}

.message-content {
  margin-bottom: 1px;
}

.message-time {
  font-size: 10px;
  color: #888;
  align-self: flex-end;
}

.message-icons {
	font-size: 14px;
	margin-top: 5px;
	display: inline;
}

.message-icons span {
	curson: pointer;
	margin-right: 8px;
}

.message-icons span:hover {
	color: #888;
}

/* Style for images sent in the chat */
.message img {
  max-width: 98%;  /* Make sure the image doesn't overflow the chat bubble */
  height: auto;
  border-radius: 10px;
  display: block;  /* Makes sure the image is treated as a block inside the message */
}

/*
.message.sent img {
  border: 2px solid #0078FF;
}

.message.received img {
  border: 2px solid #E5E5EA;s
}
*/

.chat-input {
  display: flex;
  align-items: center;
  border-top: 1px solid #ddd;
  padding: 5px 10px;
}

.input-field {
  flex-grow: 1;
  padding: 8px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.send-button {
  padding: 8px 12px;
  margin-left: 10px;
  border: none;
  border-radius: 50%;
  background-color: #2b81cb;
  color: #fff;
  cursor: pointer;
}

.send-button:hover {
  background-color: #1e5d94;
}

.send-arrow {
  width: 0;
  height: 0;
  margin-left: 8px;
  border-top: 12px solid transparent; /* This creates the top part of the arrow */
  border-bottom: 12px solid transparent; /* This creates the bottom part of the arrow */
  border-left: 18px solid #2b81cb; /* This forms the actual arrowhead */
  cursor: pointer;
}

.send-arrow:hover {
  border-left: 18px solid #1e5d94; /* Darken on hover to mimic a button press effect */
}

.control-panel {
	display: flex;
	flex-direction: column;
	margin-left: 20px;
}

.control-message {
	display: flex;
	margin: 20px;
}

.control-buttons {
  margin: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center
}

.control-buttons button {
  padding: 10px 15px;
  font-size: 14px;
  background-color: #2b81cb;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.control-buttons button:hover {
  background-color: #1e5d94;
}