/* Reset and base styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f7f9fc;
  color: #222;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  min-height: 100vh;
  align-items: flex-start;
}

.container {
  background: #fff;
  max-width: 450px;
  width: 100%;
  padding: 30px 25px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

h1 {
  font-size: 1.9rem;
  color: #1565c0;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}

p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #444;
  text-align: center;
  line-height: 1.4;
}

.checklist-creator label {
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
  color: #222;
}

#item-input {
  width: 100%;
  padding: 12px 15px;
  font-size: 1rem;
  border: 1.8px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
}

#item-input:focus {
  border-color: #1565c0;
  outline: none;
  box-shadow: 0 0 8px rgba(21, 101, 192, 0.3);
}

button {
  background-color: #1565c0;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 15px;
  width: 100%;
}

button:disabled {
  background-color: #a1b9db;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  background-color: #0d3d91;
}

#packing-list {
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 15px;
}

#packing-list li {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e6f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  color: #333;
}

#packing-list li:last-child {
  border-bottom: none;
}

.delete-btn {
  background: transparent;
  border: none;
  color: #e53935;
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: 700;
}

.delete-btn:hover {
  color: #ab000d;
}

@media (max-width: 480px) {
  .container {
    padding: 20px 15px;
  }
}
