/* === General Styles === */
body {
    font-family: 'Poppins', sans-serif;
    background: #f7f7f7;
    color: #333;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

h1 {
    margin-top: 30px;
    color: #B53324;
    font-size: 2.2rem;
    text-align: center;
}

/* === Input and Button === */
#userInput {
    width: 300px;
    padding: 10px 14px;
    border: 2px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 1rem;
    margin-right: 10px;
    transition: border 0.2s ease;
}

#userInput:focus {
    border-color: #B53324;
}

#submitButton {
    background-color: #B53324;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

#submitButton:hover {
    background-color: #92291d;
}

/* === Task Container === */
#tasks {
    margin-top: 30px;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* === Individual Task === */
.taskContainer {
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.taskContainer:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

/* === Checkbox + Task Name === */
.taskContainer input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #B53324;
    cursor: pointer;
}

.taskContainer h2 {
    flex: 1;
    margin: 0 10px;
    font-size: 1.1rem;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

/* 🧠 Strikethrough effect when checked */
.taskContainer input[type="checkbox"]:checked + h2 {
    text-decoration: line-through;
    color: #888;
}

/* === Delete Button === */
.taskContainer button {
    background-color: transparent;
    border: 1.5px solid #B53324;
    color: #B53324;
    border-radius: 6px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.taskContainer button:hover {
    background-color: #B53324;
    color: white;
}

/* === Completed Text (date) === */
.taskContainer p {
    font-size: 0.8rem;
    color: #555;
    margin-left: 8px;
    text-align: right;
}
