body {
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0;
	padding: 0;
	background: #f4f4f9;
	color: #222;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-header {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	padding: 0.75rem 2rem;
	background: #283593;
	color: #fff;
	gap: 1rem;
}

.header-left,
.header-right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}
.site-header h1 {
	margin: 0;
	font-size: 1.4rem;
}

nav {
	display: flex;
	gap: 0.5rem;
}

main {
	padding: 2rem;
	flex: 1;
}

.content-section-list {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.content-card {
	border-radius: 8px;
	border: 1px solid #ddd;
	background: #fff;
	padding: 1rem 1.25rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.content-card h3 {
	margin-top: 0;
}

.content-add {
	margin-top: 2rem;
	max-width: 480px;
}

.content-admin-form {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.content-admin-form textarea {
	resize: vertical;
}

.content-admin-form .inline-checkbox {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.inline-checkbox {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.notes-list {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.note-card {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	border-radius: 8px;
	border: 1px solid #ddd;
	background: #fff;
	padding: 1rem 1.25rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.note-content h3 {
	margin-top: 0;
}

.note-actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	align-items: flex-end;
}

.note-actions form {
	margin: 0;
}

.note-edit-form {
	margin: 0.5rem 0 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px dashed #c5cae9;
	border-radius: 8px;
	background: #f8f9ff;
	max-width: 720px;
}

.note-edit-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 0.5rem;
}

.note-sort {
	display: flex;
	gap: 0.25rem;
}

.note-add {
	margin-top: 2rem;
	max-width: 480px;
}

form {
	max-width: 900px;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

label {
	display: flex;
	flex-direction: column;
	font-size: 0.9rem;
}

input[type="text"],
input[type="password"] {
	padding: 0.5rem;
	border-radius: 4px;
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.5rem;
	border-radius: 4px;
	border: 1px solid #ccc;
}

.btn,
button {
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	border: none;
	background: #3949ab;
	color: #fff;
	cursor: pointer;
}

.btn.secondary {
	background: #757575;
}

.btn.nav-btn.active {
	background: #1a237e;
}

.btn.pill,
.welcome-pill {
	border-radius: 999px;
	background: #1a237e;
	font-size: 0.85rem;
}

.btn:hover,
button:hover {
	background: #303f9f;
}

.error {
	color: #c62828;
	background: #ffebee;
	border: 1px solid #ef9a9a;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	max-width: 320px;
}

.notice {
	color: #1b5e20;
	background: #e8f5e9;
	border: 1px solid #a5d6a7;
	padding: 0.5rem 0.75rem;
	border-radius: 4px;
	max-width: 320px;
}

footer {
	padding: 0;
	background: #283593;
	color: #fff;
}

.site-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.footer-edit-toggle {
	margin: 0;
}

.btn.small {
	padding: 0.25rem 0.5rem;
	font-size: 0.75rem;
}

.btn.ghost {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
	opacity: 0.6;
}

.btn.ghost:hover {
	opacity: 1;
	background: rgba(255, 255, 255, 0.15);
}

/* Modal styling */
.modal {
	position: fixed;
	inset: 0;
	display: none;
}

.modal.open {
	display: block;
}

.modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.4);
}

.modal-content {
	position: relative;
	max-width: 400px;
	margin: 10vh auto;
	background: #fff;
	padding: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.user-list {
	margin-top: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.user-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	padding: 0.5rem;
	background: #fff;
	border-radius: 4px;
	border: 1px solid #ddd;
	max-width: 700px;
}

.user-row .flags {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 0.25rem;
}

.user-row .actions {
	display: flex;
	align-items: flex-end;
}

.inline-delete {
	max-width: 700px;
	padding-left: 0.5rem;
}

.user-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 1rem;
}

.user-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 0.75rem;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.user-table th,
.user-table td {
	padding: 0.75rem;
	border-bottom: 1px solid #eee;
	text-align: left;
}

.user-table th {
	background: #e8eaf6;
}

.user-actions {
	display: flex;
	gap: 0.5rem;
}

.modal-actions {
	display: flex;
	gap: 0.5rem;
	justify-content: flex-end;
}
