@media (max-width: 768px) {
	.main-header {
		padding: 1rem;
		flex-direction: column;
		align-items: flex-start;
	}
	.main-header > div {
		display: flex !important;
		flex-direction: column !important;
		width: 100%;
		gap: 0.5em;
	}
	.main-nav {
		display: flex !important;
		flex-direction: row !important;
		width: 100%;
		justify-content: flex-start;
		order: 1;
		margin-top: 0;
		margin-bottom: 0.5em;
	}
	.lang-login-row {
		display: flex !important;
		flex-direction: row !important;
		align-items: center;
		gap: 0.5em;
		width: 100%;
		order: 2;
		margin-bottom: 0.5em;
	}
	.main-header img {
		width: 28px !important;
		height: 18px !important;
	}
}
/* Garante espaçamento entre ícones de linguagem e botão login no header */
.lang-login-row {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 1.5em;
}
/* Prettier login button for header */
.login-btn {
	background: linear-gradient(135deg, #1976d2 0%, #64b5f6 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 6px 20px;
	font-size: 1em;
	font-weight: 500;
	cursor: pointer;
	margin-left: 10px;
	box-shadow: 0 2px 8px rgba(25,118,210,0.10);
	text-decoration: none;
	transition: background 0.2s, box-shadow 0.2s;
	display: inline-block;
}
.login-btn:hover {
	background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
	box-shadow: 0 4px 16px rgba(25,118,210,0.18);
}
/* Prettier logout button for header */
.logout-btn {
	background: linear-gradient(135deg, #e53935 0%, #ff6f61 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 6px 20px;
	font-size: 1em;
	font-weight: 500;
	cursor: pointer;
	margin-left: 10px;
	box-shadow: 0 2px 8px rgba(229,57,53,0.10);
	transition: background 0.2s, box-shadow 0.2s;
}
.logout-btn:hover {
	background: linear-gradient(135deg, #b71c1c 0%, #e53935 100%);
	box-shadow: 0 4px 16px rgba(229,57,53,0.18);
}
body {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	font-family: 'Segoe UI', 'Roboto', Arial, sans-serif;
	margin: 0;
	padding: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.main-header {
	background: rgba(255, 255, 255, 0.1);
	backdrop-filter: blur(10px);
	padding: 15px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: white;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header h1 {
	margin: 0;
	font-size: 1.8em;
	font-weight: 600;
}

.main-nav {
	display: flex;
	gap: 20px;
}

.nav-link {
	color: white;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 8px;
	transition: background 0.3s;
	font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
	background: rgba(255, 255, 255, 0.2);
}

.chat-container {
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
	width: 100%;
	max-width: 700px;
	min-height: 600px;
	display: flex;
	flex-direction: column;
	margin: 30px auto;
	overflow: hidden;
}

.chat-window {
	flex: 1;
	padding: 24px 16px 16px 16px;
	overflow-y: auto;
	background: #f4f7fa;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.chat-bubble {
	max-width: 90%;
	padding: 12px 18px;
	border-radius: 18px;
	font-size: 1rem;
	line-height: 1.5;
	word-break: break-word;
	margin-bottom: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.chat-bubble.user {
	align-self: flex-end;
	background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
	color: #222;
}

.chat-bubble.bot {
	align-self: center;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
}

.chat-form {
	display: flex;
	padding: 16px;
	background: #f4f7fa;
	border-top: 1px solid #e0e0e0;
}

#user-input {
	flex: 1;
	padding: 12px;
	border: none;
	border-radius: 12px;
	font-size: 1rem;
	margin-right: 8px;
	background: #e9ecef;
	outline: none;
	transition: background 0.2s;
	resize: vertical;
	min-height: 20px;
	max-height: 120px;
	font-family: inherit;
	line-height: 1.4;
}

#user-input:focus {
	background: #fff;
	box-shadow: 0 0 0 2px #764ba2;
}

.chat-form button {
	background: linear-gradient(135deg, #11998e 0%, #38f9d7 100%);
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 0 24px;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	transition: background 0.2s, box-shadow 0.2s;
	box-shadow: 0 2px 8px rgba(17, 153, 142, 0.15);
}

.chat-form button:hover {
	background: linear-gradient(135deg, #0c7867 0%, #11998e 100%);
}
