:root {
  --bg: #0f172a;
  --surface: #1e293b;
  --surface-2: #273449;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --done: #475569;
  --danger: #f87171;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background: radial-gradient(circle at top, #172033, var(--bg));
  color: var(--text);
  min-height: 100vh;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

.app__header {
  text-align: center;
  margin-bottom: 2rem;
}

.app__header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.app__subtitle {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.add-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  background: var(--surface);
  padding: 0.75rem;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 1.5rem;
}

.add-form input[type="text"] {
  background: var(--surface-2);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  font-size: 0.95rem;
}

.add-form__name {
  flex: 1 1 200px;
}

.add-form__qty {
  width: 80px;
}

.add-form input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
}

.add-form__file {
  display: flex;
  align-items: center;
  padding: 0 0.6rem;
  background: var(--surface-2);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
}

.add-form__file input {
  display: none;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.btn--primary {
  background: var(--accent-strong);
  color: white;
  font-weight: 600;
}

.btn--primary:hover {
  background: var(--accent);
}

.items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--surface);
  padding: 0.75rem;
  border-radius: var(--radius);
}

.item__check {
  width: 22px;
  height: 22px;
  accent-color: var(--accent-strong);
  cursor: pointer;
  flex: none;
}

.item__thumb {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-2);
  flex: none;
}

.item__body {
  flex: 1;
  min-width: 0;
}

.item__name {
  font-weight: 600;
}

.item__qty {
  color: var(--muted);
  font-size: 0.85rem;
}

.item--done .item__name {
  text-decoration: line-through;
  color: var(--done);
}

.item__delete {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.item__delete:hover {
  color: var(--danger);
  background: rgba(248, 113, 113, 0.1);
}

.empty {
  text-align: center;
  color: var(--muted);
  margin-top: 2rem;
}
