body {
  background: #f6f7fb;
  font-family: sans-serif;
  margin: 0;
  padding: 40px;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 20px;
}

.search-bar {
  text-align: right;
  margin-bottom: 20px;
}

.search-bar input {
  padding: 10px 20px;
  font-size: 1em;
  border-radius: 50px;
  border: 1px solid #dfe6e9;
  outline: none;
  width: 250px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.search-bar input:focus {
  border-color: #00b894;
  box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
}

.form {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form input {
  flex: 1 1 200px;
  padding: 12px 15px;
  border: 1px solid #dfe6e9;
  border-radius: 50px;
  font-size: 1em;
}

.buttons {
  flex: 1 1 100%;
  text-align: right;
}

.buttons button {
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-add {
  background: #00b894;
}

.btn-update {
  background: #0984e3;
}

.btn-cancel {
  background: #d63031;
}

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

.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #dfe6e9;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card strong {
  display: block;
  margin-bottom: 5px;
}

.card-actions {
  margin-top: 15px;
}

.card-actions button {
  padding: 6px 12px;
  font-size: 0.8em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  margin-right: 5px;
}

.btn-edit {
  background: #0984e3;
  color: #fff;
}

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

.card.highlight {
  border: 2px solid #00cec9;
}

input.error {
  border-color: red;
}

@media (max-width: 600px) {
  .form {
    flex-direction: column;
  }

  .form input {
    width: 100%;
    margin-bottom: 10px;
  }

  .buttons {
    text-align: center;
  }

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

  .card {
    margin-bottom: 20px;
  }
}
