/* Dark theme styles - mobile-first */
:root {
	--bg: #0f1115;
	--panel: #171923;
	--muted: #222638;
	--text: #e6e7ea;
	--text-dim: #a8adbd;
	--primary: #69b3ff;
	--danger: #ff6b6b;
	--success: #7bd88f;
	--warning: #ffd66b;
	--border: #2a2f45;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
	margin: 0;
	font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	background: var(--bg);
	color: var(--text);
}

.topbar {
	position: sticky; top: 0; z-index: 10;
	display: flex; align-items: center; justify-content: space-between;
	padding: 12px 16px; background: var(--panel);
	border-bottom: 1px solid var(--border);
}
.brand { font-weight: 700; letter-spacing: 0.2px; }
.nav { display: flex; gap: 10px; align-items: center; }
.nav a { color: var(--text-dim); text-decoration: none; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--muted); }
.nav .logout { display: inline; margin: 0; }
.nav .logout button { background: transparent; border: 1px solid var(--border); color: var(--text-dim); padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.nav .logout button:hover { color: var(--text); border-color: var(--text-dim); }

.container { padding: 16px; max-width: 1000px; margin: 0 auto; }
.footer { padding: 24px 16px; text-align: center; color: var(--text-dim); border-top: 1px solid var(--border); background: var(--panel); }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.grid { display: grid; gap: 16px; }
@media(min-width: 720px) { .grid.cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

label { display: block; margin-bottom: 6px; color: var(--text-dim); font-size: 14px; }
input[type="text"], input[type="date"], input[type="number"], select, textarea {
	width: 100%; background: #0c0e13; border: 1px solid var(--border); color: var(--text);
	padding: 10px 12px; border-radius: 10px; outline: none;
}
textarea { min-height: 100px; }

/* Custom checkbox */
/* Hide native checkbox but keep accessible */
input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.checkbox .box { width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: #0c0e13; border: 1px solid var(--border); color: var(--text-dim); cursor: pointer; }
.checkbox:hover .box { border-color: var(--text-dim); }
.checkbox .box .material-symbols-outlined { font-size: 20px; line-height: 1; }
.checkbox input[type="checkbox"]:checked + .box { background: #0c0e13; border-color: var(--text); color: var(--text); }

.row { display: grid; gap: 12px; }
@media(min-width: 560px) { .row.cols-2 { grid-template-columns: 1fr 1fr; } }

.btn { background: var(--primary); color: #0b0d12; border: none; padding: 10px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; }
.btn.secondary { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.danger { background: var(--danger); color: #0b0d12; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid var(--border); }
th { text-align: left; color: var(--text-dim); font-weight: 500; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; background: var(--muted); color: var(--text); border: 1px solid var(--border); font-size: 12px; }
.badge .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.schedule-day { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.schedule-slot { background: #10131a; border: 1px dashed var(--border); border-radius: 8px; padding: 10px; margin-bottom: 8px; }
.schedule-slot .title { font-weight: 600; }
details.schedule-slot > summary { list-style: none; cursor: pointer; }
details.schedule-slot > summary::-webkit-details-marker { display: none; }
details.schedule-slot[open] { border-style: solid; }
.progress { position: relative; height: 6px; background: #0b0e14; border-radius: 999px; overflow: hidden; border: 1px solid var(--border); margin: 0 0 8px; }
.progress .bar { height: 100%; background: linear-gradient(90deg, var(--success), var(--primary)); }

.muted { color: var(--text-dim); }
.spaced { display: flex; justify-content: space-between; align-items: center; gap: 12px; }


