* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f5f5;
  color: #222;
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar h1 {
  font-size: 1.3rem;
  margin: 0;
}

.topbar nav a {
  margin-left: 1rem;
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
}

.topbar nav a:hover {
  text-decoration: underline;
}

.container {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem 2rem;
}

h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  min-width: 600px;
}

.table th,
.table td {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid #eee;
  text-align: left;
  font-size: 0.9rem;
}

.table thead {
  background: #fafafa;
}

.table tr:last-child td {
  border-bottom: none;
}

.table td.actions a {
  margin-right: 0.5rem;
  font-size: 0.85rem;
}

.form {
  background: #ffffff;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.form label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.form input[type="text"],
.form input[type="number"],
.form input[type="password"],
.form select,
.form textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
}

.form textarea {
  resize: vertical;
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

.form button,
.btn-secondary {
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  border: none;
  font: inherit;
  cursor: pointer;
  font-size: 0.9rem;
}

.form button {
  background: #222;
  color: #fff;
}

.btn-secondary {
  background: #e0e0e0;
  color: #222;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
