/* Commodore 64 BASIC-like aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

:root {
  --bg: #002fa7;
  --bg-panel: #00198b;
  --bg-done: #003d8b;
  --fg: #6fffff;
  --border: #0040ff;
  --accent: #ffb000;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Press Start 2P', monospace;
  font-size: 14px;
  letter-spacing: 0.04em;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.45;
}

*::selection {
  background: var(--accent);
  color: var(--bg);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

h1, h2, h3 {
  color: var(--fg);
  text-shadow: 0 0 4px var(--fg);
  margin-top: 0;
}

p.small {
  color: var(--fg);
  opacity: 0.9;
  text-align: center;
}

/* Collapsible sections */
details {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  padding: 0.75rem 1rem;
  margin: 1rem 0;
}

details[open] {
  background: var(--bg);
}

details.done {
  background: var(--bg-done);
  opacity: 0.6;
}

summary {
  color: var(--accent);
  cursor: pointer;
  list-style: none;
  outline: none;
}

summary::marker,
summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "▶";
  display: inline-block;
  width: 1em;
  margin-right: 0.5em;
  transition: transform 0.2s ease;
}

details[open] summary::before {
  transform: rotate(90deg);
}

code, kbd {
  background: #001060;
  color: var(--fg);
  padding: 0 0.25em;
  border-radius: 2px;
}

.section-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

input[type="checkbox"] {
  width: 1em;
  height: 1em;
  appearance: none;
  border: 1px solid var(--fg);
  background: transparent;
  cursor: pointer;
  position: relative;
}

input[type="checkbox"]:checked {
  background: var(--accent);
}

input[type="checkbox"]:checked::after {
  content: "✔";
  position: absolute;
  top: -0.1em;
  left: 0.05em;
  font-size: 0.8em;
  color: var(--bg);
}

textarea {
  width: 100%;
  background: #001060;
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.5rem;
  resize: vertical;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.5rem 0;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 0.35rem 0.5rem;
}

th {
  background: #001860;
  color: var(--fg);
}

/* Progress bar */
.progress {
  width: 100%;
  height: 0.5rem;
  background: #001860;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress .bar {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width 0.3s;
}
