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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.todo-container {
    width: 100%;
    max-width: 500px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.todo-container header {
    background-color: #6f42c1;
    color: #ffffff;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    text-align: center;
}

.todo-container header h1 {
    margin: 0;
    font-size: 1.8rem;
}

#new-task-form {
    display: flex;
    padding: 30px;
    gap: 10px;
}

#new-task-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

#new-task-input:focus {
    outline: none;
    border-color: #6f42c1;
}

#new-task-submit {
    background-color: #6f42c1;
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    border: none;
    padding: 0 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#new-task-submit:hover {
    background-color: #59369a;
}

.task-list-container {
    padding: 0 30px 30px 30px;
}

.task-list-container h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
    padding-bottom: 10px;
}

#task-list {
    list-style: none;
}

.task-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: #fafafa;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
}

.task-item span {
    font-size: 1.1rem;
    word-break: break-all;
}

.delete-btn {
    background-color: #dc3545;
    color: #ffffff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #c82333;
}

.task-item.completed span {
    text-decoration: line-through;
    color: #888;
}