/* 下拉框样式 */
.dropdown {
	position: relative;
	width: 130px;
	display: flex;
	align-items: center;
}

.dropdown-button {
	width: 100%;
	padding: 5px 5px 5px 5px;
	border: 1px solid #ccc;
	background-color: #fff;
	border-radius: 4px;
	cursor: pointer;
	display: flex;
	align-items: center;
	flex-direction: row;
	text-align: center;
}

.dropdown-list {
	position: absolute;
	top: 100%;
	right: 0;
	width: 130px;
	border: 1px solid #ccc;
	border-radius: 4px;
	background-color: #fff;
	display: none;
	z-index: 10;
	max-height:160px;
	overflow-y: auto;
}

.dropdown-item {
	padding: 5px;
	font-size: 16px;
	cursor: pointer;
	display: flex;
	align-items: center;
}

.dropdown-item:hover {
	background-color: #f0f0f0;
}

.line {
	flex-grow: 1;
	height: 0;
	border-bottom: solid black;
	margin-right: 10px;
}

/* 线宽选择器 */
.signature-container {
	position: absolute;
	top: 150px;
	width: 100%;
	height: 400px;
	display: flex;
	justify-content: center;
	z-index: 10000;
}

.signature-box {
	position: relative;
	max-width: 500px;
	height: 400px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 5px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	overflow: hidden;
	box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.1);
	/* 均匀分布的阴影 */
}

.signature-header {
	font-size: 16px;
	font-weight: bold;
	padding: 10px 20px 10px 20px;
	background: #f9f9f9;
	border-bottom: 1px solid #ddd;
	display: flex;
	justify-content: space-between;
}

.signature-header button {
	background-color: red;
	padding: 3px 8px 3px 8px;
	color: #fff;
	border: none;
	border-radius: 3px;
	cursor: pointer;
	font-weight: 800;
}

.tabs {
	display: flex;
	justify-content: center;
	background: #f4f4f4;
	border-bottom: 1px solid #ddd;
}

.tabs button {
	flex: 1;
	padding: 10px;
	border: none;
	background: transparent;
	font-size: 14px;
	cursor: pointer;
	color: #555;
}

.tabs button.active {
	font-weight: bold;
	border-bottom: 2px solid #007BFF;
	color: #007BFF;
}

.tab-content {
	display: none;
	padding: 10px 20px 20px 20px;
	text-align: left;
	justify-content: left;
}

.tab-content.active {
	display: block;
}

.signature-canvas {
	position: relative;
	border: 1px dashed #ccc;
	width: 460px;
	height: 180px;
	cursor: crosshair;
	background-color: #f9f9f9;
	/* margin-bottom: 5px; */
	margin-top: 5px;
}

.canvas-placeholder {
	position: absolute;
	top: 60%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #bbb;
	font-family: Georgia, 'Times New Roman', Times, serif;
	font-size: 45px;
	pointer-events: none;
	z-index: 10000;
}

