* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f0f4f8;
  color: #333;
  min-height: 100vh;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

h1 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 12px;
  color: #1a1a2e;
}

.summary {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 14px;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.summary #done-count {
  color: #2e86de;
  font-weight: bold;
}

.add-form {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 12px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.form-row input {
  flex: 1 1 120px;
  padding: 9px 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

.form-row input#input-qty {
  flex: 0 0 70px;
}

.add-form button {
  width: 100%;
  padding: 10px;
  background: #2e86de;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.add-form button:active {
  background: #1a65b0;
}

.actions {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.btn-secondary, .btn-danger {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-secondary {
  background: #e8f0fe;
  color: #2e86de;
}

.btn-danger {
  background: #fde8e8;
  color: #e53e3e;
}

.route-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-item {
  background: #fff;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: opacity 0.2s;
}

.route-item.done {
  opacity: 0.5;
}

.route-item.done .item-name {
  text-decoration: line-through;
  color: #888;
}

.check-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #2e86de;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: #fff;
  transition: background 0.2s;
}

.route-item.done .check-btn {
  background: #2e86de;
  border-color: #2e86de;
}

.item-body {
  flex: 1;
}

.item-name {
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 2px;
}

.item-address {
  font-size: 0.82rem;
  color: #777;
  margin-bottom: 2px;
}

.item-qty {
  font-size: 0.82rem;
  color: #2e86de;
}

.order-badge {
  font-size: 0.75rem;
  background: #e8f0fe;
  color: #2e86de;
  border-radius: 10px;
  padding: 2px 7px;
  margin-right: 4px;
}

.delete-btn {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}

.delete-btn:hover {
  color: #e53e3e;
}

.empty-msg {
  text-align: center;
  color: #aaa;
  font-size: 0.9rem;
  margin-top: 30px;
}
