.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.message {
  margin-bottom: 10px;
  padding: 5px 10px;
  border-radius: 5px;
  max-width: 70%;
  border: 1px solid #ffffff;
}

.user-message {
  background-color: #000000;
  color: #ffffff;
  align-self: flex-end;
  margin-right:10px;
}

.bot-message,
.system-message {
  background-color: #333333;
  color: #ffffff;
  align-self: flex-start;
}

.chat-messages .message.system-message {
  align-self: flex-start;
  width: 100%;
}

.chat-messages .message.system-message .message-content {
	background-color: #333333;
	color: #ffffff;
	padding: 20px;
	border-radius: 5px;
	max-width: 80%;
}

.message {
  transition: all 0.3s ease;
  cursor: pointer;
}

/* Update the .message.expanded styles */
/* File: D:\cf-stuffs\cloudfare\app-pend\where-are-you\r2-pre-2md\css\chat-messages.css */

/* Update the .message.expanded styles */
.message.expanded {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  min-width: 300px;
  min-height: 200px;
  z-index: 9999;
  overflow: auto;
  background-color: #000000;
  border: 2px solid #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically */
  align-items: center; /* Center horizontally */
}

.message.expanded .message-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  overflow: auto;
  max-width: 100%;
  word-wrap: break-word;
}

/* Ensure proper centering for system messages */
.message.system-message.expanded .message-content {
  width: 100%;
  height: 100%;
}

/* Add styles for the backdrop */
.expanded-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
}