:root {
  --brand: #2D6A4F;
  --brand-dark: #1B4332;
  --accent: #F4A261;
  --neutral-50: #f8fafc;
  --neutral-100: #f1f5f9;
  --neutral-200: #e2e8f0;
  --neutral-600: #475569;
  --neutral-900: #0f172a;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--neutral-50);
  color: var(--neutral-900);
}

.app-header {
  background: var(--brand);
  color: white;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-header a {
  color: white;
  text-decoration: none;
  font-weight: 600;
}

.app-main {
  padding: 1.5rem;
  max-width: 40rem;
  margin-inline: auto;
}

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.messages li {
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  background: var(--neutral-100);
  border-inline-start: 3px solid var(--brand);
  margin-block-end: 0.5rem;
}

.card {
  background: white;
  border: 1px solid var(--neutral-200);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.page-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-block-end: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary {
  background: var(--brand);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: white;
  border-color: var(--neutral-200);
  color: var(--neutral-900);
}

.btn-secondary:hover {
  background: var(--neutral-100);
}

.form-field {
  margin-block-end: 1rem;
}

.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  margin-block-end: 0.25rem;
}

.form-control {
  width: 100%;
  border: 1px solid var(--neutral-200);
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.form-help {
  font-size: 0.75rem;
  color: var(--neutral-600);
  margin-block-start: 0.25rem;
}

.form-error {
  font-size: 0.75rem;
  color: #b91c1c;
  margin-block-start: 0.25rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-block-start: 1.5rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--neutral-200);
  border-radius: 0.5rem;
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--neutral-100);
}

th {
  text-align: start;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--neutral-600);
}

td {
  padding: 0.75rem 1rem;
  border-block-start: 1px solid var(--neutral-200);
}

.empty-state {
  border: 1px dashed var(--neutral-200);
  border-radius: 0.5rem;
  padding: 2.5rem;
  text-align: center;
  background: white;
}

.empty-state p {
  color: var(--neutral-600);
  margin-block-end: 1rem;
}
