/* Basic reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f0f4f8;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    min-height: 100vh;
}

.container {
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
}

.heading {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.input-section {
    display: flex;
    margin-bottom: 25px;
}

#taskInput {
    flex: 1;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #007bff;
    border-radius: 6px 0 0 6px;
    outline: none;
    transition: border-color 0.3s ease;
}

#taskInput:focus {
    border-color: #0056b3;
}

#addBtn {
    width: 80px;
    background-color: #28a745;
    border: none;
    color: white;
    font-weight: 600;
    font-size: 18px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.4);
}

#addBtn:hover {
    background-color: #218838;
    box-shadow: 0 6px 12px rgba(33, 136, 56, 0.5);
}

/* Task List Styles */
#taskList {
    list-style: none;
}

#taskList li {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
    color: #444;
    position: relative;
}

/* Custom checkbox */
#taskList input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 15px;
    position: relative;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    flex-shrink: 0;
}

#taskList input[type="checkbox"]:checked {
    background-color: #007bff;
    border-color: #007bff;
}

#taskList input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Strike-through done tasks */
#taskList input[type="checkbox"]:checked+label {
    text-decoration: line-through;
    color: #888;
}

/* Task label fills remaining space */
#taskList label {
    flex: 1;
    cursor: pointer;
    user-select: none;
}

/* Delete button */
.deleteTask {
    background-color: #dc3545;
    border: none;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.deleteTask:hover {
    background-color: #b02a37;
}