
	.chat-container {
		background: white;
		border-radius: 10px;
		border: 1px solid #ddd;
		box-shadow: 0 0px 20px rgba(0, 0, 0, 0.1);
		max-width: 100%;
		width: 100%;
		height: calc(80vh - 20px);
		display: flex;
		flex-direction: column;
		overflow: hidden;
		margin-bottom: 50px;
	}

	.chat-header {
		background: #fe9c00;
		color: white;
		padding: 12px 16px;
		text-align: center;
		font-size: 18px;
		font-weight: 600;
		display: flex;
		justify-content: space-between;
		align-items: center;
		flex-shrink: 0;
	}

	.chat-header-title { flex: 1; font-weight: 700; font-size: 1.1em; }

	.new-chat-btn {
		background: rgba(255, 255, 255, 0.2);
		border: 1px solid rgba(255, 255, 255, 0.4);
		color: white;
		padding: 8px 16px;
		border-radius: 20px;
		font-size: 14px;
		cursor: pointer;
		transition: background 0.3s;
	}

	.new-chat-btn:hover {
		background: rgba(255, 255, 255, 0.3);
	}

	.chat-messages {
		flex: 1;
		padding: 12px;
		overflow-y: auto;
		background: #f8f9fa;
	}

	.message {
		margin-bottom: 12px;
		animation: fadeIn 0.3s ease-in;
		display: flex;
		flex-direction: column;
	}

	@keyframes fadeIn {
		from {
			opacity: 0;
			transform: translateY(10px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}

	.message-user {
		align-items: flex-end;
	}

	.message-bot {
		align-items: flex-start;
	}

	.message-bubble {
		display: block;
		max-width: 95%;
		border-radius: 12px;
		word-wrap: break-word;
		line-height: 1.5;
	}

	.message-user .message-bubble {
		background: #fe9c00;
		color: white;
		text-align: left;
		padding: 12px 16px;
		max-width: 85%;
	}

	.message-bot .message-bubble {
		background: white;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
		text-align: left;
		padding: 0;
		max-width: 95%;
	}

	.message-bot .markdown-body {
		background: transparent;
		padding: 12px 16px;
		font-size: 0.95em;
	}

	.message-bot .markdown-body a {
		color: #667eea;
		text-decoration: none;
		border-bottom: 1px solid rgba(102, 126, 234, 0.3);
		transition: all 0.2s ease;
	}

	.message-bot .markdown-body a:hover {
		color: #764ba2;
		border-bottom-color: #764ba2;
	}

	.message-bot .markdown-body p {
		margin-bottom: 8px;
	}

	.message-bot .markdown-body p:last-child {
		margin-bottom: 0;
	}

	.message-bot .markdown-body h1,
	.message-bot .markdown-body h2,
	.message-bot .markdown-body h3 {
		margin-top: 12px;
		margin-bottom: 8px;
	}

	.message-bot .markdown-body h1:first-child,
	.message-bot .markdown-body h2:first-child,
	.message-bot .markdown-body h3:first-child {
		margin-top: 0;
	}

	.tool-indicator {
		display: inline-block;
		padding: 8px 12px;
		background: #e3f2fd;
		color: #1976d2;
		border-radius: 8px;
		font-size: 13px;
		margin-bottom: 8px;
		animation: pulse 1.5s ease-in-out infinite;
	}

	@keyframes pulse {
		0%, 100% {
			opacity: 1;
		}
		50% {
			opacity: 0.6;
		}
	}

	.typing-indicator {
		display: none;
		padding: 12px 16px;
		background: white;
		border-radius: 12px;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
		max-width: 70px;
	}

	.typing-indicator.active {
		display: inline-block;
	}

	.typing-indicator span {
		display: inline-block;
		width: 8px;
		height: 8px;
		border-radius: 50%;
		background: #999;
		margin: 0 2px;
		animation: typing 1.4s infinite;
	}

	.typing-indicator span:nth-child(2) {
		animation-delay: 0.2s;
	}

	.typing-indicator span:nth-child(3) {
		animation-delay: 0.4s;
	}

	@keyframes typing {
		0%, 60%, 100% {
			transform: translateY(0);
		}
		30% {
			transform: translateY(-10px);
		}
	}

	.chat-input-container {
		padding: 12px;
		background: white;
		border-top: 1px solid #e0e0e0;
		display: flex;
		gap: 8px;
		flex-shrink: 0;
	}

	.chat-input {
		flex: 1;
		padding: 10px 16px;
		border: 2px solid #e0e0e0;
		border-radius: 8px;
		font-size: 1em;
		outline: none;
		transition: border-color 0.3s;
	}

	.chat-input:focus {
		border-color: #fe9c00;
	}

	.chat-button {
		padding: 10px 20px;
		background: #fe9c00;
		color: white;
		border: none;
		border-radius: 8px;
		font-size: 1em;
		font-weight: 600;
		cursor: pointer;
		transition: transform 0.2s, box-shadow 0.2s;
	}

	.chat-button:hover:not(:disabled) {
		transform: translateY(-2px);
		box-shadow: 0 4px 12px rgba(102, 210, 234, 0.4);
	}

	.chat-button:disabled {
		opacity: 0.6;
		cursor: not-allowed;
	}

	.error-message {
		padding: 10px 14px;
		background: #fff3cd;
		border: 1px solid #ffc107;
		border-radius: 8px;
		color: #856404;
		margin: 8px 0;
		font-size: 14px;
	}

	.info-message {
		padding: 8px 12px;
		background: #e3f2fd;
		border: 1px solid #2196f3;
		border-radius: 8px;
		color: #1565c0;
		margin: 8px 0;
		font-size: 13px;
	}

	.chat-messages::-webkit-scrollbar {
		width: 8px;
	}

	.chat-messages::-webkit-scrollbar-track {
		background: #f1f1f1;
	}

	.chat-messages::-webkit-scrollbar-thumb {
		background: #888;
		border-radius: 4px;
	}

	.chat-messages::-webkit-scrollbar-thumb:hover {
		background: #555;
	}

	.chat-starters {
		padding: 8px 12px;
		background: white;
		border-top: 1px solid #e0e0e0;
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		flex-shrink: 0;
		max-height: 500px;
		overflow: hidden;
		transition: max-height 0.5s ease-in-out, opacity 0.3s ease;
	}

	.chat-starters.hidden {
		max-height: 0;
		padding: 0 12px;
		opacity: 0;
		border-top: none;
	}

	.chat-starters.slide-in {
		animation: slideDown 0.5s ease-out;
	}

	@keyframes slideDown {
		from {
			max-height: 0;
			opacity: 0;
			padding: 0 12px;
		}
		to {
			max-height: 500px;
			opacity: 1;
			padding: 8px 12px;
		}
	}

	.starter-button {
		flex: 1 1 calc(50% - 8px);
		min-width: 150px;
		padding: 10px 14px;
		background: #f8f9fa;
		border: 1px solid #e0e0e0;
		border-radius: 8px;
		font-size: 0.95em;
		color: #333;
		cursor: pointer;
		transition: all 0.2s ease;
		text-align: left;
		line-height: 1.4;
	}

	.starter-button:hover {
		background: #f1f9fb;
		border-color: #2196f3;
		color: #2196f3;
		transform: translateY(-1px);
		box-shadow: 0 2px 4px rgba(102, 126, 234, 0.2);
	}

	@media (max-width: 768px) {
		body {
			padding: 0;
		}

		.chat-container {
			height: 80vh;
			border-radius: 0;
			max-width: 100%;
		}

		.chat-header {
			padding: 10px 12px;
			font-size: 16px;
		}

		.chat-header-title {
			text-align: left;
		}

		.new-chat-btn {
			padding: 6px 12px;
			font-size: 13px;
			white-space: nowrap;
		}

		.chat-messages {
			padding: 10px;
		}

		.message {
			margin-bottom: 10px;
		}

		.message-user .message-bubble {
			max-width: 80%;
			padding: 10px 14px;
			font-size: 0.95em;
		}

		.message-bot .message-bubble {
			max-width: 90%;
		}

		.message-bot .markdown-body {
			padding: 10px 12px;
			font-size: 0.95em;
		}

		.chat-starters {
			padding: 6px 8px;
			gap: 6px;
			max-height: 30vh;
			overflow-y: auto;
		}

		.starter-button {
			flex: 1 1 100%;
			min-width: auto;
			padding: 10px 12px;
			font-size: 13px;
		}

		.chat-input-container {
			padding: 10px;
			gap: 6px;
		}

		.chat-input {
			padding: 9px 14px;
			font-size: 14px;
		}

		.chat-button {
			padding: 9px 16px;
			font-size: 14px;
		}

		.tool-indicator {
			padding: 6px 10px;
			font-size: 12px;
		}

		.typing-indicator {
			padding: 10px 14px;
		}

		.error-message,
		.info-message {
			font-size: 13px;
			padding: 8px 10px;
		}
	}
