body {
  font-family: 'Segoe UI', sans-serif;
  margin: 20px;
  background: #f4f4f4;
  color: #333;
}

h1, h2 {
  color: #2c3e50;
}

#controls {
  margin-bottom: 20px;
}

#addToggle {
  background: #3498db;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
}

#addForm {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 10px;
}

#addForm input {
  flex: 1;
  padding: 8px;
}

#addForm button {
  background: #2ecc71;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
}

#buttonContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
}

.person-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 120px;
}

.person-btn {
  padding: 18px 10px;
  font-size: 1rem;
  border-radius: 12px;
  background: #ecf0f1;
  border: none;
  min-width: 100%;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.person-btn:hover {
  background: #d0d3d4;
}

.person-btn.active {
  background: #27ae60;
  color: white;
}

.person-delete {
  margin-top: 5px;
  background: none;
  border: none;
  color: #e74c3c;
  font-size: 1.4rem;
  cursor: pointer;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
}

th, td {
  padding: 10px;
  border: 1px solid #ccc;
}

th {
  background-color: #eee;
  cursor: pointer;
}

#export {
  margin-top: 30px;
}

#export button {
  background: #e67e22;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
}

button.delete-entry {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #e74c3c;
  cursor: pointer;
}

@media (max-width: 600px) {
  #buttonContainer {
    justify-content: center;
  }

  .person-wrapper {
    width: 45%;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    background: white;
    padding: 10px;
  }

  td {
    display: flex;
    justify-content: space-between;
    padding: 5px 10px;
  }
}
