.bot-msg {
  background: #ffffff;
  color: #333;
  border: 1px solid #ddd;
  align-self: flex-start;
}

.user-msg {
  background: #007bff;
  color: #fff;
  border: 1px solid #ddd;
  align-self: flex-end;
}

.highlight {
  color: #0e612f;
  font-weight: bold;
}

.message-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 10px;
}

.bot-row {
  justify-content: flex-start;
}

.user-row {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  position: relative;
  background: #e0e0e0;
  display: inline-block;
  word-break: normal !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  hyphens: none !important;
}

.bot-msg {
  background: #ffffff;
  color: #333;
  border: 1px solid #ddd;
  border-bottom-left-radius: 0;
}

.user-msg {
  background: #ffffff;
  color: #333;
  border: 1px solid #ddd;
  border-bottom-right-radius: 0;
}

.profile {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  flex-shrink: 0;   /* prevents avatar from squishing text */
}

.user-profile {
  margin-left: 8px;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;   /* prevents avatar from squishing text */
}

.user-avatar {
  margin-left: 8px;
}

.bot-avatar {
  margin-right: 8px;
}

.message-content {
  display: flex;
  flex-direction: column;
  max-width: 70%;
}

.timestamp {
  font-size: 11px;
  color: #00cc66;
  margin-top: 4px;
  text-align: right;
  display: block;
}

.chat-date {
  text-align: center;
  font-size: 13px;
  font-weight: bold;   /* makes it bold */
  color: #0e612f;
  margin: 8px 0;
}

.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.chat-button {
  background: #0e612f;
  color: white;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s;
}

.chat-button:hover {
  background: #70e229;
}

.send-button {
  background: #0e612f;
  color: white;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s;
  margin-right: 35px;
  float: right; /* pushes it to the right */
}

.send-button:hover {
  background: #70e229;
}

.cancel-button {
  background: red;
  color: white;
  padding: 10px;
  border-radius: 6px;
  text-align: center;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.3s;
  margin-right: 35px;
  float: left; /* pushes it to the right */
}

.cancel-button:hover {
  background: #fa8072;
}

.chat-input-field {
  width: 90%;
  padding: 8px;
  margin: 5px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.student-info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.student-info-table td {
  padding: 6px;
  border: 1px solid #ddd;
}

.chat-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.chat-table td {
  padding: 6px;
  border: 1px solid #ddd;
}

.chat-toggle {
	position: fixed;
	bottom: 60px; 
	right: 20px; 
	background: #0e612f; 
	color: #fff; 
	border: none; 
	border-radius: 50%; 
	width: 50px; 
	height: 50px; 
	font-size: 22px; 
	cursor: pointer; 
	z-index: 1000;
}

#chatWidget {
	display: none; 
	position: fixed; 
	bottom: 80px; 
	right: 20px; 
	width: 400px; 
	background: #fff; 
	border-radius: 10px; 
	box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
	z-index: 1000; 
	overflow: hidden;
}

#chatHeader {
	color: #fff; 
	padding: 10px; 
	display: flex; 
	justify-content: space-between; 
	align-items: center;
}

.closeBtn {
	background: none; 
	border: none; 
	color: #fff; 
	font-size: 18px; 
	cursor: pointer;
}

#chatMessages {
	height: 420px; 
	overflow-y: auto; 
	padding: 10px; 
	background: #f5f5ff;
}

#chatInputArea {
	display: flex; 
	padding: 8px; 
	border-top: 1px solid #ddd; 
	background: #fafafa;
	display: none; /* hidden initially */
}