
/* General */
body {
	margin: 0;
	padding: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.6;
}

.error {
	border: 1px solid #dc3545;
	border-radius: 4px;
	background-color: rgba(220, 53, 69, 0.1);
	padding: 1rem;
	font-size: 1.1em;
	color: #dc3545;
	margin: 1rem;
}

/* Type */
.invalid {
	background-color: #dc3545;
	color: white !important;
}

.incomplete {
	color: #6c757d !important;
}

#editor {
	display: none;
	width: 100%;
	height: calc(100vh - 50px);
	margin: 0;
	padding: 0;
}

#toolbar {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	padding: 0.5rem 1rem;
	height: auto;
	background: #f8f9fa;
	border-bottom: 1px solid #dee2e6;
	display: flex;
	align-items: center;
	z-index: 1000;
}

#toolbar button {
	padding: 0.375rem 0.75rem;
	margin-right: 0.5rem;
	border: 1px solid #ced4da;
	border-radius: 4px;
	background: white;
	cursor: pointer;
	transition: all 0.2s;
}

#toolbar button:hover {
	background: #e9ecef;
}

#toolbar select {
	padding: 0.375rem 0.75rem;
	margin-right: 0.5rem;
	border: 1px solid #ced4da;
	border-radius: 4px;
	background: white;
}

#toolbar > #info {
	margin-left: auto;
	color: #495057;
}

#toolbar > #info > #paused {
	font-weight: bold;
	color: #dc3545;
}

#content {
	margin-top: 50px;
	padding: 1rem;
}

#content.paused > .CodeMirror {
	opacity: 0.5;
}

/* Index */
.prev-list {
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.prev-list > li {
	flex: 1 1 300px;
	list-style: none;
	padding: 1rem;
	border: 1px solid #dee2e6;
	border-radius: 4px;
	background: white;
	transition: all 0.2s;
}

.prev-list > li:hover {
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.prev-list > li > a,
.prev-list > li > a:visited {
	text-decoration: none;
	color: #007bff;
}

.prev-list > li > a:hover {
	color: #0056b3;
}

/* Form styles */
form input[type="text"] {
	width: 100%;
	max-width: 400px;
	padding: 0.375rem 0.75rem;
	border: 1px solid #ced4da;
	border-radius: 4px;
	margin-bottom: 1rem;
}

form input[type="submit"] {
	padding: 0.375rem 0.75rem;
	background: #007bff;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s;
}

form input[type="submit"]:hover {
	background: #0056b3;
}

/* Language sections */
.language-sections h3 {
	color: #212529;
	margin: 1.5rem 0 0.5rem;
}

.language-sections ul {
	padding-left: 0;
	list-style: none;
}

.language-sections ul li {
	margin-bottom: 0.5rem;
}

.language-sections ul li a {
	color: #007bff;
	text-decoration: none;
}

.language-sections ul li a:hover {
	color: #0056b3;
	text-decoration: underline;
}

/* Completion page styles */
.completion-stats {
	max-width: 800px;
	margin: 2rem auto;
	padding: 2rem;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.completion-stats h2 {
	margin-bottom: 2rem;
	color: #2c3e50;
	text-align: center;
}

.stats-container {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 2rem;
}

.stat-item {
	text-align: center;
	padding: 1rem;
	min-width: 150px;
	border-radius: 6px;
	background: #f8f9fa;
}

.stat-label {
	display: block;
	font-size: 0.9rem;
	color: #6c757d;
	margin-bottom: 0.5rem;
}

.stat-value {
	display: block;
	font-size: 1.5rem;
	font-weight: bold;
	color: #007bff;
}
