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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f5f5f5;
  color: #333;
}

.container {
  max-width: 480px;
  margin: 60px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 24px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

h1 { font-size: 1.4rem; }
h2 { font-size: 1rem; margin-bottom: 12px; color: #666; }

input {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}

button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  background: #2d7d46;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
}

button:hover { background: #236335; }

.add-item {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.add-item input { flex: 1; }

#login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#items-list {
  list-style: none;
}

#items-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin-bottom: 6px;
  font-family: monospace;
}

#items-list li button {
  background: #c0392b;
  padding: 4px 10px;
  font-size: 0.8rem;
}

#items-list li button:hover { background: #962d22; }

.error { color: #c0392b; margin-top: 8px; font-size: 0.85rem; }
.hidden { display: none !important; }
