#starter-message p:first-child {
	margin-top: 0;
}
#chatbox {
	background: #fff;
	height: 320px;
	overflow-y: auto;
	font-size: 16px;
	line-height: 1.5;
	user-select: text;
	padding: 25px;
}
.user-msg, .bot-msg {
	max-width: 75%;
	padding: 12px 18px;
	margin: 10px 0;
	border-radius: 24px;
	word-wrap: break-word;
	box-sizing: border-box;
	display: inline-block;
}
.user-msg {
	background-color: #f0f0f0;
	float: right;
	clear: both;
	text-align: left;
	border-top-right-radius: 0;
}
.bot-msg {
	float: left;
	clear: both;
	text-align: left;
	border-top-left-radius: 0;
	max-width: 100%;
	padding: 0;
}
#chatbox::after {
	content: "";
	display: block;
	clear: both;
}
.typing-loader {
	display: inline-block;
	text-align: left;
}
.typing-loader span {
	display: inline-block;
	width: 6px;
	height: 6px;
	margin: 0 2px;
	background: #444;
	border-radius: 50%;
	opacity: 0.3;
	animation: blink 1.4s infinite;
}
.typing-loader span:nth-child(1) {
	animation-delay: 0s;
}
.typing-loader span:nth-child(2) {
	animation-delay: 0.2s;
}
.typing-loader span:nth-child(3) {
	animation-delay: 0.4s;
}
@keyframes blink {
 0%, 80%, 100% {
opacity: 0.3;
}
 40% {
opacity: 1;
}
}
.bot-msg ul, .bot-msg ol {
	padding-left: 20px;
	margin: 10px 0;
}
.bot-msg ul li {
	list-style-type: disc;
}
.bot-msg ol li {
	list-style-type: decimal;
}
.bot-msg ul li ol li {
	list-style-type: decimal;
}
.bot-msg ol li ul li {
    list-style-type: disc;
}
.bot-msg table {
	border-collapse: collapse;
	margin: 10px 0;
	width: 100%;
	max-width: 600px;
}
.bot-msg table, .bot-msg th, .bot-msg td {
	border: 1px solid #888;
}
.bot-msg th, .bot-msg td {
	padding: 6px 10px;
	text-align: left;
}
.bot-msg a {
	color: #1a0dab;
	text-decoration: underline;
}
.bot-msg a:hover {
	text-decoration: none;
}
.bot-msg code {
	background-color: #f0f0f0;
	padding: 2px 4px;
	border-radius: 3px;
	font-family: monospace;
	font-size: 0.95em;
}
.bot-msg pre {
	background-color: #f6f8fa;
	padding: 10px;
	border-radius: 5px;
	overflow-x: auto;
	font-family: monospace;
	font-size: 0.9em;
	margin: 10px 0;
}
#chatbox::-webkit-scrollbar {
 width: 8px;
}
#chatbox::-webkit-scrollbar-thumb {
 background-color: rgba(0,0,0,0.1);
 border-radius: 4px;
}
#chatbox::-webkit-scrollbar-track {
 background-color: #f9f9f9;
}
#question {
	width: 100%;
	font-size: 16px;
	border: none;
	padding: 20px 25px;
	outline: none;
	background: #fff;
}
#chatbox-wrapper {
	width: 380px;
	box-shadow: 0 5px 10px rgba(0, 0, 0, 0.09);
	border-radius: 30px;
	overflow-y: auto;
	position: fixed;
	bottom: 60px;
	right: 30px;
	z-index: 9;
	max-height: calc(100vh - 60px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}
.chatbox-header {
	margin: 0;
	padding: 20px 25px 20px 25px;
	background: linear-gradient(90deg, #581996 0%, #9B3360 100%);
	position: relative;
	border-top-right-radius: 30px;
	border-top-left-radius: 30px;
	display: flex;
	gap: 20px;
	align-items: center;
}
.chatbox-header {
	margin: 0;
	padding: 20px 25px;
	background: linear-gradient(270deg, #581996, #9B3360, #581996);
	background-size: 600% 100%;
	animation: waveGradient 15s ease infinite;
	position: relative;
	border-top-right-radius: 30px;
	border-top-left-radius: 30px;
	display: flex;
	gap: 20px;
	align-items: center;
}
@keyframes waveGradient {
 0% {
 background-position: 0% 50%;
}
 50% {
 background-position: 100% 50%;
}
 100% {
 background-position: 0% 50%;
}
}
#chatbox-wrapper h2.title {
	color: #fff;
	font-size: 1.25rem;
	display: flex;
	gap: 10px;
	align-items: start;
	margin: 0;
}
#chatbox-wrapper h2.title span {
 font-size: .75rem;
	text-transform: uppercase;
	font-weight: 500;
}
.chatbox-subheading {
	color: #fff;
 font-size: .75rem;
	line-height: 1.4;
}
.chatbox-close {
	background: #fff;
	border: none;
	color: #000;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.chatbox-close:hover {
	background: #000;
	color: #fff;
}
.chatbox-divider {
	position: relative;
	height: 1px;
	background: #fff;
}
.chatbox-divider::after {
	content: '';
	width: calc(100% - 50px);
	background: #ccc;
	position: absolute;
	top: 0;
	left: 25px;
	height: 100%;
}
#chatbox-wrapper .buttons {
	padding: 10px 25px 25px 25px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #fff;
}
.buttons > div {
	display: flex;
	gap: 12px;
	align-items: center;
}
.chat-logo {
	max-width: 100px;
	height: auto;
}
#clear-btn {
	border-radius: 12px;
	width: 45px;
	height: 45px;
	border: none;
	font-size: 1rem;
	padding: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #eee;
}
#clear-btn:hover {
	background: #ddd;
}
#send-btn {
	border-radius: 50%;
	width: 45px;
	height: 45px;
	border: none;
	font-size: 1rem;
	padding: 0;
	background: #9B3360;
	display: flex;
	justify-content: center;
	align-items: center;
}
#send-btn:hover {
	background: #581996;
}
#send-btn svg {
	width: 20px;
	height: auto;
}
.bot-msg.starter-msg {
	font-style: italic;
	color: #666;
}
#ai-assistant {
	background: #9B3360;
	color: #fff;
	height: 58px;
	width: 58px;
	border: 3px solid #fff;
	border-radius: 50%;
	font-size: 20px;
	position: fixed;
	bottom: 60px;
	right: 30px;
	z-index: 8;
	box-shadow: 0px 1px 9px rgba(0, 0, 0, 0.18);
}
#ai-assistant:hover {
	background: #581996;
	transition: transform 0.4s ease, opacity 0.4s ease;
}
/* Active/Visible States */
.chatbox-visible #chatbox-wrapper {
	opacity: 1;
	pointer-events: auto;
}
.chatbox-visible #ai-assistant {
	transform: translateX(150%);
	opacity: 0;
	pointer-events: none;
}
.chatbox-hidden #ai-assistant {
	transform: translateX(0);
	opacity: 1;
	pointer-events: auto;
}

.chat-sources {
  margin-top: 1em;
  font-size: 0.75em;
  color: #444;
  background: #fff;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 7px;
}
.chat-sources strong {
  display: block;
  margin-bottom: 0.5em;
  font-weight: bold;
}
