.container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
	font-family: Arial, sans-serif;
}

input[type='file'] {
	margin: 20px 0;
}

button {
	padding: 10px 20px;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	margin: 10px 0;
}

button:hover {
	background: #0056b3;
}

#preview {
	margin: 20px 0;
}

#result {
	margin-top: 20px;
	padding: 10px;
	background: #f8f9fa;
	border-radius: 4px;
}

.error {
	color: red;
}

/* new */

.container {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px;
}
#preview {
	max-width: 100%;
	margin: 20px 0;
}

.result-container {
	margin: 20px 0;
}

#result {
	width: 100%;
	padding: 12px;
	font-family: 'Courier New', monospace;
	border: 1px solid #ccc;
	border-radius: 4px;
	resize: vertical;
}

.toolbar {
	display: flex;
	justify-content: flex-start;
}

#copyButton {
	padding: 4px 12px;
	background: #f0f0f0;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
}

#copyButton:hover {
	background: #e0e0e0;
}

.status {
	color: #666;
	font-size: 0.9em;
	opacity: 0;
	transition: opacity 0.3s;
}

.status.visible {
	opacity: 1;
}

/* 添加加载动画 */
#result.loading::after {
	content: '';
	display: inline-block;
	width: 1em;
	height: 1em;
	border: 2px solid #ddd;
	border-radius: 50%;
	border-top-color: #333;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}
