/* Layout */
body {
	background-color: #f3f4f6;
	height: 100vh;
	display: flex;
	flex-direction: column;
	margin: 0;
	color: #111827;
	font-family:
		"Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.site-header {
	background: #fff;
	border-bottom: 1px solid #e5e7eb;
	padding: 16px 0;
}

.site-title {
	font-size: 14px;
	font-weight: 600;
	color: #1a1a2e;
	letter-spacing: 0.5px;
}

.site-content {
	flex: 1;
	padding: 48px 0;
	overflow: auto;
	min-height: 0;
}

.site-content > .container {
	max-width: 720px;
}

.site-footer {
	padding: 16px 0;
	font-size: 12px;
	color: #6b7280;
}

.site-footer a {
	color: #6b7280;
	text-decoration: none;
}

.site-footer a:hover {
	color: #111827;
	text-decoration: underline;
}

/* Card */
.card-panel {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 36px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Info boxes */
.info-box {
	border-radius: 6px;
	padding: 12px 16px;
	font-size: 13px;
	line-height: 1.5;
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.info-box > span:first-child {
	font-size: 20px;
	line-height: 1;
	flex-shrink: 0;
}

.info-box-blue {
	background: #eff6ff;
	border: 1px solid #bfdbfe;
	color: #1e40af;
}

.info-box-yellow {
	background: #fefce8;
	border: 1px solid #fde68a;
	color: #854d0e;
}

.info-box-green {
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	color: #166534;
}

.info-box-gray {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	color: #4b5563;
}

/* Status icons */
.status-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.status-icon-success {
	background: #dcfce7;
}

.status-icon-error {
	background: #fee2e2;
}

/* Form styles */
.form-label-custom {
	font-size: 13px;
	font-weight: 500;
	color: #111827;
	margin-bottom: 6px;
}

.form-label-optional {
	color: #6b7280;
	font-weight: 400;
}

.drop-zone {
	border: 2px dashed #d1d5db;
	border-radius: 6px;
	padding: 24px;
	text-align: center;
	background: #fafafa;
	cursor: pointer;
	transition:
		border-color 0.2s,
		background-color 0.2s;
}

.drop-zone:hover,
.drop-zone.drag-over {
	border-color: #93c5fd;
	background: #eff6ff;
}

.drop-zone-icon {
	font-size: 28px;
	color: #6b7280;
	margin-bottom: 8px;
}

.drop-zone-text {
	font-size: 14px;
	color: #111827;
	font-weight: 500;
}

.drop-zone-hint {
	font-size: 12px;
	color: #6b7280;
	margin-top: 4px;
}

.key-preview {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 10px 14px;
	font-size: 12px;
	color: #6b7280;
	font-family: monospace;
	word-break: break-all;
}

.btn-submit {
	width: 100%;
	padding: 12px;
	background: #1a1a2e;
	color: #fff;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
}

.btn-submit:hover {
	background: #2d2d44;
}

.btn-submit:disabled {
	background: #9ca3af;
	cursor: not-allowed;
}

/* Code blocks */
pre {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 14px 16px;
	font-size: 13px;
	color: #111827;
	overflow-x: auto;
	margin: 0;
}

pre code {
	font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
	font-size: 13px;
	background: none;
	padding: 0;
}

/* Key help link */
.key-help-link {
	font-size: 12px;
	color: #6b7280;
	margin-top: 6px;
}

.key-help-link a {
	color: #2563eb;
	text-decoration: none;
}

.key-help-link a:hover {
	text-decoration: underline;
}

/* Instruction page */
.instruction-section {
	margin-bottom: 24px;
}

.instruction-section h2 {
	font-size: 16px;
	font-weight: 600;
	color: #1a1a2e;
	margin-bottom: 12px;
}

.instruction-section h3 {
	font-size: 14px;
	font-weight: 600;
	color: #111827;
	margin-bottom: 8px;
}

.instruction-section p,
.instruction-section ol {
	font-size: 14px;
	color: #111827;
	line-height: 1.6;
}

.instruction-section ol {
	padding-left: 20px;
}
