/* AI Learning Tools -- frontend styles */

.ai-lt-container {
	margin: 24px 0;
	padding: 16px 18px;
	border: 1px solid #e2e4e7;
	border-radius: 8px;
	background: #fafafa;
}

.ai-lt-heading {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
}

.ai-lt-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ai-lt-btn {
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	color: #1e1e1e;
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.ai-lt-btn:hover:not(:disabled) {
	background: #f0f6fc;
	border-color: #2271b1;
}

.ai-lt-btn:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 2px;
}

.ai-lt-btn-disabled,
.ai-lt-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.ai-lt-status {
	min-height: 20px;
	margin-top: 10px;
	font-size: 13px;
	color: #555;
}

.ai-lt-status-loading {
	color: #2271b1;
}

.ai-lt-status-loading::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 6px;
	border: 2px solid #2271b1;
	border-top-color: transparent;
	border-radius: 50%;
	vertical-align: middle;
	animation: ai-lt-spin 0.8s linear infinite;
}

.ai-lt-status-error {
	color: #cc1818;
	font-weight: 500;
}

.ai-lt-output {
	margin-top: 12px;
	font-size: 15px;
	line-height: 1.6;
}

.ai-lt-output:empty {
	margin-top: 0;
}

.ai-lt-output ul,
.ai-lt-output ol {
	margin: 0 0 1em 1.4em;
	padding: 0;
}

.ai-lt-output dl {
	margin: 0;
}

.ai-lt-output dt {
	font-weight: 600;
	margin-top: 0.8em;
}

.ai-lt-output dd {
	margin: 0.2em 0 0 0;
}

.ai-lt-output p {
	margin: 0 0 1em;
}

.ai-lt-output p:last-child {
	margin-bottom: 0;
}

@keyframes ai-lt-spin {
	to {
		transform: rotate( 360deg );
	}
}
