:root {
  --primary-color: rgb(74, 144, 226);
  --bg-color: #f8f9fb;
  --text-color: #0d6ed6;
  --border-radius: 0.8rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Rubik', sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

header h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  background: #fff;
  padding: 1rem;
  border-radius: var(--border-radius);
  box-shadow: 0 0 0.5rem rgba(0,0,0,0.1);
  width: 100%;
  max-width: 500px;
}

.form-group {
  flex: 1 1 100%;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
}

button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}

button:hover {
  background: #357ac9;
}

.task-list {
  list-style: none;
  margin-top: 2rem;
  width: 100%;
  max-width: 500px;
  padding: 0;
}

.task-item {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 0 0.3rem rgba(0,0,0,0.1);
}

.task-info {
  flex: 1;
}

.task-info p {
  margin-bottom: 0.3rem;
}

.task-info small {
  color: #666;
}

.task-item.completed {
  background: #e0f7e9;
  text-decoration: line-through;
  color: #555;
}

footer {
  text-align: center;
  margin-top: 2rem;
  color: #444;
}

/* Responsividade */
@media (max-width: 480px) {
  form {
    flex-direction: column;
  }
}
