* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: #f4f6f8;
  color: #1f2933;
}
.container { max-width: 960px; margin: 0 auto; padding: 24px; }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #101828;
  color: #fff;
  padding: 12px 24px;
}
.navbar-brand { font-weight: 700; }
.navbar-links a { color: #cbd5e1; text-decoration: none; margin-right: 16px; }
.navbar-links a:hover { color: #fff; }
.navbar-user { display: flex; align-items: center; gap: 12px; font-size: 0.9em; }

.auth-body { display: flex; align-items: center; justify-content: center; height: 100vh; }
.auth-card {
  background: #fff; padding: 32px; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,0.08);
  width: 320px; text-align: center;
}
.auth-card h1 { margin-bottom: 4px; }
.subtitle { color: #6b7280; margin-top: 0; }

form label { display: block; margin-top: 12px; font-size: 0.85em; color: #4b5563; }
form input, form textarea, form select {
  width: 100%; padding: 8px; margin-top: 4px; border: 1px solid #d1d5db; border-radius: 6px;
}
form button {
  margin-top: 16px; width: 100%; padding: 10px; border: none; border-radius: 6px;
  background: #2563eb; color: #fff; cursor: pointer; font-weight: 600;
}
form button:hover { background: #1d4ed8; }

.alert { padding: 10px; border-radius: 6px; margin: 12px 0; font-size: 0.9em; }
.alert-error { background: #fee2e2; color: #991b1b; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 24px 0; }
.card { background: #fff; padding: 16px; border-radius: 10px; text-decoration: none; color: inherit; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.role-help { background: #fff; padding: 16px; border-radius: 10px; }

.forms-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.panel { background: #fff; padding: 16px; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; }
.table th, .table td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: left; font-size: 0.9em; }
.table.small th, .table.small td { font-size: 0.8em; }
.table th { background: #f9fafb; }
.actions { display: flex; gap: 8px; align-items: center; }

.link-button {
  background: none; border: none; color: #2563eb; cursor: pointer; padding: 0; font: inherit;
}
.link-button.danger { color: #dc2626; }
.inline-form select { width: auto; margin: 0; }
.hint { color: #6b7280; font-size: 0.85em; }

@media (max-width: 700px) {
  .forms-grid { grid-template-columns: 1fr; }
}
