/* Base styles */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  max-width: 600px;
  margin: 30px auto;
  padding: 20px;
  background: #f0f4f8;
  color: #333;
  line-height: 1.5;
}

/* Container */
#app {
  background: white;
  padding: 24px 32px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Headings */
h1 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: #1e2a78;
}

h2 {
  margin-top: 1.8rem;
  margin-bottom: 1rem;
  color: #2c3e50;
  font-weight: 600;
}

/* Inputs & buttons container */
#search-section,
#form-section {
  margin-bottom: 2rem;
}

/* Inputs style */
input {
  display: block;
  margin-bottom: 1rem;
  padding: 12px 16px;
  width: 100%;
  border: 2px solid #d1d9e6;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input:focus {
  outline: none;
  border-color: #1e2a78;
  box-shadow: 0 0 6px rgba(30, 42, 120, 0.3);
}

/* Buttons */
button {
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: white;
  background-color: #1e2a78;
  box-shadow: 0 3px 6px rgba(30, 42, 120, 0.3);
}

button:hover {
  background-color: #4358a0;
}

/* Cancel edit button */
#cancel-edit-btn {
  background-color: #e74c3c;
  margin-left: 10px;
  box-shadow: 0 3px 6px rgba(231, 76, 60, 0.3);
}

#cancel-edit-btn:hover {
  background-color: #c0392b;
}

/* Results list */
#results-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}

#results-list li {
  background: #f9fbff;
  margin-bottom: 1rem;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(30, 42, 120, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  color: #1e2a78;
}

/* Container for edit/delete buttons */
.result-buttons {
  display: flex;
  gap: 8px;
}

/* Smaller buttons for results */
.result-buttons button {
  padding: 8px 14px;
  font-size: 0.9rem;
  background-color: #4358a0;
  box-shadow: none;
}

.result-buttons button:hover {
  background-color: #2e3e75;
}
