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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

header {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.anycoder-link {
    color: #3498db;
    text-decoration: none;
    font-size: 0.9rem;
}

.container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

#todo-form {
    display: flex;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

#todo-input {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    padding: 0.75rem 1.5rem;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}

button:hover {
    background: #34495e;
}

#todo-list {
    list-style: none;
    margin-bottom: 2rem;
}

.todo-item {
    background: white;
    padding: 1rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.todo-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

.todo-item input[type="checkbox"] {
    transform: scale(1.2);
}

.todo-text {
    flex: 1;
}

.delete-btn {
    background: #e74c3c;
    padding: 0.5rem;
    font-size: 0.8rem;
}

.delete-btn:hover {
    background: #c0392b;
}

.stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-top: 1px solid #ddd;
}

#clear-all {
    background: #e74c3c;
}

#clear-all:hover {
    background: #c0392b;
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #todo-form {
        flex-direction: column;
    }
}