/* Minimalistic dark mode style */
body {
	margin: 0;
	padding: 0;
	background-color: #121212;
	color: #e0e0e0;
	font-family: sans-serif;
}

header {
	display: flex;
	flex-direction: column;
	padding: 1rem;
	background-color: #1e1e1e;
}

#navigation {
	margin: 0.5rem 0;
}

#navigation a {
	margin-right: 1rem;
	color: #bb86fc;
	text-decoration: none;
}

button {
	background: #bb86fc;
	border: none;
	color: #121212;
	padding: 0.5rem 1rem;
	cursor: pointer;
}

button.hidden {
	display: none;
}

a {
	color: #bb86fc;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

#content {
	max-width: 800px;
	margin: 2rem auto;
	padding: 1rem;
}

article,
section {
	margin-bottom: 2rem;
}

/* Modal styling */
.modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal.hidden {
	display: none;
}

.modal-content {
	background: #1e1e1e;
	padding: 2rem;
	border-radius: 5px;
	max-width: 600px;
	width: 90%;
	position: relative;
}

.modal-close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	cursor: pointer;
	font-size: 1.5rem;
}

/* Embedded tool styling */
.embedded-tool {
	background: #1e1e1e;
	padding: 1rem;
	border-radius: 5px;
	margin-top: 1rem;
}

.embedded-tool[data-tool-type] {
	/* Special styling for tools with inline styles */
	border: 2px solid #333;
	position: relative;
}

.embedded-tool[data-tool-type]::before {
	content: 'Inline Styled Tool';
	position: absolute;
	top: -10px;
	right: 10px;
	background: #333;
	color: #bb86fc;
	padding: 2px 8px;
	font-size: 0.8rem;
	border-radius: 3px;
}

.embedded-tool h1 {
	margin-top: 0;
	color: #bb86fc;
}

.embedded-tool textarea {
	background: #2d2d2d;
	color: #e0e0e0;
	border: 1px solid #555;
}

.embedded-tool pre {
	background: #2d2d2d;
	color: #e0e0e0;
	border: 1px solid #555;
}

.embedded-tool button {
	background: #bb86fc;
	color: #121212;
}

.embedded-tool input[type='file'] {
	color: #e0e0e0;
}

.embedded-tool label {
	color: #e0e0e0;
}

/* Page wrapper for better organization */
.page-wrapper {
	width: 100%;
}
