/* General Reset */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	max-height: 999999999px;
}

body {
	font-family: "Roboto", system-ui;
	margin: 0;
	padding: 0;
	background: linear-gradient(to bottom right, #f0f4f8, #d9e2ec);
}

/* Floating Chat Button */
#chatButton {
	position: fixed;
	bottom: 40px;
	right: 20px;
	background-color: #004e92;
	color: white;
	width: 56px;
	height: 56px;
	border: 2px solid #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
	cursor: pointer;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Chat Container */
#chatContainer {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);  /* Centers the container */
	width: 720px;  
	max-width: 100%;  /* Ensures it doesn’t stretch beyond screen width */
	height: 95vh; 
	background: #f9f9f9;
	border-radius: 8px;
	box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	flex-direction: column;
}

#chatContainer.active {
	display: flex;
}

/* Responsive Fullscreen on Mobile */
@media (max-width: 768px) {
	#chatContainer {
		width: 100%;
		height: 100%;
		bottom: 0;
		right: 0;
		border-radius: 0;
	}
}

/* Chat Header */
#chatHeader {
	display: flex;
	align-items: center;
	padding: 18px;
	background-color: #004e92;
	color: white;
}

.chat-icon {
	font-size: 30px;
	margin-right: 12px;
}

.chat-name {
	flex: 1;
	font-size: 21px;
	display: inline-block;
	margin-top: 2px;
}

#closeChat {
	background: none;
	border: none;
	font-size: 26px;
	color: white;
	cursor: pointer;
}

/* Chat Messages */
#chatMessages {
	flex: 1;
	padding: 16px;
	overflow-y: auto;
	background: #ffffff;
	font-size: 16px;
}

.chat-msg {
	margin: 14px 0;
	padding: 10px 15px;
	border-radius: 10px;
	max-width: 80%;
	line-height: 1.4;
}

.bot-msg {
	background-color: #f0f0f0;
	align-self: flex-start;
}

.user-msg {
	background-color: #004e92;
	color: white;
	align-self: flex-end;
	margin-left: auto;
}

/* Typing Indicator */
.typing {
	display: flex;
	align-items: center;
	padding: 10px 15px;
}

.dot {
	width: 8px;
	height: 8px;
	background-color: #0078d7;
	border-radius: 50%;
	margin: 0 3px;
	animation: blink 0.6s infinite alternate;
}

.hidden {
	display: none;
}

@keyframes blink {
	from {
		opacity: 0.3;
	}

	to {
		opacity: 1;
	}
}

/* Chat Input */
#chatInputArea {
	display: flex;
	padding: 16px;
	border-top: 1px solid #ddd;
	background-color: #f9f9f9;
}

#userInput {
	flex: 1;
	padding: 12px;
	border-radius: 20px;
	border: 1px solid rgb(100, 100, 100);
	outline: none;
	transition: box-shadow 0.3s;
	font-size: 16px;
}

#userInput:focus {
	box-shadow: 0 0 8px 2px rgba(0, 123, 255, 0.6);
	/* Blue glow */
	border-color: #007bff;
	/* Adds a blue border */
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.fade-in {
	animation: fadeIn 0.7s ease-in forwards;
}

#chatInputArea button {
	background: none;
	border: none;
	color: #004e92;
	font-size: 24px;
	cursor: pointer;
	margin-left: 8px;
}


header {
	padding: 20px;
	background-color: #004e92;
	color: white;
	text-align: left;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

h1 {
	font-size: 2rem;
	margin: 0;
	line-height: 1.4;
	font-family: "Lato", system-ui;
}

#logo {
	font-size: 3.8em;
	display: block;
	margin-bottom: 16px;
}

.content {
	max-width: 800px;
	margin: 20px auto;
	padding: 30px;
	background: white;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	line-height: 1.4;
	color: #333;
}

h2 {
	font-size: 2em;
	color: #004e92;
	margin-bottom: 10px;
}

p {
	font-size: 1.1em;
	margin-bottom: 20px;
}

ul {
	text-align: left;
	margin: 20px 0;
	padding: 0;
	list-style-type: none;
	font-size: 1.1em;
}

li {
	margin: 10px 0;
}

.get-started-btn {
	display: inline-block;
	margin-top: 20px;
	padding: 12px 22px;
	font-size: 1.2em;
	color: white;
	background-color: #004e92;
	/* Same as header */
	border: none;
	border-radius: 5px;
	text-decoration: none;
	transition: background-color 0.3s, transform 0.3s;
	text-align: center;
	/* Center align */
	cursor: pointer;
}

.get-started-btn:hover {
	background-color: #003b73;
	/* Darker shade for hover */
	transform: translateY(-2px);
}

footer {
	margin-top: 40px;
	font-size: 0.9em;
	color: #777;
	text-align: center;
	/* Center align */
}

/* Responsive Design */
@media (max-width: 600px) {
	h1 {
		font-size: 1.6em;
	}

	#logo {
		font-size: 2.5em;
	}

	h2 {
		font-size: 1.5em;
	}

	.get-started-btn {
		font-size: 1em;
		padding: 10px 18px;
	}
}
