:root {
  --bg: #f5f5f5;
  --text: #111;
  --primary: #4f46e5;
  --card: #fff;
}

body.dark {
  --bg: #1e1e2f;
  --text: #fff;
  --card: #2d2d44;
}

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: all 0.3s ease-in-out;
}

.app-container {
  max-width: 700px;
  margin: 2rem auto;
  padding: 1rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-input {
  display: flex;
  gap: 0.5rem;
  margin: 2rem 0;
}

input[type="text"] {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid var(--primary);
  border-radius: 8px;
  outline: none;
}

button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

button:hover {
  transform: scale(1.05);
}

.task-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-card {
  background: var(--card);
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
