* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: #f4f5f7;
  color: #1a1a1a;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a1a2e;
  color: #fff;
  padding: 12px 20px;
}

.topbar nav a {
  color: #fff;
  margin-left: 14px;
  text-decoration: none;
}

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

.topbar .user { margin-left: 14px; opacity: 0.7; font-size: 0.9em; }

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

h1 { margin-top: 0; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card {
  background: #fff;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.event-card .event-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.event-card h2 { margin: 0; font-size: 1.2em; }

.countdown {
  font-weight: bold;
  color: #d64545;
  font-variant-numeric: tabular-nums;
}

.event-date { color: #666; margin: 4px 0 12px; }

.mini-table, .table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.mini-table th, .mini-table td,
.table th, .table td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.inline-form { display: inline; }

.btn {
  display: inline-block;
  background: #2b6cb0;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 0.95em;
}

.btn:hover { background: #245a94; }

.btn.secondary { background: #6b7280; }
.btn.secondary:hover { background: #565c66; }

.btn.danger { background: #c53030; }
.btn.danger:hover { background: #9b2c2c; }

form.card label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

form.card input, form.card select {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 8px;
  font-size: 1em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-weight: normal;
}

fieldset {
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 14px;
}

.hint { color: #666; font-size: 0.9em; }

.error { color: #c53030; font-weight: bold; }
.success { color: #2f855a; font-weight: bold; }
