body {
  font-family: -apple-system, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.5rem;
  color: #222;
}

nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.75rem;
}

nav a {
  text-decoration: none;
  color: #2563eb;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 320px;
}

form.inline-form {
  display: inline-flex;
  flex-direction: row;
  gap: 0.4rem;
  margin: 0 0 0 0.5rem;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 0.25rem;
}

input, select {
  padding: 0.4rem;
  font-size: 1rem;
}

button {
  padding: 0.5rem 1rem;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #eee;
}

.flash {
  padding: 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.flash.success {
  background: #dcfce7;
  color: #166534;
}

.flash.error {
  background: #fee2e2;
  color: #991b1b;
}

.admin-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #ccc;
}

.admin-nav a {
  text-decoration: none;
  color: #444;
  font-size: 0.9rem;
  background: #f1f5f9;
  padding: 0.3rem 0.7rem;
  border-radius: 4px;
}

.admin-card {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.admin-card ul {
  margin: 0.25rem 0 0.75rem;
}

.admin-card li {
  border-bottom: none;
  padding: 0.15rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: none;
}

.stat-box {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 1rem;
  text-align: center;
}

.stat-box strong {
  display: block;
  font-size: 1.8rem;
  color: #2563eb;
}

.stat-box span {
  font-size: 0.85rem;
  color: #555;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

th, td {
  text-align: left;
  padding: 0.5rem;
  border-bottom: 1px solid #eee;
}

th {
  background: #f8fafc;
}
