* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f5f7;
  color: #1a1a1a;
  padding: 40px 20px;
}

.container {
  max-width: 640px;
  margin: 0 auto;
}

h1 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  text-align: center;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.card {
  background: #ffffff;
  border: 1px solid #e2e4e8;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 8px;
}

input, select {
  padding: 10px 12px;
  border: 1px solid #d0d3d9;
  border-radius: 6px;
  font-size: 0.95rem;
}

button {
  margin-top: 16px;
  padding: 12px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: #1d4ed8;
}

button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.message {
  margin-top: 12px;
  font-size: 0.9rem;
}

.message.success { color: #16a34a; }
.message.error { color: #dc2626; }

.events-list, .registrations-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-item, .registration-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #eceef1;
  border-radius: 8px;
  background: #fafbfc;
}

.event-item .name, .registration-item .name {
  font-weight: 600;
  font-size: 0.9rem;
}

.event-item .date, .registration-item .date {
  font-size: 0.8rem;
  color: #6b7280;
}

.badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
}

.badge.available { background: #dcfce7; color: #166534; }
.badge.limited { background: #fef3c7; color: #92400e; }
.badge.full { background: #fee2e2; color: #991b1b; }
.badge.confirmed { background: #dbeafe; color: #1e40af; }
.badge.cancelled { background: #f3f4f6; color: #6b7280; }

.cancel-btn {
  margin-top: 0;
  padding: 6px 12px;
  font-size: 0.8rem;
  background: #dc2626;
}

.cancel-btn:hover {
  background: #b91c1c;
}

.loading, .empty {
  color: #6b7280;
  font-size: 0.9rem;
}
