body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;

  /* light paper background */
  background: repeating-linear-gradient(
    to bottom,
    #fefefe,
    #fefefe 28px,
    #d0ebff 29px /* blue line */
  ),
  linear-gradient(to right, #fdfdfd, #fefefe);

  /* subtle left margin for notebook binding */
  background-size: 100% 30px;
  background-attachment: fixed;
}





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

header {
  background: #1b5e20;
  color: white;
  padding: 15px 20px;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.logo {
  font-weight: bold;
  color: #c8e6c9;
}
.input-area {
  display: flex;
  background: #aed581;
  padding: 15px;
  gap: 10px;
}
#todoInput {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}
#addBtn {
  width: 50px;
  border: none;
  background: #8bc34a;
  color: white;
  font-size: 1.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
#addBtn:hover {
  background: #689f38;
}
.todo-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.drag-handle {
    cursor: pointer;
    font-weight: bold;
    margin-right: 1rem;
}
.controls {
    display: none;
    position: absolute;
    right: 10px;
    background: white;
    border: 1px solid #ccc;
    padding: 5px;
    border-radius: 5px;
}
.controls span {
    margin: 0 5px;
    cursor: pointer;
}
.show-controls {
    display: inline-block;
}
.edit-btn {
    cursor: pointer;
    margin-left: 5px;
    font-size: 1.2rem;
}
.edit-container {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}
.edit-input {
    flex: 1;
    padding: 6px 10px;
    border: 2px solid #4caf50;
    border-radius: 4px;
    font-size: 1rem;
}
.save-btn,
.cancel-btn {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    white-space: nowrap;
}
.save-btn {
    background: #4caf50;
    color: white;
}
.cancel-btn {
    background: #f44336;
    color: white;
}
.save-btn:hover {
    background: #45a049;
}
.cancel-btn:hover {
    background: #da190b;
}
.todo-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.8);
    margin: 4px 0;
    border-radius: 4px;
}
.todo-text {
    flex: 1;
    cursor: text;
}
.drag-handle {
    cursor: pointer;
    font-weight: bold;
    margin-right: 5px;
}

