body {
  font-family: 'Outfit', 'SUIT', sans-serif;
  background: linear-gradient(to bottom right, #e8f0ff, #fdfdfd);
  padding: 20px;
  margin: 0 auto;
  max-width: 720px;
}

h2 {
  font-family: 'Gowun Dodum', sans-serif;
  font-weight: bold;
  color: #003c83;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 20px;
}

.section {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

label, input, button {
  font-family: 'Outfit', 'SUIT', sans-serif;
  font-size: 1rem;
  margin: 6px 4px 10px 0;
}

input[type="text"], input[type="number"] {
  padding: 10px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  transition: border 0.3s;
}

input:focus {
  border: 1px solid #003c83;
  outline: none;
}

button {
  background-color: #003c83;
  color: white;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #002c63;
}

.section-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: #003c83;
  margin-bottom: 16px;
}

.remove-btn {
  background: none;
  border: 1px solid #ccc;
  color: #555;
  font-size: 12px;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  text-align: center;
  line-height: 16px;
  display: inline-block;
  margin-left: 6px;
  cursor: pointer;
  vertical-align: middle;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}

.remove-btn:hover {
  background: #f0f0f0;
  color: red;
}

.results {
  background: #f0f7ff;
  padding: 15px;
  border-radius: 10px;
  font-size: 1rem;
  color: #222;
  white-space: pre-wrap;
}

.item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.item:last-child {
  border-bottom: none;
}

.item-name {
  font-weight: 500;
}

.item-count, .item-price {
  color: #555;
  text-align: right;
}

.item .remove-btn {
  justify-self: end;
}

.person-entry {
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}

.person-entry-name {
  min-width: 100px;
  font-weight: 500;
}

.selection-area {
  display: grid;
  grid-template-columns: repeat(auto-fill, 80px);
  gap: 16px;
  margin-bottom: 16px;
}

.person-row {
  display: grid;
  align-items: start;
  min-width: 50px;
}

.person-name {
  font-weight: bold;
  min-width: 50px;
}

.inputs-container {
  display: grid;
  gap: 4px;
}

.input-wrapper {
  width: 100%;
}

.input-wrapper label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  color: #666;
}

.input-wrapper input {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
}

.sub-items {
  font-size: 0.85rem;
  color: #a6a6a6;
  display: block;
  margin-bottom: -5px;
}

@media (min-width: 768px) {
  .inputs-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .inputs-container {
    grid-template-columns: 1fr;
  }
}

#itemList {
  margin: 15px 0;
}

#receiptTotalDisplay {
  margin-top: 15px;
  font-weight: 600;
  color: #003c83;
}

#selectionSection {
  transition: opacity 0.3s;
}

#selectionArea {
  margin: 15px 0;
}

#results {
  min-height: 50px;
} 