@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 40px;
    background-color: #f0f4f8; /* A very light, soft blue-gray */
    color: #334e68; /* A deep, readable gray */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.container {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); /* A soft, modern shadow */
}

h1 {
    font-weight: 600;
    font-size: 2.2rem;
    text-align: center;
    color: #1a202c; /* A strong, dark color for the main heading */
    margin-bottom: 30px;
}

.input-area {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#taskInput, #dueDateTimeInput {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #4a5568;
    background-color: #f7fafc;
    transition: border-color 0.2s ease;
}

#taskInput:focus, #dueDateTimeInput:focus {
    outline: none;
    border-color: #4299e1; /* A friendly blue accent on focus */
}

#addTaskButton {
    padding: 12px 24px;
    background-color: #4299e1;
    color: white;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

#addTaskButton:hover {
    background-color: #2b6cb0;
}

#addTaskButton:active {
    transform: translateY(1px);
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    transition: background-color 0.2s ease;
}

li:last-child {
    border-bottom: none;
}

li:hover {
    background-color: #f7fafc;
}

.task-complete {
    text-decoration: line-through;
    color: #a0aec0; /* A soft gray for completed items */
}

.delete-button, .edit-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s ease, transform 0.1s ease;
}

.delete-button {
    color: #e53e3e; /* A soft red for delete */
}

.delete-button:hover {
    color: #c53030;
    transform: scale(1.1);
}

.edit-button {
    color: #4299e1; /* A friendly blue for edit */
}

.edit-button:hover {
    color: #2b6cb0;
    transform: scale(1.1);
}

.edit-input {
    flex-grow: 1;
    padding: 8px;
    font-size: 1rem;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
}

.due-date-container {
    font-size: 0.9rem;
    color: #718096;
    margin-left: 10px;
}
