/* Container styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.container {
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d1b3d, #5a0f66);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* To-Do app box */
.todo-app {
    width: 100%;
    max-width: 500px;
    background: #ffffff;
    border-radius: 15px;
    padding: 40px 30px 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease-in-out;
}

.todo-app:hover {
    transform: translateY(-5px);
}

/* Header */
.todo-app h2 {
    display: flex;
    align-items: center;
    color: #1c1c1c;
    font-size: 28px;
    margin-bottom: 25px;
}

.todo-app h2 img {
    width: 24px;
    margin-left: 10px;
}

/* Input row */
.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #e3f2fd;
    border-radius: 50px;
    padding: 10px 20px;
    margin-bottom: 30px;
    transition: background 0.3s;
}

.row:hover {
    background: #d0e7ff;
}

/* Input box */
input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    padding: 10px;
}

/* Add button */
button {
    border: none;
    outline: none;
    padding: 12px 40px;
    background: #ff5e57;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

button:hover {
    background: #ff3b30;
    transform: scale(1.05);
}

/* Task list */
ul {
    padding: 0;
    margin: 0;
}

ul li {
    list-style: none;
    font-size: 16px;
    padding: 12px 15px 12px 50px;
    position: relative;
    background: #f7f7f7;
    margin-bottom: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

ul li:hover {
    background: #e0e0e0;
}

/* Task icons */
ul li::before {
    content: '';
    position: absolute;
    height: 26px;
    width: 26px;
    border-radius: 50%;
    background-image: url('circle-solid.svg');
    background-size: cover;
    background-position: center;
    top: 12px;
    left: 12px;
}

ul li.checked {
    color: #999;
    text-decoration: line-through;
}

ul li.checked::before {
    background-image: url('circle-check-solid.svg');
}

/* Delete button */
ul li span {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    font-size: 20px;
    color: #ff3b30;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    transition: background 0.3s, color 0.3s;
}

ul li span:hover {
    background: #ffdddd;
    color: #ff1a1a;
}
