:root {
  --primary: #60a5fa;
  --text: #ffffff;
  --danger: #ef4444;
  --success: #22c55e;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-image: url('./background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 2rem;
  box-sizing: border-box;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

main {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

h1 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

form {
  display: flex;
  gap: 0.5rem;
}

input[type="text"] {
  flex: 1;
  padding: 0.8rem 1.2rem;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1rem;
  backdrop-filter: blur(10px);
}

input[type="text"]::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

input[type="text"]:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
}

button {
  cursor: pointer;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 30px;
  font-weight: bold;
  color: white;
  transition: all 0.2s;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

button:active { transform: scale(0.95); }

.add-form button {
  background: linear-gradient(135deg, var(--primary), #3b82f6);
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.danger-btn, .delete-form button {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.item-form button {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

ul {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.2s;
}

li:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

li.finished {
  opacity: 0.7;
}

li.finished input[type="text"] {
  text-decoration: line-through;
  color: #86efac;
}

input[type="checkbox"] {
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
  accent-color: var(--success);
}

.delete-finished-form {
  margin-top: 2rem;
  justify-content: center;
}

.empty-state {
  text-align: center;
  font-size: 1.2rem;
  opacity: 0.8;
  margin-top: 2rem;
}

.errors {
  background: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}