/* General Page Styles */
#eventForm, #eventsTable {
  max-width: 900px;
  margin: 20px auto;
  font-family: Arial, sans-serif;
  color: #222;
}

/* Form */
#eventForm {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 15px;
  border-radius: 8px;
  background: #fdfdfd;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  justify-content: center;
}

#eventForm input, #eventForm button {
  flex: 1 1 250px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #f4f8ff; /* unified input background */
  box-sizing: border-box;
}

#eventForm button {
  flex: 1 1 100%;
  background: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

#eventForm button:hover {
  background: #43a047;
}

/* Table */
#eventsTable {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  text-align: center;
}

#eventsTable th {
  background: #2d89ef; /* header background */
  color: white;
  padding: 10px;
}

#eventsTable td {
  background: #f9f9f9; /* table cell background */
  padding: 8px;
  border: 1px solid #ddd;
}

#eventsTable tfoot td {
  font-weight: bold;
  background: #efefef;
}

/* Buttons inside table */
#eventsTable button {
  padding: 5px 10px;
  margin: 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#eventsTable .edit-btn {
  background: #ffc107;
  color: #000;
}

#eventsTable .delete-btn {
  background: #e53935;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  #eventForm input, #eventForm button {
    flex: 1 1 100%;
  }

  #eventsTable th, #eventsTable td {
    font-size: 14px;
    padding: 6px;
  }
}
