/* Google Font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --bg: #f0f4f8;
  --container: rgba(255, 255, 255, 0.2);
  --text: #222;
  --primary: #4cafef;
  --done: #81c784;
  --delete: #e74c3c;
}

body.dark {
  --bg: #181818;
  --container: rgba(40, 40, 40, 0.6);
  --text: #f1f1f1;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  transition: background 0.4s;
}

.container {
  backdrop-filter: blur(12px);
  background: var(--container);
  padding: 25px;
  width: 380px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: 0.4s;
}

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

h1 {
  color: var(--text);
  font-size: 24px;
}

#themeToggle {
  border: none;
  background: var(--primary);
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.input-box {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

input {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 12px;
  outline: none;
  font-size: 14px;
}

button#addBtn {
  padding: 12px 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: 0.3s;
}

button#addBtn:hover {
  background: #3a9cd9;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

li {
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
  transition: 0.3s;
}

li.done {
  text-decoration: line-through;
  background: var(--done);
  color: #fff;
}

.actions {
  display: flex;
  gap: 8px;
}

.edit-btn, .delete-btn {
  border: none;
  padding: 6px 8px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  transition: 0.3s;
}

.edit-btn {
  background: #f1c40f;
  color: white;
}

.edit-btn:hover {
  background: #d4ac0d;
}

.delete-btn {
  background: var(--delete);
  color: white;
}

.delete-btn:hover {
  background: #c0392b;
}
