body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	margin: 0;
	padding: 20px;
	background-color: #f5f5f5;
}
.container {
	max-width: 1200px;
	margin: 0 auto;
	background: white;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.demo-section {
	margin: 30px 0;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafafa;
}
.demo-section h2 {
	margin-top: 0;
	color: #333;
	border-bottom: 2px solid #007acc;
	padding-bottom: 10px;
}
.demo-item {
	margin: 20px 0;
	padding: 15px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: white;
	position: relative;
}
.demo-item h3 {
	margin-top: 0;
	color: #555;
	font-size: 16px;
}
.demo-controls {
	margin-bottom: 15px;
}
.code-toggle {
	background: #007acc;
	color: white;
	border: none;
	padding: 8px 15px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	margin-right: 10px;
}
.code-toggle:hover {
	background: #005a9e;
}
.copy-button {
	background: #28a745;
	color: white;
	border: none;
	padding: 8px 15px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
}
.copy-button:hover {
	background: #218838;
}
.copy-button.copied {
	background: #6c757d;
}
.code-block {
	display: none;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	padding: 15px;
	margin: 15px 0;
	font-family: 'Courier New', monospace;
	font-size: 14px;
	overflow-x: auto;
	white-space: pre-wrap;
	color: #333;
}
.code-block.show {
	display: block;
}
.loading {
	color: #666;
	font-style: italic;
}
.error {
	color: #d00;
	background: #ffe6e6;
	padding: 10px;
	border-radius: 4px;
	margin: 10px 0;
}
.log {
	background: #f0f8ff;
	border: 1px solid #cce7ff;
	padding: 10px;
	border-radius: 4px;
	margin: 10px 0;
	font-family: monospace;
	font-size: 14px;
	color: #333;
	white-space: pre-wrap;
}
.log.success {
	background: #f0fff0;
	border-color: #90ee90;
	color: #006400;
}
.log.error {
	background: #ffe6e6;
	border-color: #ffcccc;
	color: #d00;
}
.theme-demo {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
	max-width: 100%;
}
.theme-demo > div {
	flex: 1;
	min-width: min(300px, 100%);
}
.grid-demo {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
}

.source-button {
	display: inline-flex;
	vertical-align: center;
	text-decoration: none;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	border-radius: 0.5rem;
	margin: 0.25rem;
}

.source-button:focus {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

.source-button:hover,
.source-button:focus {
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.source-button img {
	height: 28px;
	border-radius: 6px;
	transition: opacity 0.3s ease;
}

.source-button:hover img {
	opacity: 0.8;
}
