* {
    box-sizing: border-box;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
  
body {
    background: linear-gradient(135deg, #EDE7F6, #4a1c7f);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 0;
}
  
.taskNova {
    background: #fff;
    width: 480px;
    max-width: 90%;
    border-radius: 20px;
    padding: 40px 30px 35px;
    box-shadow: 0 10px 30px rgba(57, 11, 112, 0.25);
    position: relative;
    overflow: hidden;
    transition: 0.4s ease;
    border: 1px solid rgba(162, 120, 214, 0.15);
}
  
.taskNova:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(92, 46, 145, 0.4);
}
  
.taskNova h1 {
    text-align: center;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #5C2E91, #A278D6, #8E44AD);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 0px 20px rgba(162, 120, 214, 0.3);
    position: relative;
    margin-bottom: 30px;
    transition: 0.4s;
}
  
.taskNova h1::after {
    content: "";
    display: block;
    height: 3px;
    width: 60px;
    margin: 8px auto 0;
    background: linear-gradient(90deg, #5C2E91, #A278D6);
    border-radius: 10px;
    transition: 0.4s;
}
  
.taskNova h1:hover::after {
    width: 120px;
}
  
#taskInput {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1.5px solid #CBB4E3;
    outline: none;
    font-size: 16px;
    color: #2b0344;
    margin-bottom: 15px;
    background-color: #f3e9ff;
    transition: 0.3s;
}
  
#taskInput:focus {
    border-color: #5C2E91;
    box-shadow: 0 0 12px rgba(92, 46, 145, 0.3);
}
  
.btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: 0.3s;
    color: #fff;
    background-color: #5C2E91;
    margin-right: 8px;
}
  
.btn:hover {
    background-color: #452074;
    box-shadow: 0 6px 18px rgba(92, 46, 145, 0.3);
}
  
.delete-all-btn {
    background-color: #b54b63;
}
  
.delete-all-btn:hover {
    background-color: #a13c54;
    box-shadow: 0 6px 18px rgba(181, 75, 99, 0.35);
}
  
#errorMessage {
    color: #b54b63;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 10px;
}
  
ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}
  
li {
    background: #f7f2fc;
    border-left: 4px solid #5C2E91;
    margin-bottom: 12px;
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: 0.3s;
    position: relative;
}
  
li:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(92, 46, 145, 0.1);
}
  
.task-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}
  
.task-buttons button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: 0.25s;
    font-size: 17px;
}
  
.task-buttons button:hover {
    transform: scale(1.25);
}
  
.done-btn i { color: #28a745; }
.edit-btn i { color: #5C2E91; }
.delete-btn i { color: #b54b63; }
  
li.done {
    text-decoration: line-through;
    opacity: 0.6;
    color: #6f5b8a;
    border-left: 4px solid #28a745;
}

.edit-box {
    position: absolute;
    top: -85px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #d8c4ec;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(92, 46, 145, 0.15);
    padding: 12px 15px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    z-index: 100;
    animation: fadeIn 0.3s ease forwards;
}
  
.edit-input {
    padding: 10px 12px;
    border: 1.5px solid #CBB4E3;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 15px;
    color: #4b3a68;
    background: #f7f2fc;
    transition: 0.3s;
}
  
.edit-input:focus {
    border-color: #5C2E91;
    box-shadow: 0 0 6px rgba(92, 46, 145, 0.25);
}
  
.update-btn {
    padding: 8px 12px;
    background: #5C2E91;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}
  
.update-btn:hover {
    background-color: #452074;
}
  
.delete-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    backdrop-filter: blur(6px);
    display: flex; justify-content: center; align-items: center;
    z-index: 9999;
}
  
.delete-modal-content {
    background: #fff;
    padding: 35px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    animation: fadeIn 0.3s ease forwards;
}
  
.delete-modal-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: #452074;
    font-weight: 600;
}
  
.delete-modal-content button {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    transition: 0.25s;
    margin: 0 10px;
    font-size: 15px;
}
  
  .delete-modal-content button:first-child {
    background-color: #b54b63;
    color: #fff;
}
  
.delete-modal-content button:first-child:hover {
    background-color: #a13c54;
}
  
.delete-modal-content button:last-child {
    background-color: #5C2E91;
    color: #fff;
}
  
.delete-modal-content button:last-child:hover {
    background-color: #452074;
}
  
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .taskNova {
      width: 90%;
      padding: 30px 20px;
    }
  
    .taskNova h1 {
      font-size: 32px;
      letter-spacing: 1px;
    }
  
    #taskInput {
      font-size: 14px;
      padding: 12px 14px;
    }
  
    .btn {
      font-size: 14px;
      padding: 10px 16px;
      margin-right: 6px;
    }
  
    li {
      flex-direction: column;
      align-items: flex-start;
      padding: 10px 12px;
    }
  
    .task-buttons {
      margin-top: 8px;
      justify-content: flex-start;
    }
  
    .task-buttons button {
      font-size: 15px;
      padding: 4px;
    }
  
    .edit-box {
      position: static;
      width: 100%;
      margin-bottom: 12px;
      box-shadow: none;
    }
  
    .delete-modal-content {
      width: 90%;
      padding: 25px 20px;
    }
  
    .delete-modal-content p {
      font-size: 16px;
    }
  }
  
  @media (max-width: 480px) {
    .taskNova h1 {
      font-size: 26px;
    }
  
    #taskInput {
      font-size: 13px;
    }
  
    .btn {
      font-size: 13px;
      padding: 8px 14px;
    }
  
    li {
      font-size: 14px;
    }
  
    .update-btn {
      font-size: 13px;
      padding: 7px 12px;
    }
  }
  
  