body,
input {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 16px;
	color: #333;
}

body {
	background-color: #f5f5f5;
	line-height: 1.5;
	margin: 0;
	padding: 20px;
}

.container {
	max-width: 800px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header and Navigation */
nav {
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
}

nav > a,
nav > b {
	margin-right: 24px;
	font-size: 18px;
}

.nav-links {
	display: flex;
	gap: 20px;
	align-items: center;
}

.nav-links a {
	color: #666;
	text-decoration: none;
	font-weight: 500;
	padding: 8px 16px;
	border-radius: 6px;
	transition: all 0.2s;
}

.nav-links a:hover {
	color: #0066cc;
	background-color: #f0f7ff;
}

.nav-links a.active {
	color: #0066cc;
	background-color: #e6f0ff;
}

.nav-header {
	font-size: 24px;
	font-weight: 600;
	color: #333;
	margin: 0;
}

.logo {
	vertical-align: text-bottom;
	max-height: 32px;
}

/* Sections */
section {
	background-color: white;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.main-page-header {
	font-size: 24px;
	font-weight: 600;
	text-align: center;
	margin: 0 0 20px 0;
	color: #333;
}

/* Search */
input.search {
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 6px;
	width: 100%;
	box-sizing: border-box;
	font-size: 16px;
	margin-bottom: 20px;
}

input.search:focus {
	outline: none;
	border-color: #0066cc;
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

input.search::placeholder {
	color: #666;
}

/* Comics List */
ul#comics-list {
	padding: 0;
	margin: 0;
	list-style: none;
	min-height: 2em;
	max-height: 70vh;
	overflow-y: auto;
	overflow-x: hidden;
	position: relative;
}

ul#comics-list:before {
	content: "No results found";
	position: absolute;
	top: 20px;
	left: 0;
	right: 0;
	display: block;
	text-align: center;
	z-index: -1;
	color: #666;
}

ul#comics-list > li {
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 15px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	min-width: 0;
	width: 100%;
	box-sizing: border-box;
}

ul#comics-list > li:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

@media screen and (max-width: 800px) {
	.actions {
		gap: 6px;
	}
	
	.actions a {
		font-size: 11px;
		padding: 5px 7px;
	}
}

@media screen and (max-width: 600px) {
	ul#comics-list > li {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.comic-info {
		width: 100%;
		margin-bottom: 8px;
	}
	
	.comic-meta {
		gap: 8px;
		flex-wrap: wrap;
	}
	
	.actions {
		margin-top: 10px;
		width: 100%;
		gap: 6px;
	}
	
	.actions a {
		font-size: 10px;
		padding: 4px 6px;
	}
}

.comic-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ellipsis {
	text-overflow: ellipsis;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	font-size: 18px;
	font-weight: 500;
	color: #333;
}

.ellipsis small {
	font-weight: 400;
	color: #666;
	font-size: 14px;
}

.comic-meta {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: #888;
}

.comic-meta span {
	display: flex;
	align-items: center;
}

.strip-count {
	font-weight: 500;
	color: #0066cc;
}

.last-update {
	color: #666;
}

.no-strips {
	color: #999;
	font-style: italic;
}

/* Actions */
.actions {
	display: flex;
	gap: 8px;
	align-items: center;
	flex-shrink: 0;
	flex-wrap: wrap;
}

.actions a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 6px 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	color: #0066cc;
	text-decoration: none;
	font-size: 12px;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.actions a:hover {
	background-color: #f8f9fa;
	border-color: #0066cc;
	text-decoration: none;
}

.icon {
	width: 16px;
	height: 16px;
}

/* Footer */
footer {
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	margin-top: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.1);
	text-align: center;
	color: #666;
}

footer a {
	color: #0066cc;
	text-decoration: none;
}

footer a:hover {
	text-decoration: underline;
}

/* Language switcher */
section > b,
section > a {
	color: #0066cc;
	text-decoration: none;
}

section > a:hover {
	text-decoration: underline;
}

/* Links */
a {
	color: #0066cc;
	text-decoration: none;
}

a:hover {
	color: #004499;
	text-decoration: underline;
}

/* Utility classes */
.text-center {
	text-align: center;
}

.text-right {
	text-align: right;
}

.gray {
	color: #666;
}

/* Copy functionality */
textarea.copyable {
	position: fixed;
	top: 0;
	left: 0;
	width: 2em;
	height: 2em;
	padding: 0;
	border: none;
	outline: none;
	box-shadow: none;
	background: transparent;
}

/* Preview styles (if needed) */
.preview-header {
	font-size: 20px;
	color: #333;
	font-weight: 500;
}

img.preview-comic {
	max-width: 100%;
	border-radius: 6px;
}

/* Responsive design */
@media screen and (max-width: 768px) {
	body {
		padding: 10px;
	}
	
	.container {
		padding: 0 10px;
	}
	
	section,
	nav,
	footer {
		padding: 20px;
	}
	
	nav {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}
	
	nav > a,
	nav > b {
		margin: 5px 10px;
	}
	
	.nav-links {
		width: 100%;
		justify-content: center;
	}
}