/* Application styles. Kept in public/ so Apache can serve them as static files. */
:root {
	color-scheme: light dark;
	--bg: #0f172a;
	--card: #111827;
	--text: #e2e8f0;
	--muted: #94a3b8;
	--line: #1f2937;
	--accent: #38bdf8;
	--danger: #f87171;
	--ok: #34d399;
	--input: #0b1220;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
	font-family: system-ui, -apple-system, Segoe UI, sans-serif;
	background: radial-gradient(1200px 600px at 10% -10%, #1e293b, var(--bg));
	color: var(--text);
}

.shell { max-width: 40rem; margin: 0 auto; padding: 1.5rem; }
.top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.brand { color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: .02em; }
.logout button {
	background: transparent; color: var(--muted); border: 1px solid var(--line);
	padding: .4rem .75rem; border-radius: .4rem; cursor: pointer;
}

.card {
	background: color-mix(in srgb, var(--card) 92%, black);
	border: 1px solid var(--line);
	border-radius: 1rem;
	padding: 1.75rem;
}

h1 { margin: 0 0 .4rem; font-size: 1.6rem; }
.lede { margin: 0 0 1.25rem; color: var(--muted); line-height: 1.5; }

form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-size: .92rem; }
input, select {
	background: var(--input); color: var(--text);
	border: 1px solid var(--line); border-radius: .5rem;
	padding: .7rem .8rem; font: inherit;
}
.check { display: flex; align-items: center; gap: .6rem; }
.check input { width: auto; }
button[type="submit"] {
	background: var(--accent); color: #082f49; font-weight: 650;
	border: 0; border-radius: .5rem; padding: .75rem 1rem; cursor: pointer;
}
.meta { margin: 1.25rem 0 0; color: var(--muted); }
.meta a, .brand:hover { color: var(--accent); }
.field-err, .flash-err { color: var(--danger); }
.flash {
	border-radius: .6rem; padding: .7rem .9rem; margin: 0 0 1rem;
	border: 1px solid var(--line);
}
.flash-ok { color: var(--ok); }
.meta-list { display: grid; grid-template-columns: 8rem 1fr; gap: .4rem 1rem; color: var(--muted); }
.meta-list dt { font-weight: 600; color: var(--text); }
small { color: var(--muted); }
textarea { background: var(--input); color: var(--text); border: 1px solid var(--line); border-radius: .5rem; padding: .7rem .8rem; font: inherit; }
.nav { display: flex; align-items: center; gap: 1rem; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--accent); }
.badge { background: var(--accent); color: #082f49; border-radius: 999px; padding: .05rem .45rem; font-size: .75rem; font-weight: 700; }
.n-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.n-item { border: 1px solid var(--line); border-radius: .75rem; padding: 1rem; }
.n-item h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.n-title { color: var(--text); font-weight: 650; text-decoration: none; }
.n-title:hover { color: var(--accent); }
.n-dismiss button { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: .35rem .7rem; border-radius: .4rem; cursor: pointer; }
.n-read { opacity: .75; }
.shell-app { max-width: 72rem; display: grid; grid-template-columns: 12rem 1fr; gap: 1.5rem; }
.shell-app .top { grid-column: 1 / -1; }
.sidenav { display: flex; flex-direction: column; gap: .45rem; }
.sidenav a { color: var(--muted); text-decoration: none; }
.sidenav a:hover { color: var(--accent); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: 1rem; }
.filters input, .filters select { min-width: 10rem; }
.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
.data th, .data td { border-bottom: 1px solid var(--line); text-align: left; padding: .45rem .3rem; }
.data a { color: var(--accent); }
.pager { display: flex; gap: 1rem; color: var(--muted); }
.inline { display: inline; }
.inline button { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: .2rem .5rem; border-radius: .35rem; cursor: pointer; }
.btn-link { color: var(--accent); align-self: center; }
.avatar { width: 96px; height: 96px; object-fit: cover; border-radius: .75rem; }
.comments { margin-top: 2rem; }
