/* Footer links visibility */
.footer-links {
	display: none;
}

@media (min-width: 768px) {
	.footer-links {
		display: inline-block;
	}
}
/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.chat-messages .message-bubble {
	border-radius: 0.75rem;
	max-width: 80%;
	padding: 0.6rem 0.85rem;
}

.chat-messages .message-user .message-bubble {
	background: #dbeafe;
}

.chat-messages .message-assistant .message-bubble {
	background: #f3f4f6;
}

.chat-messages .message-assistant .author {
	color: #1d4ed8;
}

.chat-sidebar {
	border: none;
	padding: 0;
}

.chat-sidebar-toggle {
	list-style: none;
	cursor: pointer;
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 0.75rem 1rem;
	font-weight: 600;
	color: #111827;
	background: #ffffff;
}

.chat-sidebar-toggle::-webkit-details-marker {
	display: none;
}

@media (min-width: 1024px) {
	.chat-sidebar-toggle {
		display: none;
	}

	.chat-sidebar-content {
		display: block;
	}
}

@media (max-width: 1023px) {
	.chat-container {
		padding-left: 0;
		padding-right: 0;
		padding-top: 0.75rem;
		padding-bottom: 0.75rem;
	}

	.chat-layout {
		display: flex !important;
		flex-direction: column;
		gap: 1.5rem;
	}

	.chat-main {
		order: 1;
	}

	.chat-sidebar {
		order: 2;
		border: 1px solid #e5e7eb;
		border-radius: 1rem;
		padding: 0.75rem;
		background: #ffffff;
	}

	.chat-sidebar-content {
		display: none;
		margin-top: 1rem;
	}

	.chat-sidebar[open] .chat-sidebar-content {
		display: block;
	}

	.chat-header {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 0.75rem;
		padding-left: 0.75rem;
		padding-right: 0.75rem;
	}

	.chat-logo {
		height: 3rem;
	}

	.chat-title {
		display: none;
	}

	.chat-hint {
		display: none;
	}

	.chat-card {
		height: calc(100vh - 7.5rem);
		min-height: 24rem;
	}

	.chat-sidebar {
		margin-left: 1rem;
		margin-right: 1rem;
	}

	.chat-input {
		position: relative;
		padding-top: 3.25rem;
	}

	.chat-menu-fab {
		position: absolute;
		top: 0.75rem;
		right: 1rem;
		z-index: 10;
	}

	.chat-menu-button {
		border: 1px solid #e5e7eb;
		border-radius: 9999px;
		padding: 0.4rem 0.9rem;
		font-size: 0.85rem;
		font-weight: 600;
		background: #ffffff;
		box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
	}

	.home-header {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: 1rem;
	}

	.home-nav a:not(.home-cta) {
		display: none;
	}
}

@media (max-width: 1023px) {
	.chat-messages .message-bubble {
		max-width: 95%;
	}
}

@media (max-width: 420px) {
	.chat-input form {
		flex-wrap: wrap;
		gap: 0.5rem;
	}

	.chat-input #message-input {
		border-radius: 0.75rem;
		width: 100%;
	}

	.chat-input button[type="submit"] {
		width: 100%;
		border-radius: 0.75rem;
		padding: 0.75rem 1rem;
	}
}
