:root {
	--primary-color: #006ac9;
	--background-color: #ffffff;
	--text-color: #37352f;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
		Ubuntu, Cantarell, sans-serif;
	margin: 0;
	padding: 0;
	background-color: var(--background-color);
	color: var(--text-color);
}

.container {
	max-width: 900px;
	margin: 40px auto;
	padding: 0 20px;
}

h1 {
	text-align: center;
	margin-bottom: 40px;
}

.button-group {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin-bottom: 30px;
}

button {
	padding: 10px 20px;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	background-color: white;
	cursor: pointer;
	transition: all 0.2s ease;
}

button.active {
	background-color: var(--primary-color);
	color: white;
	border-color: var(--primary-color);
}

.editor-container {
	background-color: white;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	padding: 20px;
	position: relative;
}

textarea {
	width: calc(100% - 2rem);
	min-height: 200px;
	padding: 15px;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	margin-bottom: 16px;
	font-size: 16px;
	resize: vertical;
	line-height: 1.5;
}

.prompt-section {
	border-bottom: 1px solid #e0e0e0;
	margin-bottom: 12px;
	padding-bottom: 12px;
}

.prompt-section:last-child {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
}

.prompt-title {
	font-size: 0.9rem;
	font-weight: 600;
	color: #37352f;
	margin: 0 0 8px 0;
	padding-left: 8px;
	border-left: 2px solid var(--primary-color);
}

.prompt-container {
	background-color: #f7f7f7;
	padding: 16px;
	border-radius: 5px;
	margin-bottom: 16px;
	font-size: 0.95rem;
	line-height: 1.4;
}

.prompt-container ul,
.prompt-container ol {
	margin: 8px 0;
	padding-left: 24px;
}

.prompt-container li {
	margin-bottom: 4px;
}

.prompt-container p {
	margin: 0 0 8px 0;
}

.prompt-container p:last-child {
	margin-bottom: 0;
}

.actions {
	display: flex;
	gap: 1rem;
	justify-content: flex-end;
	margin-top: 12px;
	margin-bottom: 24px;
}

.copy-button {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.2s ease;
}

.copy-icon {
	font-size: 18px;
}

.page-header {
	text-align: center;
	margin-bottom: 2rem;
}

.subtitle {
	color: #666;
	font-size: 1.1rem;
	margin-top: -1rem;
}

h2 {
	font-size: 1.1rem;
	margin-bottom: 12px;
}

/* Adjust input spacing */
textarea {
	margin-bottom: 16px;
	line-height: 1.5;
}

.input-section,
.output-section {
	margin-bottom: 2rem;
}

.clear-button {
	background-color: #f5f5f5;
	color: #666;
	border: 1px solid #e0e0e0;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
	transition: all 0.2s ease;
}

.clear-button:hover {
	background-color: #eee;
}

.page-footer {
	text-align: center;
	margin-top: 3rem;
	padding-top: 1rem;
	border-top: 1px solid #eee;
	color: #666;
	font-size: 0.9rem;
}

/* Control spacing of content divs */
#promptIntro,
#promptJobPosting,
#promptRequirements {
	margin: 0;
	padding: 0;
}

/* Reset any default paragraph margins */
.prompt-section p {
	margin: 0 0 8px 0;
}

.prompt-section p:last-child {
	margin-bottom: 0;
}

.subtle-copy {
	position: fixed;
	bottom: 8px;
	left: 8px;
	padding: 4px 8px;
	font-size: 0.7rem;
	color: #cccccc;
	background: none;
	border: none;
	cursor: pointer;
	opacity: 0.5;
	transition: opacity 0.2s ease;
}

.subtle-copy:hover {
	opacity: 1;
}

.tooltip {
	position: fixed;
	background: rgba(0, 0, 0, 0.8);
	color: white;
	padding: 8px 12px;
	border-radius: 4px;
	font-size: 0.9rem;
	z-index: 1000;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease;
	max-width: 12.5rem;
}

.tooltip.show {
	opacity: 1;
}

.output-section h2 {
	display: flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
}

.output-section h2::after {
	content: "▼";
	margin-left: 8px;
	font-size: 0.8em;
	transition: transform 0.3s ease;
}

.output-section.collapsed h2::after {
	transform: rotate(-90deg);
}

.output-section .prompt-container {
	transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
	max-height: 2000px;
	opacity: 1;
	overflow: hidden;
}

.output-section.collapsed .prompt-container {
	max-height: 0;
	opacity: 0;
	margin: 0;
	padding: 0;
}

.cc-banner {
	position: fixed;
	inset: auto 1rem 1rem 1rem;
	z-index: 9999;
	max-width: 640px;
	margin-left: auto;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
	padding: 1rem;
	font: 14px/1.4 system-ui, -apple-system, Segoe UI, Roboto, Arial;
}
.cc-title {
	margin: 0 0 0.25rem;
	font-size: 1rem;
}
.cc-desc {
	margin: 0 0 0.75rem;
	color: #374151;
}
.cc-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}
.cc-btn {
	cursor: pointer;
	border-radius: 8px;
	padding: 0.5rem 0.8rem;
	border: 1px solid transparent;
}
.cc-primary {
	background: #111827;
	color: #fff;
}
.cc-secondary {
	background: #f3f4f6;
	border-color: #e5e7eb;
}
.cc-link {
	background: transparent;
	color: #2563eb;
	text-decoration: underline;
	padding: 0 0.2rem;
}
.cc-panel {
	margin-top: 0.5rem;
	padding-top: 0.5rem;
	border-top: 1px dashed #e5e7eb;
}
.cc-switch {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0.35rem 0;
}
.cc-switch input {
	transform: scale(1.1);
}
.cc-reopen {
	position: fixed;
	right: 1rem;
	bottom: 1rem;
	background: #ffffff;
	color: #fff;
	border: none;
	border-radius: 50%;
	width: 42px;
	height: 42px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	z-index: 9998;
	cursor: pointer;
	padding: 0;
}
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
@media (max-width: 480px) {
	.cc-banner {
		left: 0.5rem;
		right: 0.5rem;
	}
}
