body {
	font-family: Arial, sans-serif;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	margin: 0;
	background-color: #1a1a1a;
	color: #e0e0e0;
	padding: 2rem 0;
}

main {
	text-align: center;
	background-color: #2d2d2d;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
	max-width: 600px;
	width: 90%;
}

h1, h2, h3 {
	color: #ffffff;
}

a {
	color: #4a90e2;
}

#chat-section {
	margin-top: 2rem;
	text-align: left;
	display: flex;
	flex-direction: column;
	height: 500px;
}

#chat-history {
	flex-grow: 1;
	overflow-y: auto;
	padding: 1rem;
	background-color: #232323;
	border-radius: 8px;
	border: 1px solid #4d4d4d;
	margin-bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.message {
	max-width: 80%;
	padding: 8px 14px;
	border-radius: 18px;
	font-size: 0.95rem;
	line-height: 1.4;
	word-wrap: break-word;
	position: relative;
}

.message.user {
	align-self: flex-end;
	background-color: #007aff; /* Apple Blue */
	color: white;
	border-bottom-right-radius: 4px;
}

.message.ai {
	align-self: flex-start;
	background-color: #3e3e40; /* Apple Gray */
	color: #ffffff;
	border-bottom-left-radius: 4px;
}

#input-container {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}

#prompt {
	flex-grow: 1;
	padding: 10px 15px;
	background-color: #3d3d3d;
	color: #ffffff;
	border: 1px solid #4d4d4d;
	border-radius: 20px;
	font-family: inherit;
	box-sizing: border-box;
	resize: none;
	max-height: 120px;
	overflow-y: auto;
}

#send-chat {
	width: auto;
	padding: 8px 16px;
	border: none;
	border-radius: 20px;
	background-color: #007aff;
	color: white;
	font-weight: bold;
	cursor: pointer;
	transition: opacity 0.2s;
	height: 38px;
}

#send-chat:hover {
	opacity: 0.8;
}

#send-chat:disabled {
	background-color: #4d4d4d;
	cursor: not-allowed;
}
