*{
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}
.container{
  width: 100%;
  min-height: 100vh;
  background: linear-gradient(135deg, #153677, #4e085f);
  padding: 10px; 
}
.todo-app{
  width: 100%;
  max-width: 540px;
  background:#fff;
  margin: 100px auto 20px;
  padding: 40px 30px 70px;
  border-radius: 10px;
}
.todo-app h2{
  color: #002765;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}
.todo-app h2 img{
  width: 30px;
  margin-left: 10px;
}
.row{
  display:flex;
  align-items: center;
  justify-content: space-between;
  background: #edeef0;
  border-radius: 30px;
  padding-left: 20px;
  margin-bottom: 25px;
}
input{
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 10px;
  font-size: 14px;
}
button{
  border: none;
  outline: none;
  padding: 16px 50px;
  background: #ff5945;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  border-radius: 40px;
}
ul li{
  list-style: none;
  font-size: 17px;
  padding: 12px 8px 12px 50px;
  user-select: none;
  cursor: pointer;
  position: relative;
}
 ul li::before{
  content: '';
  position: absolute;
  height: 28px;
  width: 28px;
  border-radius: 50px;
  background-image: url(images/Unchecked.png);
  background-size: cover;
  background-position: center;
  top: 12px;
  left: 8px;
 }
 ul li.checked{
   color:#555;
   text-decoration: line-through;
 }
 ul li.checked::before{
   background-image: url(images/Checked.png);
 }

 ul li .delete-task {
  position: absolute;
  right: 0;
  top: 5px;
  width: 40px;
  height: 40px;
  font-size: 22px;
  color: #555;
  line-height: 40px;
  text-align: center;
  border-radius: 50%;
}

ul li .delete-task:hover {
  background: #edeef0;
}
 .task-stats{
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
}

.task-stats p{
    margin: 8px 0;
    font-size: 15px;
    color: #333;
}

.task-stats span{
    font-weight: bold;
    color: #ff5945;
}

/* Dark Mode */
body.dark-mode {
    background: #121212;
}

body.dark-mode .todo-app {
    background: #1e1e1e;
    color: #ffffff;
}

body.dark-mode .todo-app h2 {
    color: #ffffff;
}

body.dark-mode input {
    background: #2a2a2a;
    color: #ffffff;
    border-color: #555;
}

body.dark-mode input::placeholder {
    color: #bbbbbb;
}

body.dark-mode li {
    color: #ffffff;
}

body.dark-mode .task-stats {
    color: #ffffff;
}

/* Task Priority */
li[data-priority="high"] {
    border-left: 5px solid red;
}

li[data-priority="medium"] {
    border-left: 5px solid orange;
}

li[data-priority="low"] {
    border-left: 5px solid green;
}

/* Priority Badge */
.priority-badge {
  margin-left: 10px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
}

li[data-priority="high"] .priority-badge {
  background: #ffe0e0;
  color: #d00000;
}

li[data-priority="medium"] .priority-badge {
  background: #fff0cc;
  color: #b36b00;
}

li[data-priority="low"] .priority-badge {
  background: #dcf8dc;
  color: #168016;
}

.due-date-badge {
  margin-left: 10px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  background: #e8f0ff;
  color: #2457a6;
}
/* Due Date Status */

.due-date-badge.due-today {
    color: #ff9800;
    font-weight: bold;
}

.due-date-badge.overdue {
    color: #f44336;
    font-weight: bold;
}
/* Drag & Drop */
ul li.dragging {
    opacity: 0.5;
    transform: scale(1.02);
    cursor: grabbing;
}