:root {
  --neon: #00ffff;
  --bg: rgba(0, 0, 0, .65);
  --bg2: rgba(0, 0, 0, .85);
  --text: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Share Tech', system-ui, Segoe UI, Roboto, Arial;
  background: #0b0f13;
  color: #dff;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #172028;
  background: #080c10;
}

.topbar h1 {
  margin: 0;
  font-size: 20px;
  color: var(--neon);
  text-shadow: 0 0 8px var(--neon);
}

.content {
  padding: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: rgba(0, 0, 0, .35);
  border: 1px solid #23323a;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
}

.card h2 {
  margin: 0;
  font-size: 16px;
  color: var(--neon);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.card p {
  margin: 0;
  font-size: 13px;
  color: rgba(223, 255, 255, .8);
}

.events {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event {
  border: 1px solid #24404a;
  border-radius: 10px;
  padding: 12px 14px;
  background: #102027;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}

.event:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 255, 255, .18);
}

.event-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

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

.event-id {
  font-size: 15px;
  color: var(--text);
}

.event-matchup {
  font-size: 13px;
  color: rgba(223, 255, 255, .75);
}

.event button {
  border: 1px solid var(--neon);
  background: rgba(0, 255, 255, .12);
  color: var(--neon);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .6px;
  transition: background .15s ease, box-shadow .15s ease;
}

.event button:hover {
  background: rgba(0, 255, 255, .18);
  box-shadow: 0 0 16px rgba(0, 255, 255, .22);
}

.event button.delete {
  border-color: #ff4444;
  background: rgba(255, 68, 68, .12);
  color: #ff6666;
}

.event button.delete:hover {
  background: rgba(255, 68, 68, .18);
  box-shadow: 0 0 16px rgba(255, 68, 68, .22);
}

/* Confirmation dialog */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.dialog {
  background: #102027;
  border: 1px solid #24404a;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.dialog h3 {
  margin: 0 0 16px 0;
  color: #ff6666;
  font-size: 18px;
}

.dialog-info {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #23323a;
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
  font-size: 13px;
  color: rgba(223, 255, 255, .8);
}

.dialog-info strong {
  color: var(--neon);
}

.dialog-buttons {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
}

.dialog button {
  border: 1px solid;
  background: rgba(255, 255, 255, .08);
  border-radius: 6px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  transition: background .15s ease;
}

.dialog button.cancel {
  border-color: #666;
  color: #ccc;
}

.dialog button.cancel:hover {
  background: rgba(255, 255, 255, .12);
}

.dialog button.confirm {
  border-color: #ff4444;
  color: #ff6666;
}

.dialog button.confirm:hover {
  background: rgba(255, 68, 68, .15);
}

.empty-state {
  padding: 24px;
  border: 1px dashed rgba(0, 255, 255, .25);
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  color: rgba(223, 255, 255, .65);
}

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