.event-list-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.event-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.event-list-header h1 {
  margin: 0;
  color: var(--color-text);
  font-size: 2rem;
}

.event-list-header-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn-templates {
  padding: 0.75rem 1.25rem;
  background: var(--color-primary, #25D366);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-templates:hover {
  opacity: 0.88;
}

.btn-create-event {
  padding: 0.75rem 1.5rem;
  background: var(--color-success);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-create-event:hover {
  background: var(--color-success-hover);
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-text-secondary);
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--color-text);
}

.btn-create-event-large {
  padding: 1rem 2rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-create-event-large:hover {
  background: var(--color-primary-hover);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--color-background-secondary);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow-light);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
  border-color: var(--color-primary);
}

.event-card-content {
  flex: 1;
  margin-bottom: 1rem;
}

.event-card h3 {
  margin: 0 0 0.5rem 0;
  color: var(--color-text);
  font-size: 1.3rem;
}

.event-location,
.event-date {
  margin: 0.5rem 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

.event-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--color-background-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.6rem 0.25rem;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.2rem;
  text-align: center;
}

.stat-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
}

/* per-stat accent colors — !important guards against global .stat-value overrides */
.stat .stat-value--total     { color: var(--color-primary) !important; }
.stat .stat-value--confirmed { color: var(--color-success) !important; }
.stat .stat-value--rate      { color: var(--color-warning) !important; }

/* per-stat tinted backgrounds */
.stat--total     { background: rgba(82,  148, 255, 0.12); border-color: rgba(82,  148, 255, 0.30); }
.stat--confirmed { background: rgba(46,  199, 107, 0.12); border-color: rgba(46,  199, 107, 0.30); }
.stat--rate      { background: rgba(245, 166,  35, 0.12); border-color: rgba(245, 166,  35, 0.30); }

.event-card-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-manage {
  flex: 1;
  padding: 0.5rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s ease;
}

.btn-manage:hover {
  background: var(--color-primary-hover);
}

.btn-delete {
  padding: 0.5rem 0.75rem;
  background: var(--color-background-tertiary);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-delete:hover {
  background: var(--color-danger);
  border-color: var(--color-danger);
  color: #fff;
  transform: scale(1.05);
}

.event-list-loading {
  text-align: center;
  padding: 2rem;
  color: #7f8c8d;
  font-size: 1.1rem;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
  border-left: 4px solid #c33;
}

@media (max-width: 768px) {
  .event-list-container {
    padding: 1rem;
  }

  .event-list-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .event-list-header h1 {
    font-size: 1.5rem;
  }

  .btn-create-event {
    width: 100%;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }
}
