* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a1a1a, #0b0b0b 70%);
  color: #eee;
  display: flex;
  justify-content: center;
  padding: 50px 20px;
}

.app {
  width: 950px;
  max-width: 100%;
}

h1 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.section-title {
  margin-bottom: 15px;
  font-weight: 500;
  color: #ccc;
}

.person-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 22px;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  position: relative;
}

.remove-person {
  position: absolute;
  top: 12px;
  right: 12px;           /* mutat în dreapta (UX standard) */
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: #ddd;
  font-size: 18px;
  cursor: pointer;
  transition: 0.2s;
  border: 1px solid rgba(255,255,255,0.15);
}

.remove-person:hover {
  background: rgba(255,70,70,0.18);
  color: #ff6b6b;
  border-color: rgba(255,70,70,0.35);
  transform: scale(1.08);
}

.person-name {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.06);
  color: #fff;
  margin-bottom: 18px;
  transition: 0.2s;
}

.person-name:focus {
  outline: none;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.09);
}

.item-row {
  display: grid;
  grid-template-columns: 1fr 120px 42px;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
}

.item-row input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.06);
  color: #fff;
  transition: 0.2s;
}

.item-row input:focus {
  outline: none;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.09);
}

.remove-item {
  height: 36px;
  border-radius: 10px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  cursor: pointer;
  transition: 0.2s;
}

.remove-item:hover {
  background: rgba(255,255,255,0.18);
}

button {
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  background: linear-gradient(135deg,#3a3a3a,#1f1f1f);
  color: #fff;
  transition: 0.25s;
  font-weight: 500;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

button:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg,#4a4a4a,#262626);
}

.add-item {
  margin-top: 8px;
}

.actions {
  margin-top: 25px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

.submit {
  background: linear-gradient(135deg,#5a5a5a,#2a2a2a);
}

@media (max-width: 600px) {
  .item-row {
    grid-template-columns: 1fr;
  }

  .remove-item {
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }
}