* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    padding: 25px;
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}

.input-container {
    display: flex;
    margin-bottom: 20px;
}

#taskInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

#taskInput:focus {
    border-color: #4CAF50;
}

#addTaskBtn {
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0 20px;
    margin-left: 10px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

#addTaskBtn:hover {
    background-color: #45a049;
}

#taskList {
    list-style-type: none;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.task-item:hover {
    background-color: #f0f0f0;
}

.task-item.completed {
    background-color: #e8f5e9;
}

.task-text {
    flex: 1;
    margin-left: 10px;
    word-break: break-word;
}

.task-item.completed .task-text {
    text-decoration: line-through;
    color: #888;
}

.task-actions {
    display: flex;
    gap: 10px;
}

.task-actions button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #888;
    transition: color 0.3s;
}

.task-actions button:hover {
    color: #333;
}

.complete-btn:hover {
    color: #4CAF50 !important;
}

.delete-btn:hover {
    color: #f44336 !important;
}

.task-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

#clearCompleted {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
    transition: color 0.3s;
}

#clearCompleted:hover {
    color: #f44336;
}