.type-style-div {
	margin-top: 5px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.color-picker {
	display: flex;
	justify-content: left;
	/* padding: 5px 5px 5px 0px; */
	height: 20px;
}

.color-option {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	border: 2px solid transparent;
	cursor: pointer;
}

.color-padding {
	/* padding: 2px; */
	margin: 0 3px;
	margin-top: 0px;
	border: 1px solid #ccc;
	border-radius: 50%;
	height: 25px;
	width: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.color-padding.active {
	border-color: #007BFF;
}

.color-option.active {
	border-color: #007BFF;
	/* padding: 5px; */
}

.buttons {
	display: flex;
	justify-content: space-between;
	padding: 10px 20px;
	border-top: 1px solid #ddd;
	margin-top: -8px;
}

.buttons button {
	padding: 8px 20px;
	font-size: 14px;
	border: none;
	border-radius: 3px;
	cursor: pointer;
}

.buttons .clear-button {
	background: #f4f4f4;
	color: #555;
}

.buttons .create-button {
	background: #007BFF;
	color: white;
}

.text-signature {
	border: 1px dashed #ccc;
	width: 460px;
	height: 180px;
	/* margin-bottom: -5px; */
	font-size: 45px;
	font-family: 'Georgia';
	text-align: center;
	color: #000;
	background-color: #f9f9f9;
	/* margin-top: 5px; */
	/* margin-bottom: 5px; */
}

.text-signature:focus {
	border-color: #007BFF;
	background-color: #f9f9f9;
	outline: none;
}


.font-option {
	padding: 10px;
}

.upload-section {
	border: 1px dashed #ccc;
	width: 460px;
	height: 180px;
	color: #bbb;
	cursor: pointer;
	background-color: #f9f9f9;
	font-size: 30px;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	margin-top: 10px;
	margin-bottom: 5px;
}

.upload-section input {
	opacity: 0;
	position: absolute;
	width: 100%;
	height: 100%;
	cursor: pointer;
}

.upload-section span {
	text-align: center;
	border: none;
	pointer-events: none;
}

.upload-preview {
	position: absolute;
	max-width: 460px;
	max-height: 180px;
	border: 1px solid #007BFF;
	pointer-events: none;
}

.picker-title {
	text-align: left;
	padding: 5px;
	/* margin-top: 5px; */
	cursor: pointer;
	background-color: #fff;
	border: 1px solid #000;
	border-radius: 5px;
	margin-bottom: 5px;
	margin-top: 5px;
	max-width: 130px;
	max-height: 300px;
	overflow-y: auto;
	display: flex;
	align-items: center;
}

#fontSelector {
	max-height: 150px;
	/* 最大高度 */
	overflow-y: auto;
	/* 显示垂直滚动条 */
	scrollbar-width: thin;
	/* 控制滚动条宽度（Firefox） */
	scrollbar-color: #888 #f1f1f1;
	/* 控制滚动条颜色（Firefox） */
}

#ff-import-signature {
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

#ff-import-signature:hover .fa-signature {
	height: 20px;
	width: 20px;
	font-weight: 800;
	content: url('./m-signature-blue.svg');
}

.fa-signature {
	/* margin-top: auto; */
	height: 20px;
	width: 20px;
	font-weight: 800;
	content: url('./m-signature.svg');
}

.fa-signature:hover {
	/* margin-top: auto; */
	height: 20px;
	width: 20px;
	font-weight: 800;
	content: url('./m-signature-blue.svg');
}

#ff-language-btn:hover .fa-language {
	height: 20px;
	width: 20px;
	font-weight: 800;
	content: url('./bilingual-blue.svg');
}

.fa-language {
	/* margin-top: auto; */
	height: 20px;
	width: 20px;
	font-weight: 800;
	margin-top: 2px;
	content: url('./bilingual.svg');
}

.fa-language:hover {
	/* margin-top: auto; */
	height: 20px;
	width: 20px;
	font-weight: 800;
	content: url('./bilingual-blue.svg');
}

#ff-language-btn:hover .fa-etsy {
	height: 20px;
	width: 20px;
	font-weight: 800;
	content: url('./bilingual-blue.svg');
}


.fa-etsy{
	height: 20px;
	width: 20px;
	font-weight: 800;
	margin-top: 2px;
	content: url('./bilingual.svg');
}

.fa-etsy:hover{
	height: 20px;
	width: 20px;
	font-weight: 800;
	content: url('./bilingual-blue.svg');
}

.sign-processing-tip{
	border-radius: 10px;
	padding: 5px;
	margin-right: 10px;
	/* border: 1px solid #ddd; */
}

@keyframes rotate-animation {
    from {
        transform: rotate(0deg); /* 从0度开始 */
    }
    to {
        transform: rotate(360deg); /* 转到360度 */
    }
}

.rotate-box-animation {
    width: 15px;
    height: 15px;
	font-size: 15px;
	margin: auto;
    /* background-color: lightgreen; */
	padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
	transform-origin: center;
	/* background-color: #007BFF; */
	margin-right: 10px;
    animation: rotate-animation 2s linear infinite; /* 动画2秒完成，线性速度，无限循环 */
}