* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background-color: #f4f4f4;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.container {
  background-color: #ffffff;
  width: 100%;
  max-width: 420px;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

h1 {
  margin-bottom: 1rem;
  text-align: center;
}

.input-section {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

#taskInput {
  flex: 1;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccc;
}

#addTask {
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  border: none;
  background-color: #2563eb;
  color: white;
  cursor: pointer;
}

#taskList {
  list-style: none;
}

#taskList li {
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .container {
    border-radius: 0;
    min-height: 100vh;
  }

  .input-section {
    flex-direction: column;
  }

  #addTask {
    width: 100%;
  }
}
