/* LSF Claude Bot — chat widget styling */

#lsf-bot-widget {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#lsf-bot-toggle {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: none;
	background: #1a73e8;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.2 );
	transition: transform 0.15s ease;
}

#lsf-bot-toggle:hover {
	transform: scale( 1.05 );
}

#lsf-bot-panel {
	width: 360px;
	max-width: calc( 100vw - 40px );
	height: 540px;
	max-height: calc( 100vh - 40px );
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba( 0, 0, 0, 0.2 );
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#lsf-bot-header {
	background: #1a73e8;
	color: #fff;
	padding: 14px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#lsf-bot-header strong {
	display: block;
	font-size: 15px;
}

#lsf-bot-header small {
	font-size: 12px;
	opacity: 0.85;
}

#lsf-bot-close {
	background: none;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	line-height: 1;
}

#lsf-bot-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px;
	background: #f6f8fb;
}

.lsf-bot-msg {
	max-width: 85%;
	padding: 10px 13px;
	border-radius: 14px;
	margin-bottom: 8px;
	font-size: 14px;
	line-height: 1.4;
	word-wrap: break-word;
	white-space: pre-wrap;
}

.lsf-bot-msg.bot {
	background: #fff;
	border: 1px solid #e1e5eb;
	border-bottom-left-radius: 4px;
}

.lsf-bot-msg.user {
	background: #1a73e8;
	color: #fff;
	margin-left: auto;
	border-bottom-right-radius: 4px;
}

.lsf-bot-msg a {
	color: inherit;
	text-decoration: underline;
}

/* Typing indicator */
.lsf-bot-typing {
	display: inline-flex;
	gap: 4px;
	padding: 12px 14px;
}

.lsf-bot-typing span {
	width: 6px;
	height: 6px;
	background: #888;
	border-radius: 50%;
	animation: lsf-bounce 1.2s infinite ease-in-out;
}

.lsf-bot-typing span:nth-child( 2 ) { animation-delay: 0.15s; }
.lsf-bot-typing span:nth-child( 3 ) { animation-delay: 0.3s; }

@keyframes lsf-bounce {
	0%, 60%, 100% { transform: translateY( 0 ); opacity: 0.4; }
	30%           { transform: translateY( -6px ); opacity: 1; }
}

#lsf-bot-form {
	display: flex;
	border-top: 1px solid #e1e5eb;
	padding: 10px;
	background: #fff;
}

#lsf-bot-input {
	flex: 1;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: 9px 12px;
	font-size: 14px;
	outline: none;
}

#lsf-bot-input:focus {
	border-color: #1a73e8;
}

#lsf-bot-send {
	margin-left: 8px;
	background: #1a73e8;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 16px;
	font-size: 14px;
	cursor: pointer;
}

#lsf-bot-send:hover {
	background: #1558b8;
}
