/* popover start */
.popover {
	display: none;
	z-index: 2147483647;
	position: absolute;
	/* left: 0px;
    top: 0px; */
	background-color: #fff;
	border-radius: 4px;
	box-shadow: 0 0 #0000, 0 0 #0000, 0px 2px 10px 0px rgb(0 0 0 / 0.25);
	transition: transform 0.2s ease;
	will-change: transform;
	overflow: hidden;
}

.popover,
.popover > * {
	user-select: none;
}

.popover ul {
	/* border: 1px red solid; */
	display: flex;
	align-items: center;
	height: 40px;
}

.popover ul li {
	/* border: 1px red solid; */
	cursor: pointer;
	width: fit-content;
	height: 40px;
	line-height: 40px;
	padding: 0 12px;
	user-select: none;
}

.popover ul li:not(.divider):hover {
	background-color: rgba(0, 0, 0, 0.12);
}

.popover ul li.divider {
	width: 1px;
	height: 20px;
	background-color: #ccc;
	padding: 0;
}

.iframe-dialog {
	/* border: 1px red solid; */
	z-index: 999;
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
}

.iframe-dialog .iframe-dialog_content {
	padding: 16px;
	border-radius: 4px;
	background-color: #fff;
	width: 80%;
	height: 80%;
	margin: auto;
}
/* popover end */

/* 文档中右下角按钮 start */
.fixed-tool-bar {
	gap: 10px;
	transform: scale(1.3);
}

.fixed-tool-bar .aiChat {
	position: relative;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f6f6f6;
	text-align: center;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.aiChat-icon {
	position: absolute;
	display: flex;
	flex-direction: column;
	font-size: 10px;
	transform: scale(0.8);
}
/* 文档中右下角按钮 end */

/* AI问答 start */
#offcanvasAIChat {
	background-color: #eeeeee;
}

#offcanvasAIChat .offcanvas-body {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ai-reply,
.user-reply {
	background-color: #fff;
	padding: 15px;
	border-radius: 20px;
	margin-bottom: 20px;
	white-space: pre-wrap;
	text-align: justify;
}

.ai-reply {
	border-top-left-radius: 0px;
}

.user-reply {
	background-color: #e7dbf8;
	border-top-right-radius: 0px;
	width: fit-content;
	margin-left: auto;
}

.chat-content {
	height: 100%;
	overflow: auto;
	position: relative;
}

.chat-input {
	padding: 10px;
}

.chat-input textarea {
	resize: none;
}

.chat-input button {
	width: 100%;
	margin-top: 10px;
}
/* AI问答 end */

/* code editor start */
#offcanvasCodeEditor {
	/* border: 1px red solid; */
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: #fff;
	width: 1000px;
	height: 800px;
}

.code-editor {
}

#output {
	padding: 10px;
}

/* code editor end */
