* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: #f5f6fa;
  color: #1f2937;
  line-height: 1.6;
}

.container { max-width: 1000px; margin: 0 auto; padding: 24px 16px; }
.container.narrow { max-width: 440px; }
h1 { margin-top: 0; }
.muted { color: #6b7280; }

/* Navigation */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: #1e3a8a;
}
.nav a { color: #fff; text-decoration: none; margin-inline-start: 16px; }
.nav .brand { font-size: 1.3rem; font-weight: bold; margin: 0; }
.nav .links { display: flex; align-items: center; gap: 8px; }
.nav .user-name { color: #c7d2fe; margin-inline-start: 16px; }

/* Buttons */
.btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 1rem;
  cursor: pointer;
}
.btn:hover { background: #1d4ed8; }
.btn:disabled { background: #9ca3af; cursor: not-allowed; }
.btn-light { background: #e5e7eb; color: #1f2937; }
.btn-light:hover { background: #d1d5db; }

/* Event cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.card-body { padding: 16px; }
.card h2 { margin: 0 0 8px; font-size: 1.2rem; }
.card p { margin: 4px 0; }
.seats { font-weight: bold; color: #047857; }
.seats.full { color: #b91c1c; }
.actions { display: flex; gap: 8px; margin-top: 12px; }

/* Forms */
.panel { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
label { display: block; margin-bottom: 14px; font-weight: 600; }
input { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 1px solid #d1d5db; border-radius: 8px; font-size: 1rem; }
small { display: block; font-weight: normal; margin-top: 4px; }

/* Tabs */
.tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.tab { flex: 1; padding: 10px; border: none; border-radius: 8px; background: #e5e7eb; cursor: pointer; font-size: 1rem; }
.tab.active { background: #2563eb; color: #fff; }

/* Messages */
.message { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; }
.message.info { background: #dbeafe; color: #1e40af; }
.message.success { background: #d1fae5; color: #065f46; }
.message.error { background: #fee2e2; color: #991b1b; }

/* Ticket badges */
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .85rem; font-weight: bold; margin-top: 6px; }
.badge-ok { background: #d1fae5; color: #065f46; }
.badge-past { background: #e5e7eb; color: #4b5563; }
.badge-done { background: #dbeafe; color: #1e40af; }
.ticket-code { font-family: monospace; letter-spacing: 1px; color: #6b7280; }
.registered { color: #047857; font-weight: bold; }

/* Table */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid #e5e7eb; text-align: start; }
