:root {
  --bg: #f7f7f8;
  --surface: #ffffff;
  --text: #1f2328;
  --muted: #6b7280;
  --border: #d9dce1;
  --accent: #2f5fdb;
  --accent-hover: #24499f;
  --accent-contrast: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 1.4em 0 0.6em;
}

h1 {
  font-size: 1.6rem;
  margin-top: 0;
}

h2 {
  font-size: 1.2rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3em;
}

p {
  margin: 0.6em 0;
}

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

a:hover {
  text-decoration: underline;
}

/* Flashed messages */
.container > ul:first-child {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.container > ul:first-child li {
  background: #fff7d6;
  border: 1px solid #e8d98a;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 8px;
}

/* Data lists (client/plan/report listings) */
ul {
  list-style: none;
  padding: 0;
  margin: 0.6em 0;
}

li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

li:last-child {
  border-bottom: none;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.8em 0 1.4em;
  background: var(--surface);
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border: 1px solid var(--border);
}

th {
  background: #eef1f6;
  font-weight: 600;
}

/* Forms */
form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  max-width: 480px;
  margin: 1em 0;
}

label {
  display: block;
  margin-bottom: 14px;
  font-weight: 500;
}

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Buttons (submit buttons, and the logout <form><button>) */
button, input[type="submit"] {
  display: inline-block;
  width: auto;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 6px;
  padding: 9px 18px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

button:hover, input[type="submit"]:hover {
  background: var(--accent-hover);
}
