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

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #2c2c2c;
  color: #333;
  display: flex;
  justify-content: center;
  padding: 2em;
}

.app {
  width: 100%;
  max-width: 600px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ccc;
  margin-bottom: 1em;
}

header input {
  padding: 0.5em;
  border-radius: 8px;
  border: none;
  width: 40%;
  background: #444;
  color: #eee;
}

.notepad {
  background: #f5f5f5;
  padding: 2em;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  background-image: linear-gradient(to bottom, transparent 95%, #ddd 95%);
  background-size: 100% 2.5em;
  position: relative;
}

.notepad::before {
  content: "";
  position: absolute;
  left: 1em;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #333;
}

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

form {
  display: flex;
  gap: 0.5em;
  margin-bottom: 1em;
}

form input {
  flex: 1;
  padding: 0.75em;
  border-radius: 8px;
  border: 1px solid #ccc;
}

form button {
  padding: 0.75em 1em;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

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

li {
  display: flex;
  align-items: center;
  padding: 0.75em 0;
  border-bottom: 1px solid #ddd;
}
.checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #aaa;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
}

.checkbox.checked {
  background: #333;
}

.checkbox.checked::after {
  content: "✔";
  color: white;
  font-size: 14px;
  position: absolute;
  top: 1px;
  left: 3px;
}

.task-text {
  flex: 1;
  margin-left: 0.75em;
}

.completed {
  text-decoration: line-through;
  color: #e74c3c;
}

.task-edit {
  flex: 1;
  margin-left: 0.75em;
  padding: 0.5em;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1em;
}

.actions {
  display: flex;
  gap: 0.3em;
  margin-left: auto;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.2em;
  cursor: pointer;
  padding: 0.2em;
  transition: transform 0.2s ease, color 0.2s ease;
}

.icon-btn:hover {
  transform: scale(1.2);
}

.icon-btn.edit {
  color: #3498db;
}

.icon-btn.save {
  color: #2ecc71;
}

.icon-btn.delete {
  color: #e74c3c;
}
