* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

body {
  background: #f4f6f9;
  display: flex;
  justify-content: center;
  padding: 20px;
}

.container {
  background: #fff;
  padding: 20px;
  max-width: 500px;
  width: 100%;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.summary {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.summary p {
  font-weight: bold;
}

form {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

form input,
form select,
form button {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

form button {
  background: #007bff;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

form button:hover {
  background: #0056b3;
}

#reset-btn {
  background: #dc3545;
}

#reset-btn:hover {
  background: #a71d2a;
}

.filters {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 15px 0;
}

#entries-list {
  list-style: none;
  margin-top: 10px;
}

.entry {
  display: flex;
  justify-content: space-between;
  background: #f9f9f9;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 5px;
  align-items: center;
}

.entry span {
  flex: 1;
}

.entry .actions {
  display: flex;
  gap: 10px;
}

.entry button {
  border: none;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.edit-btn {
  background: #ffc107;
  color: #000;
}

.delete-btn {
  background: #dc3545;
  color: #fff;
}

/* 📱 Mobile Screens (max 600px) */
@media (max-width: 600px) {
  .summary {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  form {
    flex-direction: column;
    gap: 10px;
  }

  form input,
  form select,
  form button {
    width: 100%;
  }

  .entry {
    flex-direction: column;
    text-align: center;
    gap: 5px;
  }

  .entry .actions {
    justify-content: center;
  }
}

@media (max-width: 400px) {
  h1 {
    font-size: 1.4rem;
  }

  .container {
    padding: 15px;
  }

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

  .filters label {
    text-align: center;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .container {
    max-width: 700px;
  }

  .summary {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
}
