/* src/web/static/style.css */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family:
		-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	line-height: 1.6;
	color: #333;
	background: #f5f5f5;
}

.navbar {
	background: #2563eb;
	color: white;
	padding: 1rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.nav-brand a {
	color: white;
	text-decoration: none;
	font-weight: bold;
	font-size: 1.2rem;
}

.nav-links a {
	color: white;
	text-decoration: none;
	margin-left: 1.5rem;
	opacity: 0.9;
}

.nav-links a:hover {
	opacity: 1;
}

.container {
	max-width: 1200px;
	margin: 2rem auto;
	padding: 0 1rem;
	min-height: calc(100vh - 338px);
}

.form {
	background: white;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	max-width: 600px;
	margin: 0 auto;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.form-group input,
.form-group select {
	width: 100%;
	padding: 0.75rem;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

.form-group small {
	display: block;
	margin-top: 0.25rem;
	color: #666;
	font-size: 0.875rem;
}

.form-actions {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
}

.btn {
	padding: 0.75rem 1.5rem;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 1rem;
	text-decoration: none;
	display: inline-block;
}

.btn.primary {
	background: #2563eb;
	color: white;
}

.btn.secondary {
	background: #e5e7eb;
	color: #333;
}

.btn.small {
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
}

.code-block {
	background: #1e1e1e;
	color: #d4d4d4;
	padding: 1rem;
	border-radius: 4px;
	margin: 1rem 0;
	overflow-x: auto;
}

.code-block pre {
	margin: 0;
	font-family: "Monaco", "Consolas", monospace;
	font-size: 0.875rem;
}

.result {
	margin-top: 2rem;
	background: white;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.result.hidden {
	display: none;
}

.preview iframe {
	border-radius: 4px;
}

.footer {
	text-align: center;
	padding: 2rem;
	color: #666;
	font-size: 0.875rem;
}
